command-code 1.80.0 → 1.82.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 +14 -0
- package/dist/bundled/command-code-knowledge/reference/models.md +1 -0
- package/dist/bundled/command-code-knowledge/reference/product-help.md +1 -0
- package/dist/bundled/command-code-knowledge/reference/tools.md +52 -0
- package/dist/bundled/config/references/settings.md +1 -0
- package/dist/cli.mjs +5 -5
- package/package.json +3 -1
- package/vsix/commandcode-vscode.vsix +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# command-code
|
|
2
2
|
|
|
3
|
+
## 1.82.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: gemini argon
|
|
8
|
+
- fix: No longer re-send the same prompt automatically on model refusal
|
|
9
|
+
- fix: commands run with `!` bash mode and their output reach the agent.
|
|
10
|
+
|
|
11
|
+
## 1.81.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- feat: add `codemode` tool that lets the model write scripts to orchestrate tool calls, MCP only by default, change via /config
|
|
16
|
+
|
|
3
17
|
## 1.80.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -96,6 +96,7 @@ The model catalog — every id `/model`, `--model`, `model:effort` shorthand, an
|
|
|
96
96
|
|
|
97
97
|
| Id (use EXACTLY this) | Name | Context | Efforts | $/1M in/out · cache read | Min plan | Best for |
|
|
98
98
|
|---|---|---|---|---|---|---|
|
|
99
|
+
| `google/gemini-4-argon` | Gemini 4 Argon | 1M | low, medium, high | $2/$10 · cache $0.1 | Pro and above | multimodal reasoning for documents and agent workflows |
|
|
99
100
|
| `google/gemini-3.8-flash` | Gemini 3.8 Flash | 1M | low, medium, high | $1.5/$7.5 · cache $0.15 | GOAT and above | newest Gemini Flash, improved core reasoning |
|
|
100
101
|
| `google/gemini-3.7-flash` | Gemini 3.7 Flash | 1.05M | low, medium, high | $1.5/$7.5 · cache $0.15 (write $0.08334) | GOAT and above | higher-quality coding & agentic workflows, fewer tokens |
|
|
101
102
|
| `google/gemini-3.6-flash` | Gemini 3.6 Flash | 1M | low, medium, high | $1.5/$7.5 · cache $0.15 | Pro and above | previous Gemini Flash, still fast & capable |
|
|
@@ -321,6 +321,7 @@ Valid model ids (the /model catalog — use these EXACT ids):
|
|
|
321
321
|
- stepfun/Step-3.5-Flash
|
|
322
322
|
- tencent/hy4-preview
|
|
323
323
|
- tencent/hy3-paid
|
|
324
|
+
- google/gemini-4-argon
|
|
324
325
|
- google/gemini-3.8-flash
|
|
325
326
|
- google/gemini-3.7-flash
|
|
326
327
|
- google/gemini-3.6-flash
|
|
@@ -439,6 +439,58 @@ MCP tools are hidden entirely in plan mode - Command Code can't verify a remote
|
|
|
439
439
|
|
|
440
440
|
---
|
|
441
441
|
|
|
442
|
+
## Codemode
|
|
443
|
+
|
|
444
|
+
The `codemode` tool lets the model write a short JavaScript script that calls other tools. Instead of one tool call per round trip, the model writes a script that does several steps and runs it in one go: it loops, fans out with `Promise.all`, and filters, and only what it prints or returns reaches the context. A chain of MCP calls with a filter at the end becomes one call:
|
|
445
|
+
|
|
446
|
+
```js
|
|
447
|
+
const issues = await tools.mcp__linear__list_issues({team: "Core"});
|
|
448
|
+
return issues.filter(issue => issue.open).map(issue => issue.id);
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
| Parameter | Type | Required | Description |
|
|
452
|
+
| --- | --- | --- | --- |
|
|
453
|
+
| `code` | string | yes | The body of an async function. Top-level `await` and `return` work. |
|
|
454
|
+
| `timeout_ms` | number | no | Deadline for the whole script. Default 120,000, between 1,000 and 600,000. |
|
|
455
|
+
|
|
456
|
+
### Configure codemode
|
|
457
|
+
|
|
458
|
+
Codemode has three modes, set in `/config`. The mode decides when the tool is offered to the model and which tools a script may call.
|
|
459
|
+
|
|
460
|
+
- **MCP tools.** The default. The tool is offered whenever an MCP server is connected, and scripts can call the MCP tools. Everything else works as before: MCP tools can still be loaded and called directly.
|
|
461
|
+
- **Read-only and MCP tools.** The tool is offered in every session. Scripts can call the MCP tools and the read-only built-in tools: reading files and directories, glob, grep, web search, and the todo and task tools. These tools are made script-first and are removed from context, so that the model uses them through codemode.
|
|
462
|
+
- **Off.** Disables codemode completely.
|
|
463
|
+
|
|
464
|
+
In every mode, a script can never edit or write files, run commands, ask the user a question, review a plan, switch plan mode, load tools, or start another script.
|
|
465
|
+
|
|
466
|
+
### Globals
|
|
467
|
+
|
|
468
|
+
| Global | What it does |
|
|
469
|
+
| --- | --- |
|
|
470
|
+
| `tools.<name>(args)` | Calls a tool. One object argument, shaped like the tool's parameters. |
|
|
471
|
+
| `ALL_TOOLS` | The tools this script may call, with a one-line description each. |
|
|
472
|
+
| `searchTools("query")` | Finds callable tools by description. |
|
|
473
|
+
| `describeTool("name")` | Returns a tool's full schema. |
|
|
474
|
+
| `CWD` | The working directory. |
|
|
475
|
+
| `text(...)`, `console.log(...)` | Print a line. |
|
|
476
|
+
| `return`, `exit()` | Send back a value; end the script early. |
|
|
477
|
+
| `store("key", value)`, `load("key")` | Keep a JSON value across scripts in the session. |
|
|
478
|
+
|
|
479
|
+
### Permissions
|
|
480
|
+
|
|
481
|
+
Every nested call is a real tool call: same mode filter, permission rules, input repair, and output truncation as a direct call, with prompts one at a time. `codemode` itself is read-only and never prompts, since it can do no more than the calls it makes. It is hidden in any mode that leaves a script nothing to call, such as plan mode under the default setting.
|
|
482
|
+
|
|
483
|
+
### Limits
|
|
484
|
+
|
|
485
|
+
Scripts run in a sandbox with no file system, network, timers, or process access; the tool bridge is the only way out.
|
|
486
|
+
|
|
487
|
+
- 128 MB of memory, one sandbox per call
|
|
488
|
+
- 8 nested calls in flight at once
|
|
489
|
+
- 1 MB of printed output, after which the script fails; 25,000 tokens reach the model
|
|
490
|
+
- 256 KB per stored value, 1 MB per session store
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
|
|
442
494
|
## Permission modes & tool visibility
|
|
443
495
|
|
|
444
496
|
Which tools the model even *sees* depends on the mode:
|
|
@@ -15,6 +15,7 @@ The executable registry is authoritative. Run `cmd config list --scope effective
|
|
|
15
15
|
| `peek-recap-diagram` | user | boolean | `true`, `false` | When a task that changed files or ran commands finishes, draw one short text diagram recapping it (one extra model call per task, same as /peek). |
|
|
16
16
|
| `peek-recap-delay` | user | enum | `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60` | Recap a finished task only when this long passed since your last message, so a quick back-and-forth is not recapped every time (same as /peek delay). |
|
|
17
17
|
| `image-vision` | user | enum | `ask`, `enabled`, `disabled` | Let a text-only model read attached images by describing them with the vision model ("Ask on first use" prompts the first time you attach an image). |
|
|
18
|
+
| `codemode` | user | enum | `mcp`, `tools`, `off` | The codemode tool lets the model write a short code script that can call several tools and run it in one go: fewer round trips, less raw tool output in context. Scripts never edit, write, or run commands. |
|
|
18
19
|
| `branch-summary-skip-prompt` | user | boolean | `true`, `false` | Never ask about summarizing when switching branches in /tree. |
|
|
19
20
|
| `default-export-format` | user | enum | `html`, `jsonl`, `md` | Format a bare /export (no format or path) writes — an explicit /export html\|jsonl\|md\|<path> always overrides. |
|
|
20
21
|
| `default-share-gist-format` | user | enum | `html`, `jsonl`, `md` | Format a bare /share gist (no format argument) posts — an explicit /share gist html\|jsonl\|md always overrides. |
|