command-code 1.89.3 → 1.90.0
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.
- package/CHANGELOG.md +12 -1
- package/dist/bundled/command-code-knowledge/reference/custom-agents.md +12 -0
- package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +2 -2
- package/dist/bundled/command-code-knowledge/reference/headless.md +1 -1
- package/dist/bundled/command-code-knowledge/reference/hooks.md +8 -0
- package/dist/bundled/command-code-knowledge/reference/models.md +2 -0
- package/dist/bundled/command-code-knowledge/reference/product-help.md +4 -2
- package/dist/bundled/config/references/settings.md +1 -1
- package/dist/bundled/mod-builder/reference/overview.md +2 -0
- package/dist/bundled/mod-builder/reference/ui.md +1 -1
- package/dist/cli.mjs +5 -5
- package/package.json +1 -1
- package/vsix/commandcode-vscode.vsix +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
# command-code
|
|
2
2
|
|
|
3
|
+
## 1.90.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: one-time GTA VI launch-day intro on Nov 19, replay with /gta or skip with /gta off
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- fix: `/goal` no longer reports achieved when the completion check fails.
|
|
12
|
+
- fix: retire the vice theme; its header shows on every theme until Nov 21
|
|
13
|
+
|
|
3
14
|
## 1.89.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
6
17
|
|
|
7
|
-
- feat: add
|
|
18
|
+
- feat: add vice theme, pick it via /theme
|
|
8
19
|
|
|
9
20
|
## 1.89.2
|
|
10
21
|
|
|
@@ -215,6 +215,18 @@ A run can be detached. When it's started in the background (or the agent sets `b
|
|
|
215
215
|
|
|
216
216
|
You can also detach a run yourself. Press **Ctrl+B** while a foreground agent is working and it moves to the background mid-run. In the TUI, a background agent's result is sent to the main agent automatically when it finishes, so nothing has to poll. Watch and stop background agents from the [Background panel](https://commandcode.ai/docs/background-tasks#the-background-panel-in-the-tui).
|
|
217
217
|
|
|
218
|
+
### Watching a subagent
|
|
219
|
+
|
|
220
|
+
Running subagents show up in the TUI while they work:
|
|
221
|
+
|
|
222
|
+
- **Ctrl+B** (or **downward arrow key ↓** and then press **Enter** from an empty input) opens the **Background** panel. Each subagent row shows its status, elapsed time, tokens, turn count against its limit, and the tool it is running now. A row with no activity for 30 seconds is marked `idle`.
|
|
223
|
+
- **Enter** on a row opens that subagent's activity: its id, status, and recent tool calls with their inputs and whether each succeeded.
|
|
224
|
+
- **x** stops a running subagent, or dismisses a finished row. The panel keeps the 10 most recent finished runs.
|
|
225
|
+
|
|
226
|
+
If a foreground subagent is running, Ctrl+B moves it to the background first. When nothing is running, Ctrl+B is cursor left as usual. The model can read the same state with `agent_output`.
|
|
227
|
+
|
|
228
|
+
Your [hooks](./hooks.md#sub-agents) run on a subagent's tool calls too, so delegating work doesn't skip a `PreToolUse` guard.
|
|
229
|
+
|
|
218
230
|
### Where agents load from
|
|
219
231
|
|
|
220
232
|
| **Source** | **Path** | **Notes** |
|
|
@@ -121,7 +121,7 @@ Every built-in command, grouped by area. Aliases are shown in parentheses on the
|
|
|
121
121
|
| `/help` | Show available shortcuts |
|
|
122
122
|
| `/hotkeys` | Show all keyboard shortcuts |
|
|
123
123
|
| `/config [query]` | Search and change settings |
|
|
124
|
-
| `/theme [dark\|light\|
|
|
124
|
+
| `/theme [dark\|light\|auto]` | Switch themes; `auto` matches your terminal background |
|
|
125
125
|
| `/status` | Show comprehensive environment status |
|
|
126
126
|
| `/statusline [off\|on\|reset]` | Configure Command Code's statusline UI (terminal only) |
|
|
127
127
|
| `/changelog [all]` | See what's new in Command Code (`all` for the full history) |
|
|
@@ -141,7 +141,7 @@ Every built-in command, grouped by area. Aliases are shown in parentheses on the
|
|
|
141
141
|
|
|
142
142
|
`/effort` only opens its selector when the current model supports reasoning effort levels; otherwise it prints a notice that effort isn't supported for that model.
|
|
143
143
|
|
|
144
|
-
`/theme` offers
|
|
144
|
+
`/theme` offers three values. `dark` and `light` pin a palette; `auto`, the default, automatically detects your terminal's background color at startup (OSC 11, falling back to `COLORFGBG`) and uses light or dark to match. A terminal that won't report its background falls back to dark.
|
|
145
145
|
|
|
146
146
|
### Commands with meaningful default actions when bare
|
|
147
147
|
|
|
@@ -332,7 +332,7 @@ Flags useful for headless and automated workflows:
|
|
|
332
332
|
| `--tools-enable <names>` | Enable specific withheld tools by name (comma-separated, repeatable) |
|
|
333
333
|
| `-m, --model <model>` | Run on a specific model this session |
|
|
334
334
|
| `--effort <level>` | Set reasoning effort (`low`, `medium`, `high`, …) |
|
|
335
|
-
| `--theme <theme>` | Set the color theme (`dark`, `light`,
|
|
335
|
+
| `--theme <theme>` | Set the color theme (`dark`, `light`, or `auto` to match the terminal background) |
|
|
336
336
|
| `--config <key=value>` | Set any setting headlessly (repeatable) - see below |
|
|
337
337
|
| `--yolo` | Allow file writes and shell commands |
|
|
338
338
|
| `--accept-edits` | Start in accept edits mode (alias for `--permission-mode accept-edits`) |
|
|
@@ -525,6 +525,14 @@ Every hook command is spawned through a system shell. The JSON input is piped on
|
|
|
525
525
|
|
|
526
526
|
Each hook fires with its own process and its own copy of stdin. Hooks cannot read each other's stdout or stderr, and cannot pass information between themselves. When multiple hooks match the same tool call, the outputs are combined by the rules in the [decision matrix](#block-and-halt-decision-matrix); no hook sees any other hook's result.
|
|
527
527
|
|
|
528
|
+
### Sub-agents
|
|
529
|
+
|
|
530
|
+
`PreToolUse` and `PostToolUse` hooks also fire on every tool call a [sub-agent](./custom-agents.md) makes, including background ones. A hook that denies a parent's shell command denies the same command from a sub-agent.
|
|
531
|
+
|
|
532
|
+
- **Permission mode.** `permission_mode` is the sub-agent's own mode, which can differ from the parent's when the agent file sets `permissionMode:`. A sub-agent in plan mode skips hooks, like the main session does.
|
|
533
|
+
- **Halting.** A hook that halts (`continue: false`) stops only that sub-agent. The main agent gets the partial result with a note that a hook stopped it, and is told not to redo the halted action itself.
|
|
534
|
+
- **Not per sub-agent.** `Stop` and `SessionStart` fire for the main session only.
|
|
535
|
+
|
|
528
536
|
---
|
|
529
537
|
|
|
530
538
|
## Permission modes
|
|
@@ -91,6 +91,8 @@ The model catalog — every id `/model`, `--model`, `model:effort` shorthand, an
|
|
|
91
91
|
| Id (use EXACTLY this) | Name | Context | Efforts | $/1M in/out · cache read | Min plan | Best for |
|
|
92
92
|
|---|---|---|---|---|---|---|
|
|
93
93
|
| `gpt-6-astra` | GPT-6 Astra | 1.05M | low, medium, high, xhigh, max | $10/$50 · cache $1 (write $12.5) | Max | most capable OpenAI model for demanding reasoning & agents |
|
|
94
|
+
| `gpt-6.2-astra` | GPT-6.2 Astra | 1.05M | low, medium, high, xhigh, max | $8/$40 · cache $0.4 (write $10) | Max | OpenAI flagship for the hardest engineering & research |
|
|
95
|
+
| `gpt-6.2-sol` | GPT-6.2 Sol | 1.05M | low, medium, high, xhigh, max | $2/$10 · cache $0.1 (write $2.5) | Pro and above | efficient, versatile OpenAI model for everyday coding |
|
|
94
96
|
| `gpt-6.1-sol` | GPT-6.1 Sol | 1.05M | low, medium, high, xhigh, max | $2/$10 · cache $0.1 (write $2.5) | Max | near-Astra performance for complex work at a lower cost |
|
|
95
97
|
| `gpt-6.1-terra` | GPT-6.1 Terra | 1.05M | low, medium, high, xhigh, max | $1/$5 · cache $0.05 (write $1.25) | Pro and above | fast, efficient model for visual reasoning, computer use & writing |
|
|
96
98
|
| `gpt-6-sol` | GPT-6 Sol | 1.05M | low, medium, high, xhigh, max | $2/$10 · cache $0.2 (write $2.5) | Pro and above | built for complex coding & agentic workflows |
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
- /rewind: Restore to a previous checkpoint (Press Esc twice)
|
|
26
26
|
- /tree: Browse the session tree and jump to any point in it
|
|
27
27
|
- /clear (new): Start a new session with empty context; previous stays on disk, resumable with /resume (/new is the same command)
|
|
28
|
-
- /theme: Switch the color theme (dark, light
|
|
28
|
+
- /theme: Switch the color theme (dark, light or auto)
|
|
29
29
|
- /language: Switch the interface language (English / 简体中文)
|
|
30
30
|
- /share [gist]: Share as a GitHub gist — /share gist [html|jsonl|md] (link sharing is being rebuilt, use /export)
|
|
31
31
|
- /unshare: Stop sharing conversation
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
- --tools-enable <names>: -p: enable specific withheld tools by name, comma-separated (repeatable)
|
|
129
129
|
- -m, --model <model>: Run on a specific model this session
|
|
130
130
|
- --effort <level>: Set reasoning effort for the session (e.g. low, medium, high) — depends on the model
|
|
131
|
-
- --theme <theme>: Set the color theme (dark, light
|
|
131
|
+
- --theme <theme>: Set the color theme (dark, light or auto)
|
|
132
132
|
- --config <key=value>: Set any setting headlessly, e.g. --config theme=dark (repeatable) — the CLI form of /config
|
|
133
133
|
- --list-models: List the models available for use
|
|
134
134
|
- --local-only: For BYOK: local-only with your BYOK providers, no Command Code traffic (same as CMD_LOCAL_ONLY=1)
|
|
@@ -272,6 +272,8 @@ Valid model ids (the /model catalog — use these EXACT ids):
|
|
|
272
272
|
- claude-haiku-5-5
|
|
273
273
|
- claude-haiku-4-5-20251001
|
|
274
274
|
- gpt-6-astra
|
|
275
|
+
- gpt-6.2-astra
|
|
276
|
+
- gpt-6.2-sol
|
|
275
277
|
- gpt-6.1-sol
|
|
276
278
|
- gpt-6.1-terra
|
|
277
279
|
- gpt-6-sol
|
|
@@ -8,7 +8,7 @@ The executable registry is authoritative. Run `cmd config list --scope effective
|
|
|
8
8
|
| --- | --- | --- | --- | --- |
|
|
9
9
|
| `model` | user | string | known model id | The default main-loop model for new sessions. A running session keeps its current model. Use /model to change the running session. |
|
|
10
10
|
| `permissions.defaultMode` | user | enum | `default`, `plan`, `auto-accept`, `dont-ask` | Default permission mode for tool usage. A long-lived host may also apply the change to its current session. "bypass" cannot be set here. |
|
|
11
|
-
| `theme` | user | enum | `dark`, `light`, `
|
|
11
|
+
| `theme` | user | enum | `dark`, `light`, `auto` | Terminal color theme (same setting as /theme). Auto automatically detects your terminal background and uses light or dark to match. |
|
|
12
12
|
| `compact-mode` | user | enum | `default`, `fast` | Auto-compact aggressiveness when context fills up (same setting as /compact-mode). |
|
|
13
13
|
| `tree-filter-mode` | user | enum | `default`, `no-tools`, `user-only`, `labeled-only`, `all` | Default filter when opening /tree. |
|
|
14
14
|
| `on-demand-tool-descriptions` | user | boolean | `true`, `false` | Explain shell commands on permission prompts only when you press ctrl+e (default). Turn off to generate every explanation upfront. |
|
|
@@ -194,6 +194,8 @@ Command Code's own features ride this exact API. First-party providers (`provide
|
|
|
194
194
|
{"mods": {"disabled": ["provider-copilot", "update-notice", "titling", "learning"]}}
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
+
The `launch-day` built-in plays a one-time GTA VI intro during its launch window (00:00 on November 19 to 12:00 on November 20, local time), once per person and only in an interactive terminal with enough colours and room. It ends by relighting the welcome COMMAND banner in sunset colours, which later sessions in the window open on. `/gta` replays it and `/gta off` stops and skips it; `cmd mods disable launch-day` or `COMMANDCODE_LAUNCH_DAY=0` turns it off.
|
|
198
|
+
|
|
197
199
|
Some built-ins are **opt-in** and are disabled by default; `cmd mods list --builtin` marks them `disabled by default`. The session todo checklist (`todo_write`, the TODOS panel, `/todos`, `ctrl+x`) is the `todos` mod: enable it with `cmd mods enable todos` (project level; `-g` for the user level), which adds it to the `enabled` key in the settings file:
|
|
198
200
|
|
|
199
201
|
```json
|
|
@@ -78,7 +78,7 @@ A widget's or pane's `render({width})` returns a list of nodes. A node is a plai
|
|
|
78
78
|
|
|
79
79
|
## Widgets: the band above the prompt
|
|
80
80
|
|
|
81
|
-
`cmd.ui.widget({placement: 'above-editor' | 'below-editor', render})` - lines drawn around the input panel; `above-editor` is the band right above the prompt, `below-editor` sits under it with the status row. `render` re-runs on every repaint; call `cmd.ui.refreshWidgets()` after the data it reads changed (or keep that data in `cmd.state`, whose `set` repaints for you). A throwing render shows a one-line warning and reports a `mod_error` so siblings keep drawing. The returned `Disposable` removes the widget. Headless: stored, drawn nowhere.
|
|
81
|
+
`cmd.ui.widget({placement: 'above-editor' | 'below-editor', render})` - lines drawn around the input panel; `above-editor` is the band right above the prompt, `below-editor` sits under it with the status row. `render` re-runs on every repaint; call `cmd.ui.refreshWidgets()` after the data it reads changed (or keep that data in `cmd.state`, whose `set` repaints for you). A throwing render shows a one-line warning and reports a `mod_error` so siblings keep drawing. Widgets sit inside the surface's two-column side margins; pass `isFullWidth: true` to draw edge to edge, lined up with the prompt box (`render` then gets the prompt column's full width). Terminal UI only; other surfaces ignore it. The returned `Disposable` removes the widget. Headless: stored, drawn nowhere.
|
|
82
82
|
|
|
83
83
|
```ts
|
|
84
84
|
let failing = 0;
|