Xpersona
I

Inference Optimizer

CLAWHUB · Unverified

Audit OpenClaw runtime health first, then optimize inference speed and token usage with approval. Use /audit for analyze-only and /optimize for analyze + act...

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17cvcvbybkhf3zjhqyx753qb183febw:inference-optimizer
  1. Install using `clawhub skill install s17cvcvbybkhf3zjhqyx753qb183febw:inference-optimizer` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/vitalyis/inference-optimizer before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-vitalyis-inference-optimizer/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

149,965 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: inference-optimizer
description: Audit OpenClaw runtime health first, then optimize inference speed and token usage with approval. Use /audit for analyze-only and /optimize for analyze + action flow.
license: MIT
metadata:
  version: "0.3.4"
  openclaw:
    author: vitalyis
    emoji: "⚡"
    os:
      - linux
    requires:
      bins:
        - bash
        - python3
    cliHelp: |
      Install (ClawHub): clawhub install inference-optimizer
      Manual: git clone https://github.com/vitalyis/inference-optimizer.git ~/clawd/skills/inference-optimizer
      Preview: bash ~/clawd/skills/inference-optimizer/scripts/setup.sh
      Apply: bash ~/clawd/skills/inference-optimizer/scripts/setup.sh --apply
      Verify: bash ~/clawd/skills/inference-optimizer/scripts/verify.sh
    config:
      stateDirs:
        - ~/.openclaw
        - ~/clawd/skills/inference-optimizer
        - ~/openclaw-purge-archive
      example: "Required skill-specific env vars: none (no API keys). Reads local OpenClaw state under ~/.openclaw; skill files live under ~/clawd/skills/inference-optimizer when installed as documented. Preflight may archive ~/.openclaw and workspace trees—treat backups as potentially sensitive."
    links:
      repository: https://github.com/vitalyis/inference-optimizer
      homepage: https://github.com/vitalyis/inference-optimizer
---

![Inference Optimizer](https://raw.githubusercontent.com/vitalyis/inference-optimizer/main/social-preview.png)

# Inference Optimizer

Audit OpenClaw runtime health first. Optimize inference speed and token usage second.

## Commands

| Command | Behavior |
|--------------|----------|
| `/preflight` | Install checks, backup, audit, and setup preview |
| `/audit` | Analyze-only; check runtime health before suggesting tuning |
| `/optimize` | Audit + propose remediation or optimization actions with per-step approval |
| `purge sessions` | After audit, if user approves, archive stale sessions; use `--delete` for immediate removal |

> These instructions guide agent behavior. Platform and system prompts take precedence; they cannot be enforced programmatically.

## Installation

**ClawHub:**
```bash
clawhub install inference-optimizer
```

**Manual:**
```bash
git clone https://github.com/vitalyis/inference-optimizer.git ~/clawd/skills/inference-optimizer
bash ~/clawd/skills/inference-optimizer/scripts/setup.sh        # preview
bash ~/clawd/skills/inference-optimizer/scripts/setup.sh --apply  # apply after review
```

**Verify:** `<skill_dir>/scripts/verify.sh`

## Workflow

### Audit and remediation branch

1. **`/preflight`**: Exec `<skill_dir>/scripts/preflight.sh`. Append `--apply-setup` only if the user asks to apply setup.
2. **`/audit`**: Exec `<skill_dir>/scripts/openclaw-audit.sh`. Use the script output plus direct environment checks to inspect this order:
   - gateway ownership and duplicate supervisors
   - restart loops or failed services
   - resolved `openclaw` binary path and install type
   - wor

README.md

<img width="1280" height="480" alt="Inference Optimizer" src="./social-preview.png" />

# /inference-optimizer

Production-oriented OpenClaw skill for auditing runtime health, cleaning stale session state, and applying safer inference tuning with approval.

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](LICENSE)

## What it does

`inference-optimizer` does not start with token tuning guesses. It checks the runtime first, then recommends cleanup or tuning only after the obvious operational failures are ruled out.

Audit order:

1. Gateway ownership and duplicate supervisors
2. Restart loops and failed services
3. Resolved `openclaw` binary path and install type
4. Updater status and allowlist coverage for the resolved path
5. Plugin provenance and unused local extensions
6. Context pressure, stale sessions, cache-trace, pruning, and concurrency

Core commands:

```text
/preflight
/audit
/optimize
purge sessions
```

## Install

```bash
clawhub install inference-optimizer
```

Manual install:

```bash
git clone https://github.com/vitalyis/inference-optimizer.git ~/clawd/skills/inference-optimizer
bash ~/clawd/skills/inference-optimizer/scripts/setup.sh
bash ~/clawd/skills/inference-optimizer/scripts/setup.sh --apply
```

## Usage

```text
/preflight              # backup + audit + setup preview
/audit                  # analyze-only runtime audit
/optimize               # audit, then propose approved actions
purge sessions          # archive stale sessions after approval
```

Operational checks:

- Treat warnings as signals, not proof.
- If updater output is partial or truncated, verify installed version, service status, and logs before claiming root cause.
- Resolve the real executable path before changing the allowlist.
- Use `bash scripts/verify.sh` after install; it now fails on legacy `skills/public` and repo-local workspace wiring.

For script details and safety constraints, see [SECURITY.md](SECURITY.md).

## Update

```bash
cd ~/clawd/skills/inference-optimizer && git pull
```

If installed elsewhere, pull from that skill directory instead.

## Uninstall

```bash
rm -rf ~/clawd/skills/inference-optimizer
```

## Safety

- `/audit` is analyze-only and should not mutate workspace files.
- `purge-stale-sessions.sh` archives by default. Use `--delete` only for intentional immediate removal.
- `setup.sh` previews by default. Use `--apply` only after reviewing changes.
- For allowlists, prefer exact executable paths or bounded NVM wildcards such as `/home/ubuntu/.nvm/versions/node/*/bin/openclaw *`.
- Do not rely on basename-only allowlist entries like `openclaw`.

Additional background and remediation notes live in [SECURITY.md](SECURITY.md).

## Contributing

Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for workflow and release-note expectations.

## License

MIT

_meta.json

{
  "ownerId": "kn723yqtjwvpmbhpkf8rr89st980854k",
  "slug": "inference-optimizer",
  "version": "0.3.4",
  "publishedAt": 1775159379551
}

CHANGELOG.md

# Changelog

## [0.3.4] - 2026-04-02

### Fixed

- `setup.sh --apply` now installs the required path-specific `exec-approvals.json` entries for `main` and `whatsapp`, covering `openclaw-audit.sh`, `preflight.sh`, `purge-stale-sessions.sh`, `setup.sh`, and `verify.sh`.
- `verify.sh` now fails when those managed skill script approvals are missing, preventing `/audit`, `/optimize`, and `/preflight` from silently regressing into approval prompts after bot or policy updates.
- Reapplying the skill now repairs both workspace wiring and the matching allowlist state, so the advertised command surface works on a fresh VPS install without manual approval surgery.

### Added

- Release notes under `docs/release-notes/0.3.4.md`.

## [0.3.3] - 2026-03-28

### Changed

- Reworked execution guidance to prefer direct script paths instead of `bash <skill_dir>/...`, reducing allowlist fragility on locked-down OpenClaw installs.
- Added explicit `/audit` and `/optimize` rules preventing helper-shell preludes before the main audit script.
- Clarified approval semantics so `allowlist miss` / `exec denied` is treated as a hard deny unless a real approval ID is returned.
- Tightened allowlist documentation around exact script paths, bounded NVM wildcards, and narrow optional read-only helper commands.
- `openclaw-audit.sh` now evaluates allowlist coverage against the actual OpenClaw executable path used for approvals and reports that target explicitly.
- Updated VPS ownership guidance for this deployment: keep `openclaw-gateway.service` active, keep `clawdbot.service` disabled, and preserve `pass-cli` secret injection inside the user service.

### Added

- Release notes under `docs/release-notes/0.3.3.md`.

## [0.3.2] - 2026-03-24

### Changed

- `metadata.version` set to `0.3.2` so ClawHub accepts a new publish (`0.3.1` is already registered on the registry). No script changes relative to the prior git tree.

### Added

- Release notes under `docs/release-notes/0.3.2.md`.

## [0.3.1] - 2026-03-21

### Added

- Release notes under `docs/release-notes/0.3.1.md`.

### Changed

- `SKILL.md` frontmatter: declare install commands (`cliHelp`), credential/state paths (`config.stateDirs` + `config.example`), `links`, and `requires.bins` under `metadata.openclaw` per ClawHub registry schema (per maintainer feedback on OpenClaw scanner metadata).
- `SKILL.md`: social preview image uses absolute `raw.githubusercontent.com` URL (ClawHub / clients that render without a local asset path).
- `social-preview.png`: linear dimensions reduced by one-third (1024×571 → 683×381) for lighter ClawHub listing preview.
- `SKILL.md` + `SECURITY.md`: exec allowlist guidance uses path-specific `/usr/bin/bash …/scripts/<name>.sh` lines only; removed broad `/usr/bin/bash *` / `**` examples and the extra `openclaw **` NVM line; note `python3` for `setup.sh` and add `python3` to `requires.bins`.

## [0.3.0] - 2026-03-14

### Added

- Release notes for v0.3.0 under `docs/release-notes/0.3.0.md`.
- Soci

CONTRIBUTING.md

# Contributing

## Scope

This repo ships an OpenClaw skill. Changes should keep the command surface stable unless the release explicitly says otherwise.

Current supported commands:

- `/preflight`
- `/audit`
- `/optimize`
- `purge sessions`

## Workflow

1. Make the smallest coherent change.
2. Keep docs aligned across `SKILL.md`, `README.md`, `SECURITY.md`, and `CHANGELOG.md`.
3. If behavior changes, document it in release notes under `docs/release-notes/`.
4. Run `scripts/verify.sh` before opening or merging a change.

## Documentation expectations

- `README.md` is the landing page and should stay lean.
- `SECURITY.md` holds operational and security detail that would clutter the README.
- `CHANGELOG.md` is the canonical history file.
- Release notes should match the changelog entry for the same version.

## Release hygiene

- Bump the version in `SKILL.md` when the skill package changes.
- Add a dated entry to `CHANGELOG.md`.
- Add or update `docs/release-notes/<version>.md`.
- If a GitHub Release exists, update its body to match the release-notes file.

## Verification

```bash
bash scripts/verify.sh
```

Sponsored

Ads related to Inference Optimizer and adjacent AI workflows.