command-code 1.89.2 → 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 CHANGED
@@ -1,5 +1,22 @@
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
+
14
+ ## 1.89.3
15
+
16
+ ### Patch Changes
17
+
18
+ - feat: add vice theme, pick it via /theme
19
+
3
20
  ## 1.89.2
4
21
 
5
22
  ### Patch Changes
@@ -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** |
@@ -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
@@ -53,6 +53,7 @@ The model catalog — every id `/model`, `--model`, `model:effort` shorthand, an
53
53
  | `stepfun/Step-3.7-Flash` | Step 3.7 Flash | 256K | — | $0.2/$1.15 · cache $0.04 | Go and above | multimodal sparse-MoE reasoning |
54
54
  | `stepfun/Step-3.5-Flash` | Step 3.5 Flash | 262K | — | $0.09/$0.3 · cache $0.02 | Go and above | fast sparse-MoE agentic reasoning |
55
55
  | `tencent/hy3-paid` | Tencent Hy3 | 262K | — | $0.14/$0.58 · cache $0.035 | Go and above | sparse-MoE reasoning & agentic tool use |
56
+ | `tencent/hy4` | Tencent Hy4 | 1.02M | low, medium, high | $0.834/$2.501 · cache $0.042 | Go and above | long-horizon agentic coding with image understanding |
56
57
  | `tencent/hy4-flash` | Tencent Hy4 Flash | 1.02M | off, high | $0.07/$0.281 · cache $0.003 | Go and above | low-cost Hy4 for coding, reasoning & agentic work |
57
58
  | `tencent/hy4-preview` | Tencent Hy4 Preview | 1.05M | low, medium, high | $0.834/$2.501 · cache $0.042 | Go and above | agentic coding & sustained multi-step tool use |
58
59
  | `nvidia/nemotron-3-ultra-550b-a55b` | Nemotron 3 Ultra | 1M | — | $0.6/$2.4 · cache $0.12 | Go and above | open reasoning model for long-horizon autonomous agents |
@@ -90,6 +91,8 @@ The model catalog — every id `/model`, `--model`, `model:effort` shorthand, an
90
91
  | Id (use EXACTLY this) | Name | Context | Efforts | $/1M in/out · cache read | Min plan | Best for |
91
92
  |---|---|---|---|---|---|---|
92
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 |
93
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 |
94
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 |
95
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 between dark and light themes
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 or 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
@@ -328,6 +330,7 @@ Valid model ids (the /model catalog — use these EXACT ids):
328
330
  - stepfun/Step-3.7-Flash
329
331
  - stepfun/Step-3.5-Flash
330
332
  - tencent/hy3-paid
333
+ - tencent/hy4
331
334
  - tencent/hy4-flash
332
335
  - tencent/hy4-preview
333
336
  - google/gemini-4-carbon
@@ -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;