Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

fix: align Reasonix adapter with current skill runtime

PaysNatalad12c2f6a58b
diff --git a/README.md b/README.md
index ed8a3c796..df9c1765d 100644
--- a/README.md
+++ b/README.md
@@ -635,9 +635,7 @@ On Windows PowerShell, use:
.\CLI-Anything\reasonix-skill\scripts\install.ps1
```
-This installs the skill to `$REASONIX_HOME/skills/cli-anything` (or `~/.reasonix/skills/cli-anything` if `REASONIX_HOME` is unset).
-
-Alternatively, Reasonix users can install directly via the `install_skill` API — see [`reasonix-skill/REASONIX_SKILL_INSTALL.md`](reasonix-skill/REASONIX_SKILL_INSTALL.md).
+This installs the skill to Reasonix's global skill directory at `~/.reasonix/skills/cli-anything`.
Restart Reasonix after installation so it is discovered.
@@ -653,7 +651,7 @@ Use CLI-Anything to validate ./libreoffice
The Reasonix skill adapts the same methodology used by the Claude Code plugin and
Codex/Hermes skills, binding Reasonix's `bash`, `write_file`, `edit_file`,
-`multi_edit`, `grep`, `glob`, `mcp__codegraph__*`, and `task` tools to the
+`multi_edit`, `grep`, `glob`, and optional `mcp__codegraph__*` tools to the
7-phase harness workflow while keeping the generated Python harness format unchanged.
</details>
diff --git a/reasonix-skill/README.md b/reasonix-skill/README.md
index bd6b973b7..4b42df383 100644
--- a/reasonix-skill/README.md
+++ b/reasonix-skill/README.md
@@ -1,21 +1,11 @@
# CLI-Anything for Reasonix
-An adapter that brings the [CLI-Anything](https://github.com/HKUDS/CLI-Anything) harness methodology to the [Reasonix](https://reasonix.ai) coding agent.
+An adapter that brings the [CLI-Anything](https://github.com/HKUDS/CLI-Anything) harness methodology to the [Reasonix](https://github.com/esengine/DeepSeek-Reasonix) coding agent.
-CLI-Anything (42.1k+ stars) is a methodology for making **any GUI software agent-native** by generating stateful CLI harnesses with REPL mode, JSON output, undo/redo, and comprehensive tests. This adapter lets Reasonix act as the builder agent.
+CLI-Anything is a methodology for making **any GUI software agent-native** by generating stateful CLI harnesses with REPL mode, JSON output, undo/redo, and comprehensive tests. This adapter lets Reasonix act as the builder agent.
## Installation
-### Option 1: One-liner via Reasonix Skill API (Recommended)
-
-If you have a running Reasonix session, just ask:
-
-> "Install the cli-anything skill"
-
-Or programmatically, Reasonix's `install_skill` will place the skill at `~/.reasonix/skills/cli-anything.md`.
-
-### Option 2: Shell Install Script
-
**macOS / Linux:**
```bash
@@ -32,7 +22,7 @@ cd CLI-Anything\reasonix-skill
.\scripts\install.ps1
```
-Both scripts copy the skill to `$REASONIX_HOME/skills/cli-anything` (defaults to `~/.reasonix/skills/cli-anything`).
+Both scripts copy the skill to Reasonix's global skill directory at `~/.reasonix/skills/cli-anything`.
## Usage
@@ -70,7 +60,7 @@ The skill spawns an isolated Reasonix sub-agent that follows the CLI-Anything 7-
/cli-anything https://github.com/blender/blender
# Refine an existing harness
-/cli-anything:refine /home/user/gimp "batch processing and Script-Fu filters"
+/cli-anything /home/user/gimp "Refine the existing harness for batch processing and Script-Fu filters"
```
## Reasonix Tool Mapping
@@ -82,8 +72,7 @@ The skill spawns an isolated Reasonix sub-agent that follows the CLI-Anything 7-
| Code editing | `edit_file` / `multi_edit` |
| Source reading | `read_file` |
| Codebase search | `grep` / `glob` / `ls` |
-| Architecture analysis | `mcp__codegraph__*` |
-| Parallel subtasks | `task` |
+| Architecture analysis | `mcp__codegraph__*` when CodeGraph is enabled |
| Documentation fetch | `web_fetch` |
## File Structure
@@ -92,7 +81,6 @@ The skill spawns an isolated Reasonix sub-agent that follows the CLI-Anything 7-
reasonix-skill/
├── SKILL.md # Main skill document (methodology + tool bindings)
├── README.md # This file
-├── REASONIX_SKILL_INSTALL.md # install_skill API usage reference
├── agents/
│ └── reasonix.yaml # Agent interface metadata
└── scripts/
@@ -107,9 +95,8 @@ reasonix-skill/
| Skill format | `.claude-plugin/` | `SKILL.md` + YAML | `SKILL.md` + YAML | `SKILL.md` + YAML |
| Shell | `bash` | `terminal` | `terminal` | `bash` |
| File ops | native | `execute_code` | `execute_code` / `write_file` | `write_file` / `edit_file` / `multi_edit` |
-| Code analysis | file reads | file reads | file reads | `mcp__codegraph__*` (symbol graph) |
-| Parallelism | — | — | `delegate_task` | `task` (sub-agents) |
-| Install method | `/plugin install` | `install.sh` → `$CODEX_HOME/skills/` | `install.sh` → `$HERMES_HOME/skills/` | `install_skill` API or `install.sh` → `~/.reasonix/skills/` |
+| Code analysis | file reads | file reads | file reads | Optional `mcp__codegraph__*` symbol graph |
+| Install method | `/plugin install` | `install.sh` → `$CODEX_HOME/skills/` | `install.sh` → `$HERMES_HOME/skills/` | `install.sh` → `~/.reasonix/skills/` |
## Contributing
diff --git a/reasonix-skill/REASONIX_SKILL_INSTALL.md b/reasonix-skill/REASONIX_SKILL_INSTALL.md
deleted file mode 100644
index a7278819a..000000000
--- a/reasonix-skill/REASONIX_SKILL_INSTALL.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# CLI-Anything for Reasonix — Native Skill Definition
-
-This file can be installed directly into Reasonix via the `install_skill` tool:
-
-```
-install_skill({
- name: "cli-anything",
- description: "Build, refine, test, or validate a CLI-Anything harness for any GUI application or source repository.",
- body: "<contents of SKILL.md>",
- runAs: "subagent",
- scope: "global"
-})
-```
-
-When run as a subagent, the skill spawns an isolated Reasonix sub-agent that
-has access to all standard tools (bash, read_file, write_file, edit_file, etc.)
-and follows the CLI-Anything 7-phase methodology without polluting the parent
-session's context.
diff --git a/reasonix-skill/SKILL.md b/reasonix-skill/SKILL.md
index 22bdad837..961b99cd6 100644
--- a/reasonix-skill/SKILL.md
+++ b/reasonix-skill/SKILL.md
@@ -10,9 +10,10 @@ Use this skill when the user wants Reasonix to act like the `CLI-Anything` build
Before implementation, use the full methodology source of truth when available:
-1. If this skill is being used from inside the `CLI-Anything` repository, read `../cli-anything-plugin/HARNESS.md` first.
-2. If that local file is unavailable, clone or download `cli-anything-plugin` from `https://github.com/HKUDS/CLI-Anything/tree/main/cli-anything-plugin`, then use `HARNESS.md` and the resources around it from that folder.
-3. Only if both local and network retrieval fail, follow the condensed rules below.
+1. If the current workspace is the `CLI-Anything` repository, read `cli-anything-plugin/HARNESS.md`.
+2. If Reasonix is running from this adapter directory, also check `../cli-anything-plugin/HARNESS.md`.
+3. If neither local file is available, clone or download `cli-anything-plugin` from `https://github.com/HKUDS/CLI-Anything/tree/main/cli-anything-plugin`, then use `HARNESS.md` and the resources around it from that folder.
+4. Only if local and network retrieval both fail, follow the condensed rules below.
## Inputs
@@ -37,13 +38,12 @@ Reasonix agents build harnesses by combining these built-in tools:
| `grep` | Search for patterns across the target software codebase (APIs, CLI tools, data models) |
| `glob` | Find files matching patterns in the source tree (*.py, *.xml, *.json, etc.) |
| `ls` | List directory contents to understand project structure |
-| `mcp__codegraph__*` | Code graph analysis — symbol search, definition lookup, call tracing, and codebase exploration for deeper architectural understanding |
-| `task` | Parallelize analysis or generation subtasks by spawning isolated sub-agents |
+| `mcp__codegraph__*` | Optional code graph analysis when CodeGraph is enabled |
| `web_fetch` | Fetch documentation, API references, or remote files from the web |
### Recommended Workflow with Reasonix Tools
-**Phase 1 (Analysis)** — Use `ls` + `glob` to survey the source tree, `grep` to find API surfaces and CLI entry points, `mcp__codegraph__codegraph_search` and `mcp__codegraph__codegraph_context` for deeper symbol/architecture analysis, and `read_file` to inspect key files.
+**Phase 1 (Analysis)** — Use `ls` + `glob` to survey the source tree, `grep` to find API surfaces and CLI entry points, and `read_file` to inspect key files. When CodeGraph is enabled and its tools are available, use `mcp__codegraph__codegraph_search` and `mcp__codegraph__codegraph_context` for deeper symbol and architecture analysis.
**Phase 2-3 (Design & Implementation)** — Use `write_file` to create new harness files, `edit_file` / `multi_edit` to refine generated code, and `bash` to run `pip install -e .` for installation.
@@ -60,19 +60,25 @@ Use when the user wants a new harness.
Produce this structure:
```text
-<software>/
-└── agent-harness/
- ├── <SOFTWARE>.md
- ├── setup.py
- └── cli_anything/
- └── <software>/
- ├── README.md
- ├── __init__.py
- ├── __main__.py
- ├── <software>_cli.py
- ├── core/
- ├── utils/
- └── tests/
+<repo-root>/
+├── skills/
+│ └── cli-anything-<software>/
+│ └── SKILL.md
+└── <software>/
+ └── agent-harness/
+ ├── <SOFTWARE>.md
+ ├── setup.py
+ └── cli_anything/
+ └── <software>/
+ ├── README.md
+ ├── __init__.py
+ ├── __main__.py
+ ├── <software>_cli.py
+ ├── core/
+ ├── utils/
+ ├── tests/
+ └── skills/
+ └── SKILL.md
```
Implement a stateful Click CLI with:
@@ -111,6 +117,7 @@ Check that the harness:
- has an installable `setup.py` entry point
- supports JSON output
- has a REPL default path
+- has matching canonical and package-local `SKILL.md` files
- documents usage and tests
## Backend Rules
@@ -122,6 +129,7 @@ Prefer the real software backend over reimplementation. Wrap the actual executab
- Use `find_namespace_packages(include=["cli_anything.*"])`
- Keep `cli_anything/` as a namespace package without a top-level `__init__.py`
- Expose `cli-anything-<software>` through `console_scripts`
+- Include `cli_anything.<software>/skills/SKILL.md` in package data
## Workflow
@@ -130,12 +138,12 @@ Prefer the real software backend over reimplementation. Wrap the actual executab
3. Design command groups and state model.
4. Implement the harness.
5. Write `TEST.md`, then tests, then run them.
-6. Update README usage docs.
+6. Update README usage docs and generate both `skills/cli-anything-<software>/SKILL.md` and `cli_anything/<software>/skills/SKILL.md`.
7. Verify local installation with `pip install -e .`
## Existing Harnesses (Reference)
-For an up-to-date list of supported harnesses and their backend patterns, see [`registry.json`](../registry.json) at the repository root.
+For an up-to-date list of supported harnesses and their backend patterns, locate `registry.json` at the `CLI-Anything` repository root when it is available.
## Output Expectations
diff --git a/reasonix-skill/scripts/install.ps1 b/reasonix-skill/scripts/install.ps1
index 0fd0f9f72..87f7f70e7 100644
--- a/reasonix-skill/scripts/install.ps1
+++ b/reasonix-skill/scripts/install.ps1
@@ -3,12 +3,10 @@ $ErrorActionPreference = "Stop"
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$skillDir = Split-Path -Parent $scriptDir
-$reasonixHome = if ($env:REASONIX_HOME) {
- $env:REASONIX_HOME
-} elseif ($env:USERPROFILE) {
+$reasonixHome = if ($env:USERPROFILE) {
Join-Path $env:USERPROFILE ".reasonix"
} else {
- throw "REASONIX_HOME is not set and USERPROFILE is unavailable."
+ throw "USERPROFILE is unavailable."
}
$destRoot = Join-Path $reasonixHome "skills"
diff --git a/reasonix-skill/scripts/install.sh b/reasonix-skill/scripts/install.sh
index 5b2377e25..49c538a65 100755
--- a/reasonix-skill/scripts/install.sh
+++ b/reasonix-skill/scripts/install.sh
@@ -4,7 +4,8 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SKILL_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
-DEST_ROOT="${REASONIX_HOME:-$HOME/.reasonix}/skills"
+: "${HOME:?HOME must be set to install a global Reasonix skill}"
+DEST_ROOT="${HOME}/.reasonix/skills"
DEST_DIR="${DEST_ROOT}/cli-anything"
mkdir -p "${DEST_ROOT}"