command-code 1.37.0 → 1.38.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,18 @@
|
|
|
1
1
|
# command-code
|
|
2
2
|
|
|
3
|
+
## 1.38.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: add reasoning effort support for Tencent Hy4 Preview
|
|
8
|
+
- feat: add reasoning effort support for Tencent Hy4 Preview
|
|
9
|
+
|
|
10
|
+
## Unreleased
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- feat: Allow custom agents to set `reasoningEffort`
|
|
15
|
+
|
|
3
16
|
## 1.37.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -238,6 +238,7 @@ Only these keys are read; anything else is ignored. All except `name` are option
|
|
|
238
238
|
Tools the agent may use. `"*"` grants all; otherwise a comma- or space-separated list (or a YAML array). Omit it and the agent gets no tools.
|
|
239
239
|
Deny list applied after `tools`. Deny beats allow, so pair it with `tools: "*"` to mean "everything except these". Same format as `tools`.
|
|
240
240
|
Model this agent always runs on: any `/model` id. See [Available models](https://commandcode.ai/docs/reference/cli/models) for the full list, or run `cmd --list-models`. Omit it (or set `model: inherit`) to follow the session model.
|
|
241
|
+
Reasoning effort this agent runs at. Reasoning levels are model-specific. Pin/select a level that agent's model supports; an unsupported level (or a model with no effort levels) falls back to the model's default reasoning effort. Omit to use the model default.
|
|
241
242
|
Caps the agent's loop. Default `100`.
|
|
242
243
|
Overrides the session's permission mode for this agent. One of `default`, `auto-accept`, `bypass`, `plan`, `dont-ask`. A session already in `plan` or `bypass` wins. Defaults to inheriting the session.
|
|
243
244
|
When `true`, every run detaches: the `agent` tool returns an `agent_id` and results come from `agent_output`.
|
|
@@ -275,6 +276,18 @@ Use ids exactly as `--list-models` prints them. Examples: `claude-opus-4-8`, `cl
|
|
|
275
276
|
|
|
276
277
|
Omitting `model` is the same as `model: inherit` - the agent follows the session's `/model`. Pinning a model gives the agent its own prompt cache, so a slow planner and a fast implementer don't thrash each other's.
|
|
277
278
|
|
|
279
|
+
### Reasoning effort
|
|
280
|
+
|
|
281
|
+
`reasoningEffort` pins how hard the agent thinks, independent of the session's `/effort`. Pin/select a reasoning level the agent's model supports. To see a model's exact set, open the `/model` picker and select the model - its reasoning-effort step lists precisely the levels that model accepts.
|
|
282
|
+
|
|
283
|
+
The value is validated in two stages so a bad one never reaches the provider mid-delegation:
|
|
284
|
+
|
|
285
|
+
- At load time an unknown level (a typo like `meduim`) is dropped with a warning, and the agent falls back to the model default - the file still loads.
|
|
286
|
+
- At runtime, the level is checked against the model actually chosen (an `inherit` model isn't known until launch).
|
|
287
|
+
- A level the resolved model doesn't support falls back to the model default rather than being clamped to a different level.
|
|
288
|
+
|
|
289
|
+
Omit it to run at the model's default effort.
|
|
290
|
+
|
|
278
291
|
### Full example
|
|
279
292
|
|
|
280
293
|
Every field, with valid values. Copy it and delete what you don't need.
|
|
@@ -287,6 +300,7 @@ description: "Writes a structured research report from the current repo. Delegat
|
|
|
287
300
|
tools: "*" # grant everything…
|
|
288
301
|
disallowedTools: shell_command, write_file # …except shells and file writes
|
|
289
302
|
model: claude-opus-4-8 # any /model id, or omit to inherit
|
|
303
|
+
reasoningEffort: high # a level THIS model supports (varies by model); omit for default
|
|
290
304
|
maxTurns: 40 # cap the loop (default 100)
|
|
291
305
|
permissionMode: plan # default|auto-accept|bypass|plan|dont-ask
|
|
292
306
|
background: true # detach; collect via agent_output
|
|
@@ -310,6 +324,7 @@ Quick lookup:
|
|
|
310
324
|
| `tools` | string \| list | `"*"`, or comma/space-separated ids, or a YAML list | none |
|
|
311
325
|
| `disallowedTools` | string \| list | same format as `tools`; applied after it | - |
|
|
312
326
|
| `model` | string | any `/model` id, or `inherit` | inherit |
|
|
327
|
+
| `reasoningEffort` | string | reasoning level the pinned model supports | model default |
|
|
313
328
|
| `maxTurns` | integer | positive integer | `100` |
|
|
314
329
|
| `permissionMode` | string | `default`, `auto-accept`, `bypass`, `plan`, `dont-ask` | inherit |
|
|
315
330
|
| `background` | boolean | `true` / `false` | `false` |
|
|
@@ -40,7 +40,7 @@ The model catalog — every id `/model`, `--model`, `model:effort` shorthand, an
|
|
|
40
40
|
| `stepfun/Step-3.7-Flash` | Step 3.7 Flash | 256K | — | $0.2/$1.15 · cache $0.04 | Go and above | multimodal sparse-MoE reasoning |
|
|
41
41
|
| `stepfun/Step-3.5-Flash` | Step 3.5 Flash | 1M | — | $0.1/$0.3 · cache $0.02 | Go and above | fast sparse-MoE agentic reasoning |
|
|
42
42
|
| `tencent/hy3-paid` | Tencent Hy3 | 262K | — | $0.14/$0.58 · cache $0.035 | Go and above | sparse-MoE reasoning & agentic tool use |
|
|
43
|
-
| `tencent/hy4-preview` | Tencent Hy4 Preview | 1.05M |
|
|
43
|
+
| `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 |
|
|
44
44
|
| `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 |
|
|
45
45
|
| `thinkingmachines/inkling` | Inkling | 256K | — | $1/$4.05 · cache $0.17 | Go and above | multimodal MoE reasoning |
|
|
46
46
|
| `thinkingmachines/inkling-small` | Inkling Small | 1M | — | $0.5/$1.2 · cache $0.1 | Go and above | lightweight MoE reasoning at lower cost and latency |
|