"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
name: cli-anything-refine description: Refine an existing CLI-Anything harness to expand coverage and add missing capabilities
cli-anything-refine Command
Refine an existing CLI harness after a successful /cli-anything build.
Target software: first argument (local path required). Focus area: optional second argument / trailing natural-language focus.
CRITICAL: Resolve PLUGIN_ROOT (absolute paths only)
Resolve PLUGIN_ROOT in this order (first hit with references/HARNESS.md wins):
- Read
%USERPROFILE%\.cursor\cli-anything-generator.rootor~/.cursor/cli-anything-generator.root - Else
{default-or-$CURSOR_PLUGINS_HOME}/local/cli-anything/PLUGIN_ROOT.txt - Else that candidate directory if
references/HARNESS.mdexists - Else workspace / cloned
cli-anything-plugin/
Then read {PLUGIN_ROOT}/references/HARNESS.md and {PLUGIN_ROOT}/references/commands/refine.md with absolute paths.
Cursor Tool Bindings
| Cursor tool | Role |
|---|---|
| Read / Grep / Glob | Inventory current CLI coverage and target APIs |
| Shell | Run existing tests; verify new commands |
| Write / StrReplace | Add commands, modules, and tests |
Arguments
- Local software path only (same tree used for the original build). Clone first with
/cli-anythingif needed. - Optional focus area narrows gap analysis (e.g.
"picture-in-picture features").
Phase Gates and Resume (hard gate)
Progress: {software-root}/agent-harness/.cli-anything-progress.json with "mode": "refine".
- Steps: inventory → capability scan → gap analysis → implement → test → document.
- Do not advance a step until the previous is
completedin the progress file. - Resume incomplete refine runs; do not remove existing commands unless the user requests a breaking change.
- Mark
terminal: truewhen refine completes or is permanently aborted.
Refine checklist
- Inventory current commands/tests before coding
- Prefer high-impact gaps and thin wrappers around real backend APIs
- Add matching unit/E2E coverage for every new command surface
- Keep HARNESS packaging and
--json/ REPL standards
What This Command Does
Follow {PLUGIN_ROOT}/references/commands/refine.md for the full procedure.