@spatz/cli 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -19,7 +19,7 @@ You or your coding agent run the task with the recommended pair.
19
19
  Different tasks need different models and effort levels.
20
20
  spatz combines task classification with results from your previous tasks.
21
21
 
22
- - **Use your available models.** Pass the candidates with `--models`.
22
+ - **Use your available models.** Start with harness defaults or set your own candidates.
23
23
  - **Learn from results.** Record outcomes through hooks or `spatz report`.
24
24
  - **Compare performance.** Use `spatz stats` to see results per task type or routing scope.
25
25
  - **Connect to coding agents.** Hooks support Claude Code and Codex CLI. Other agents can use the CLI directly.
@@ -45,15 +45,15 @@ For the unstable nightly version, use `npm install -g @spatz/cli@nightly`.
45
45
 
46
46
  ### 2. Ask for a recommendation
47
47
 
48
- Pass the task and the model pairs that your agent can run:
48
+ From Claude Code or Codex, pass the task:
49
49
 
50
50
  ```bash
51
- spatz "Fix the off-by-one error in src/list.ts" \
52
- --models claude-opus-5-5:high+medium,claude-sonnet-5-5:medium+low
51
+ spatz "Fix the off-by-one error in src/list.ts"
53
52
  ```
54
53
 
55
- Each candidate uses `<model-id>:<effort>+<effort>...`.
56
- Use model IDs and efforts that your environment supports.
54
+ spatz uses a preset for the detected harness.
55
+ Override it with `--models`, `SPATZ_MODELS`, or `models` in [configuration files](docs/configuration.md#default-models).
56
+ Use `--family claude` or `--family gpt` to filter candidates for a review.
57
57
  The output includes a `suggestion_id` and a ranked list of pairs.
58
58
  Add `--json` for machine-readable output.
59
59
 
@@ -115,7 +115,7 @@ Hooks and the mod can run together. The mod's `record: auto` avoids duplicate us
115
115
  ### Install for Claude Code
116
116
 
117
117
  Use macOS or Linux with a POSIX shell. The plugins do not support native Windows.
118
- Install the [spatz CLI](#quickstart) first so the hooks and mod can find it on `PATH`.
118
+ The plugins run the CLI through a bundled launcher: an installed `spatz` on `PATH` wins, otherwise it uses Bun or npx from the `PATH` Claude Code starts with.
119
119
  The mod needs Claude Code 2.1.287 or newer.
120
120
 
121
121
  1. Start Claude Code. Add the marketplace and install the hooks:
@@ -179,8 +179,8 @@ Keep the suggestion output unfiltered so the hooks can read its ID.
179
179
  After the task, ask the agent to report the actual pair and result with `spatz report`.
180
180
  Run `spatz stats` to see recorded outcomes.
181
181
 
182
- Every plugin ships the `spatz` routing skill. You do not need to edit your agent instructions.
183
- The hooks plugins can also run without a global CLI through their bundled launcher using Bun or npx.
182
+ Every plugin ships the `routing` skill (`/spatz:routing`, `/spatz-mod:routing`, or `spatz:routing` in Codex). The mod's `/spatz` command checks status and changes mode or scope. You do not need to edit your agent instructions.
183
+ Every plugin can run without a global CLI through its bundled launcher using Bun or npx.
184
184
  The first run downloads about 60 MB. Codex hooks time out after 10 seconds.
185
185
  For this setup, warm the launcher before the first session with `"<plugin root>/bin/spatz" --version`.
186
186
  See [Installation](docs/installation.md) for launcher paths and setup without a global CLI.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@spatz/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Model and effort recommendations for coding agents",
5
5
  "bin": {
6
6
  "spatz": "bin/spatz.js"
7
7
  },
8
8
  "optionalDependencies": {
9
- "@spatz/cli-linux-x64": "0.1.2",
10
- "@spatz/cli-linux-arm64": "0.1.2",
11
- "@spatz/cli-darwin-arm64": "0.1.2",
12
- "@spatz/cli-darwin-x64": "0.1.2",
13
- "@spatz/cli-win32-x64": "0.1.2"
9
+ "@spatz/cli-linux-x64": "0.1.4",
10
+ "@spatz/cli-linux-arm64": "0.1.4",
11
+ "@spatz/cli-darwin-arm64": "0.1.4",
12
+ "@spatz/cli-darwin-x64": "0.1.4",
13
+ "@spatz/cli-win32-x64": "0.1.4"
14
14
  },
15
15
  "engines": {
16
16
  "node": ">=18"