command-code 1.93.0 → 1.93.1

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 (92) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/vsix/commandcode-vscode.vsix +0 -0
  4. package/dist/bundled/agent-browser/SKILL.md +0 -73
  5. package/dist/bundled/command-code-knowledge/SKILL.md +0 -68
  6. package/dist/bundled/command-code-knowledge/live-models.ts +0 -284
  7. package/dist/bundled/command-code-knowledge/reference/byok.md +0 -389
  8. package/dist/bundled/command-code-knowledge/reference/custom-agents.md +0 -341
  9. package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +0 -423
  10. package/dist/bundled/command-code-knowledge/reference/headless.md +0 -381
  11. package/dist/bundled/command-code-knowledge/reference/hooks.md +0 -1107
  12. package/dist/bundled/command-code-knowledge/reference/mcp.md +0 -648
  13. package/dist/bundled/command-code-knowledge/reference/memory.md +0 -137
  14. package/dist/bundled/command-code-knowledge/reference/models.md +0 -144
  15. package/dist/bundled/command-code-knowledge/reference/permissions.md +0 -486
  16. package/dist/bundled/command-code-knowledge/reference/plan-mode.md +0 -283
  17. package/dist/bundled/command-code-knowledge/reference/plans.md +0 -16
  18. package/dist/bundled/command-code-knowledge/reference/product-help.md +0 -489
  19. package/dist/bundled/command-code-knowledge/reference/sessions.md +0 -377
  20. package/dist/bundled/command-code-knowledge/reference/skills.md +0 -1009
  21. package/dist/bundled/command-code-knowledge/reference/tools.md +0 -522
  22. package/dist/bundled/config/SKILL.md +0 -18
  23. package/dist/bundled/config/references/permissions.md +0 -27
  24. package/dist/bundled/config/references/settings.md +0 -50
  25. package/dist/bundled/design/SKILL.md +0 -441
  26. package/dist/bundled/design/references/accessibility.md +0 -404
  27. package/dist/bundled/design/references/border.md +0 -161
  28. package/dist/bundled/design/references/button.md +0 -192
  29. package/dist/bundled/design/references/checkup.md +0 -162
  30. package/dist/bundled/design/references/color.md +0 -245
  31. package/dist/bundled/design/references/create.md +0 -291
  32. package/dist/bundled/design/references/design-html.md +0 -227
  33. package/dist/bundled/design/references/deslop.md +0 -283
  34. package/dist/bundled/design/references/finish.md +0 -156
  35. package/dist/bundled/design/references/interaction.md +0 -186
  36. package/dist/bundled/design/references/layout.md +0 -216
  37. package/dist/bundled/design/references/media.md +0 -112
  38. package/dist/bundled/design/references/motion.md +0 -237
  39. package/dist/bundled/design/references/redesign.md +0 -197
  40. package/dist/bundled/design/references/refine.md +0 -193
  41. package/dist/bundled/design/references/relayout.md +0 -207
  42. package/dist/bundled/design/references/report-html.md +0 -235
  43. package/dist/bundled/design/references/responsive.md +0 -233
  44. package/dist/bundled/design/references/review.md +0 -164
  45. package/dist/bundled/design/references/setup.md +0 -119
  46. package/dist/bundled/design/references/severity.md +0 -111
  47. package/dist/bundled/design/references/shadow.md +0 -164
  48. package/dist/bundled/design/references/smell.md +0 -211
  49. package/dist/bundled/design/references/style-3d.md +0 -23
  50. package/dist/bundled/design/references/style-bento.md +0 -21
  51. package/dist/bundled/design/references/style-editorial.md +0 -23
  52. package/dist/bundled/design/references/style-futuristic.md +0 -21
  53. package/dist/bundled/design/references/style-glassmorphism.md +0 -52
  54. package/dist/bundled/design/references/style-maximalism.md +0 -20
  55. package/dist/bundled/design/references/style-minimalism.md +0 -21
  56. package/dist/bundled/design/references/style-neo-brutalism.md +0 -21
  57. package/dist/bundled/design/references/style-retro-futurism.md +0 -21
  58. package/dist/bundled/design/references/style-swiss.md +0 -20
  59. package/dist/bundled/design/references/style.md +0 -77
  60. package/dist/bundled/design/references/surface.md +0 -163
  61. package/dist/bundled/design/references/system.md +0 -73
  62. package/dist/bundled/design/references/typeset.md +0 -210
  63. package/dist/bundled/design/references/variants.md +0 -193
  64. package/dist/bundled/design/references/voice.md +0 -184
  65. package/dist/bundled/design/references/writing.md +0 -174
  66. package/dist/bundled/loop/SKILL.md +0 -16
  67. package/dist/bundled/mod-builder/SKILL.md +0 -135
  68. package/dist/bundled/mod-builder/examples/block-dangerous-commands.ts +0 -41
  69. package/dist/bundled/mod-builder/examples/custom-entry-renderer.ts +0 -32
  70. package/dist/bundled/mod-builder/examples/custom-tool.ts +0 -53
  71. package/dist/bundled/mod-builder/examples/flags-and-options.ts +0 -29
  72. package/dist/bundled/mod-builder/examples/input-shortcuts.ts +0 -41
  73. package/dist/bundled/mod-builder/examples/kitchen-sink.ts +0 -129
  74. package/dist/bundled/mod-builder/examples/lifecycle-hooks.ts +0 -64
  75. package/dist/bundled/mod-builder/examples/model-router.ts +0 -43
  76. package/dist/bundled/mod-builder/examples/observe-events.ts +0 -30
  77. package/dist/bundled/mod-builder/examples/pane-and-buttons.ts +0 -60
  78. package/dist/bundled/mod-builder/examples/pane-form.ts +0 -68
  79. package/dist/bundled/mod-builder/examples/permission-policy.ts +0 -34
  80. package/dist/bundled/mod-builder/examples/redact-secrets.ts +0 -46
  81. package/dist/bundled/mod-builder/examples/slash-command.ts +0 -33
  82. package/dist/bundled/mod-builder/examples/spinner-count.ts +0 -47
  83. package/dist/bundled/mod-builder/examples/stream-filter.ts +0 -70
  84. package/dist/bundled/mod-builder/reference/api.md +0 -140
  85. package/dist/bundled/mod-builder/reference/hooks-and-events.md +0 -347
  86. package/dist/bundled/mod-builder/reference/overview.md +0 -271
  87. package/dist/bundled/mod-builder/reference/packaging.md +0 -187
  88. package/dist/bundled/mod-builder/reference/ui.md +0 -253
  89. package/dist/bundled/mod-builder/reference/verify.md +0 -67
  90. package/dist/bundled/skill-builder/SKILL.md +0 -104
  91. package/dist/cli.mjs +0 -16
  92. package/dist/index.mjs +0 -2
@@ -1,341 +0,0 @@
1
- <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
-
3
- # Custom Agents
4
-
5
- A subagent is a separate worker Command Code hands a task to. It runs in its own context window with its own tools, system prompt, and (optionally) its own model. Command Code can run several at once, so work like editing three modules can happen in parallel instead of one at a time.
6
-
7
- Three built-in agents are always available: **General**, **Explore**, and **Plan**. You can add your own as Markdown files.
8
-
9
- ---
10
-
11
- ## Quick start
12
-
13
- The fastest way to make a subagent is to ask for one:
14
-
15
- ```text
16
- create a code-reviewer subagent that reviews diffs for bugs and security issues
17
- ```
18
-
19
- Command Code writes the agent file for you. From then on it delegates to that agent when the task matches.
20
-
21
- To manage agents yourself, run:
22
-
23
- ```text
24
- /agents
25
- ```
26
-
27
- That's it for getting started. The rest of this page covers making agents by hand, how delegation works, and the full file reference.
28
-
29
- ---
30
-
31
- ## Built-in agents
32
-
33
- These ship with Command Code and are always available. They're read-only - you can't edit or delete them.
34
-
35
- | **Agent** | **When it runs** | **Tools** |
36
- | --------- | ---------------- | --------- |
37
- | **General** | The default when no other agent fits. Research and multi-step tasks. | All tools |
38
- | **Explore** | Codebase search and understanding that touches many files. | Read-only: `read_file`, `read_directory`, `grep` |
39
- | **Plan** | Designing an approach and weighing trade-offs. | `read_file` |
40
-
41
- When Command Code delegates without naming an agent, the task goes to **General**.
42
-
43
- ---
44
-
45
- ## Creating an agent
46
-
47
- ### Ask Command Code (recommended)
48
-
49
- Describe the agent in plain language, as shown in [Quick start](#quick-start). Command Code drafts the name, description, system prompt, and a sensible tool set, then saves the file. You review and adjust.
50
-
51
- Choosing **Create agents with Command Code** in the `/agents` menu shows the same thing - it points you back to just asking:
52
-
53
- ```text
54
- Create agents with Command Code
55
-
56
- Ask Command Code to create or update subagents for you, e.g.
57
-
58
- ‣ "create a code-reviewer subagent that reviews diffs for bugs"
59
- ‣ "make a changelog agent that uses a fast model"
60
-
61
- Or edit the files directly:
62
-
63
- • .commandcode/agents/ (this project)
64
- • ~/.commandcode/agents/ (all projects)
65
-
66
- Docs: https://commandcode.ai/docs/core-concepts/custom-agents
67
-
68
- Press Enter to go back and just ask
69
- ```
70
-
71
- ### The /agents manager
72
-
73
- Run `/agents` to open the manager. It lists two create actions, your custom agents grouped by scope, and the read-only defaults.
74
-
75
- ```text
76
- Agents (2 agents)
77
-
78
- 1. Create agents with Command Code (recommended)
79
- 2. Create manually
80
-
81
- User agents
82
- > changelog-writer
83
- release-notes
84
-
85
- Project agents
86
- code-reviewer
87
-
88
- Default agents (read-only)
89
- General
90
- Explore
91
- Plan
92
-
93
- ↑↓ navigate · Enter to select · Esc to close
94
-
95
- Agents live in .commandcode/agents/ (project) and
96
- ~/.commandcode/agents/ (all projects) - edit the files directly anytime.
97
- Docs: https://commandcode.ai/docs/core-concepts/custom-agents
98
- ```
99
-
100
- Sections only appear when they have agents. With no custom agents, the title reads `Agents (No custom agents)`.
101
-
102
- ### The manual wizard
103
-
104
- Pick **Create manually** to fill in every field yourself. The steps are: location → identifier → system prompt → description → tools → model → confirm.
105
-
106
- **Choose where it lives:**
107
-
108
- ```text
109
- Create new agent
110
- Choose location
111
-
112
- > 1. Project (.commandcode/agents/)
113
- 2. Personal (~/.commandcode/agents/)
114
- ```
115
-
116
- Project agents are committed with the repo and shared with your team. Personal agents live in your home directory and work in every project.
117
-
118
- **Name it, prompt it, describe when to use it.** Three steps set the identifier (must be unique, not a reserved name), the system prompt, and the description Command Code matches against to decide when to delegate.
119
-
120
- ```text
121
- Create new agent
122
- Agent type (identifier)
123
-
124
- Enter a unique identifier for your agent:
125
-
126
- > code-reviewer_
127
- e.g. code-reviewer, unit-tester
128
-
129
- Enter to continue · Esc to cancel
130
- ```
131
-
132
- **Select tools.** Categories toggle groups; **Show advanced options** lists individual tools. The first row saves your choice.
133
-
134
- ```text
135
- Create new agent
136
- Select tools
137
-
138
- > [ Continue ]
139
- ────────────────────────────────
140
- [x] Read-only tools
141
- [x] Edit tools
142
- [ ] Execution tools
143
- [x] Search tools
144
- [ Show advanced options ]
145
-
146
- 3 tools selected
147
- ```
148
-
149
- **Select model.** Keep the session model, or pin one this agent always uses.
150
-
151
- ```text
152
- Create new agent
153
- Select model
154
-
155
- > 1. Inherit from session (default)
156
- 2. Pick a specific model
157
- ```
158
-
159
- **Confirm.** A summary shows every field before the file is written:
160
-
161
- ```text
162
- Create new agent
163
- Confirm and save
164
-
165
- Name: code-reviewer
166
- Location: .commandcode/agents/ (project)
167
- Tools: Read-only, Edit, Search
168
- Model: Inherit from session
169
-
170
- Description (Tells Command Code when to use this agent):
171
- Use this agent when you are done writing code and want a
172
- diff reviewed for bugs and security issues.
173
-
174
- System Prompt:
175
- You are a meticulous code reviewer. Prioritize correctness,
176
- security, and clear feedback. Cite file paths and lines.
177
-
178
- Press Enter to save · Esc to cancel
179
- ```
180
-
181
- Agents you add or edit are picked up on the next turn - no restart.
182
-
183
- ### Edit the file directly
184
-
185
- An agent is a Markdown file. The front matter configures it; the body is the system prompt.
186
-
187
- ```markdown
188
- ---
189
- name: code-reviewer
190
- description: Use after writing code to review a diff for bugs and security issues.
191
- tools: read_file, grep, glob
192
- model: claude-sonnet-5
193
- ---
194
-
195
- You are a meticulous code reviewer. Prioritize correctness, security, and clear
196
- feedback. Cite file paths and line numbers. Be concise.
197
- ```
198
-
199
- Drop the file in `.commandcode/agents/` (project) or `~/.commandcode/agents/` (personal) and it loads on the next turn. Full field list is in the [Reference](#reference).
200
-
201
- ---
202
-
203
- ## How it works
204
-
205
- You don't call a subagent yourself. You describe what you want, and Command Code decides when to delegate by calling its built-in `agent` tool. The subagent runs in its own loop, does the work, and returns one result.
206
-
207
- - **Parallel runs.** Command Code starts independent subagents at the same time by making several `agent` calls in one turn. Five explorers, or three agents each editing a different module, run together instead of in sequence.
208
- - **Isolated context.** A subagent's file reads and reasoning stay in its own context window, so a long exploration doesn't fill up the main conversation.
209
- - **Own model.** An agent can pin its own model, so a slow planner and a fast implementer keep separate prompt caches.
210
- - **One level deep.** Subagents can't start their own subagents - the `agent` tool is removed from their tool set.
211
-
212
- ### Background runs
213
-
214
- A run can be detached. When it's started in the background (or the agent sets `background: true`), the `agent` tool returns right away with an `agent_id` and the main session keeps going. The result is collected later with the `agent_output` tool, which can `wait` for it, check `status`, or `kill` the run.
215
-
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
-
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
-
230
- ### Where agents load from
231
-
232
- | **Source** | **Path** | **Notes** |
233
- | ---------- | -------- | --------- |
234
- | Bundled | (built-in) | General, Explore, Plan - always present, read-only |
235
- | Personal | `~/.commandcode/agents/` | Every project on your machine |
236
- | Project | `.commandcode/agents/` | Committed with the repo; shared with the team |
237
-
238
- They load in that order and the **first** definition of a name wins. Files are re-scanned each turn, so adds, edits, and deletes take effect right away.
239
-
240
- Reserved names (`explore`, `plan`, `review`, `general`) are used by built-in behavior. A custom file with one of these names is ignored.
241
-
242
- ---
243
-
244
- ## Reference
245
-
246
- ### Frontmatter fields
247
-
248
- Only these keys are read; anything else is ignored. All except `name` are optional.
249
-
250
- | **Field** | **Type** | **Required** | **Default** | **Description** |
251
- | --------- | -------- | ------------ | ----------- | --------------- |
252
- | `name` | `string` | Yes | filename | Agent id Command Code delegates to. Sanitized to `a-z A-Z 0-9 _ -`; can't be a reserved name. |
253
- | `description` | `string` | No | `""` | When to use the agent, the text Command Code matches against. Be specific. |
254
- | `tools` | `string \| string[]` | No | none | Tools the agent may use. `"*"` grants all; otherwise a comma/space-separated list or YAML array. |
255
- | `disallowedTools` | `string \| string[]` | No | - | Deny list applied after `tools` (deny beats allow). Same format as `tools`. |
256
- | `model` | `string` | No | inherit | Any `/model` id. Omit or set `inherit` to use the sub-agent default. |
257
- | `reasoningEffort` | `string` | No | model default | Reasoning level the pinned model supports; an unsupported level falls back to the model default. |
258
- | `maxTurns` | `integer` | No | `subagentMaxTurns` setting, else `200` | Caps the agent's loop. Set [`subagentMaxTurns`](https://commandcode.ai/docs/settings#top-level-keys) in `settings.json` (1 to 1000; also the "Sub-agent turn limit" row in `/config`) to change the default for every agent, built-in ones included. At the cap the agent gets one final call to write its report, and tools it calls there don't run, so a limit of 200 shows up as 201 turns. |
259
- | `permissionMode` | `string` | No | inherit | Overrides the session mode: `default`, `accept-edits`, `yolo`, `plan`, `dont-ask` (`auto-accept` and `bypass` accepted as aliases). A session already in `plan`/`yolo` wins. |
260
- | `background` | `boolean` | No | `false` | `true` detaches every run: the `agent` tool returns an `agent_id`; results come from `agent_output`. |
261
- | `showOutput` | `boolean` | No | `false` | `true` shows the agent's final message verbatim in the feed instead of a short "done" line. |
262
-
263
- ### Tools
264
-
265
- Tool ids are the same names shown in the `/agents` wizard's advanced list. How `tools` is read:
266
-
267
- - `tools: "*"` - every tool, including connected MCP tools.
268
- - `tools: read_file, grep, glob` - an allowlist. Comma- or space-separated; a YAML array also works.
269
- - Omitted - no tools.
270
-
271
- Common ids by category:
272
-
273
- | **Category** | **Tool ids** |
274
- | ------------ | ------------ |
275
- | Read-only | `read_file`, `read_directory`, `grep` |
276
- | Edit | `edit_file`, `write_file` |
277
- | Execution | `shell_command`, `run_command`, `kill_shell` |
278
- | Search | `web_search`, `web_fetch` |
279
- | Other | `glob`, `todo_write`, `task_create`, `task_update`, `task_list`, `task_get`, `task_output`, `task_stop`, `cron_create`, `cron_list`, `cron_delete`, `get_diagnostics`, `taste`, `ask_user_question`, `sleep`, `enter_plan_mode`, `exit_plan_mode`, `enter_worktree`, `exit_worktree` |
280
-
281
- MCP tools go in by their raw name, e.g. `mcp__github__get_me`. The `agent` and `agent_output` tools can't be granted - that's what keeps delegation one level deep.
282
-
283
- ### Models
284
-
285
- The `model` field takes any id you'd pass to `/model`. To find one:
286
-
287
- - See [Available models](https://commandcode.ai/docs/reference/cli/models) for the full list,
288
- - open the `/model` picker, or
289
- - run `cmd --list-models` in the shell.
290
-
291
- Use ids exactly as `--list-models` prints them. Examples: `claude-opus-4-8`, `claude-sonnet-5`, `claude-haiku-4-5`, `moonshotai/kimi-k2.6`, `zai-org/glm-5.2`.
292
-
293
- Omitting `model` is the same as `model: inherit` - the agent runs on the session model: the session's `/model`, or the [planning or implementation model](https://commandcode.ai/docs/settings#planning-and-implementation-models) while one is active. To run these agents on a different model, pick one in the **Sub-agents** row under `/config` → **Feature models**; clear it to go back to the session model. A `model` the agent asks for on a single delegation beats both. Pinning a model gives the agent its own prompt cache, so a slow planner and a fast implementer don't thrash each other's.
294
-
295
- ### Reasoning effort
296
-
297
- `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.
298
-
299
- The value is validated in two stages so a bad one never reaches the provider mid-delegation:
300
-
301
- - 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.
302
- - At runtime, the level is checked against the model actually chosen (an `inherit` model isn't known until launch).
303
- - A level the resolved model doesn't support falls back to the model default rather than being clamped to a different level.
304
-
305
- Omit it to run at the model's default effort.
306
-
307
- ### Full example
308
-
309
- Every field, with valid values. Copy it and delete what you don't need.
310
-
311
- **.commandcode/agents/report-writer.md**
312
- ```markdown
313
- ---
314
- name: report-writer
315
- description: "Writes a structured research report from the current repo. Delegate long-form summarization and analysis tasks here."
316
- tools: "*" # grant everything…
317
- disallowedTools: shell_command, write_file # …except shells and file writes
318
- model: claude-opus-4-8 # any /model id, or omit to inherit
319
- reasoningEffort: high # a level THIS model supports (varies by model); omit for default
320
- maxTurns: 40 # cap the loop (default: settings.json subagentMaxTurns, else 200)
321
- permissionMode: plan # default|accept-edits|yolo|plan|dont-ask
322
- background: true # detach; collect via agent_output
323
- showOutput: true # render the final report in the feed
324
- ---
325
-
326
- You are a research report writer. You receive one self-contained task and
327
- produce a complete, well-structured Markdown report as your final message.
328
-
329
- - Gather only the files and facts the task requires.
330
- - Work on your own - you can't ask follow-up questions.
331
- - Your final message is the deliverable; make it complete.
332
- ```
333
-
334
- ---
335
-
336
- ## Next steps
337
-
338
- - [Interactive mode](https://commandcode.ai/docs/interactive-mode) - slash commands and session controls
339
- - [Background tasks](https://commandcode.ai/docs/background-tasks) - detached, long-running work
340
- - [Memory](./memory.md) - project and user instructions in `AGENTS.md`
341
- - [Skills](./skills.md) - reusable skill packages vs. full subagents