Inference optimizer
Audit OpenClaw token usage, purge stale sessions, and optimize inference speed. Use when the user sends /optimize, /audit, asks to purge sessions, or wants a token/workspace audit.From its SKILL.md
npx -y skills add aAAaqwq/AGI-Super-Team --skill inference-optimizerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.4 KB, 296 tokens by cl100k_base, as published. Nobody here has run it
Inference Optimizer
Optimize OpenClaw for maximum inference speed and minimum token usage. When user sends /optimize or /audit, exec the audit script and return raw output. When user approves purge, exec the purge script.
Triggers
/optimize— run audit/audit— same as /optimize- "purge sessions", "purge stale", "clean up sessions" — after audit, if user approves
Workflow
- Audit: Exec
bash <skill_dir>/scripts/openclaw-audit.sh, return raw output. Do NOT ask what to optimize. Do NOT list options. - Purge: If user approves purge after audit, exec
bash <skill_dir>/scripts/purge-stale-sessions.sh, return raw output. - Full optimization: For Task 1–5 (workspace rewrite, heartbeat, deploy), read
optimization-agent.mdand follow its flow.
Path Resolution
Scripts live at ~/clawd/skills/public/inference-optimizer/scripts/ (or wherever the skill is installed). Use that path when exec-ing.
Allowlist
Purge script needs: find, find *, find **, rm, rm *, rm **, bash, bash *, bash **. Add to exec-approvals.json for the agent if purge is blocked.
What ships with it: 8 files
15.8 KB alongside SKILL.md, 4 of them executable
scripts/
- openclaw-audit.shruns2.0 KB
- purge-stale-sessions.shruns1.5 KB
- setup.shruns2.0 KB
- verify.shruns1.8 KB
- .gitignore16 B
- LICENSE1.0 KB
- optimization-agent.md4.4 KB
- README.md3.1 KB