cli-anything
CommandBuild a complete, stateful CLI harness for any GUI application.
Run tests for a CLI harness and update TEST.md with results.
> /plugin marketplace add HKUDS/CLI-Anything> /plugin install cli-anything@cli-anything
Run tests for a CLI harness and update TEST.md with results.
**Before running tests, read `./HARNESS.md`.** It defines the test standards, expected structure, and what constitutes a passing test suite.
/cli-anything:test <software-path-or-repo>
If a GitHub URL is provided, the agent clones the repo locally first, then works on the local copy.
The software name is derived from the directory name. The agent locates the CLI harness at `/root/cli-anything/<software-name>/agent-harness/`.
1. **Locates the CLI** - Finds the CLI harness based on the software path 2. **Runs pytest** - Executes tests with `-v -s --tb=short` 3. **Captures output** - Saves full test results 4. **Verifies subprocess backend** - Confirms `[_resolve_cli] Using installed command:` appears in output 5. **Updates TEST.md** - Appends results to the Test Results section 6. **Reports status** - Shows pass/fail summary
The command appends to TEST.md:
## Test Results Last run: 2024-03-05 14:30:00
[full pytest -v --tb=no output]
**Summary**: 103 passed in 3.05s
# Run all tests for GIMP CLI /cli-anything:test /home/user/gimp # Run tests for Blender from GitHub /cli-anything:test https://github.com/blender/blender
If tests fail: 1. Shows which tests failed 2. Does NOT update TEST.md (keeps previous passing results) 3. Suggests fixes based on error messages 4. Offers to re-run after fixes
"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Build a complete, stateful CLI harness for any GUI application.
Refine an existing CLI harness to improve coverage of the software's functions and usage patterns.
Validate a CLI harness against HARNESS.md standards and best practices.
List installed and generated CLI-Anything tools (human or JSON)
Refine an existing CLI-Anything harness to expand coverage and add missing capabilities
Spawn interactive terminal canvases for calendars, documents, and flight booking
Analyze claudish debug logs from a failed model run. Extracts SSE fixtures, diagnoses failures, adds regression tests.
Summarize completed work, current risks, and next actions.