command-code 1.17.0 → 1.18.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.
Files changed (26) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/bundled/command-code-knowledge/SKILL.md +1 -1
  3. package/dist/bundled/command-code-knowledge/reference/custom-agents.md +2 -2
  4. package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +1 -1
  5. package/dist/bundled/command-code-knowledge/reference/headless.md +1 -1
  6. package/dist/bundled/command-code-knowledge/reference/hooks.md +1 -1
  7. package/dist/bundled/command-code-knowledge/reference/mcp.md +1 -1
  8. package/dist/bundled/command-code-knowledge/reference/memory.md +1 -1
  9. package/dist/bundled/command-code-knowledge/reference/models.md +1 -1
  10. package/dist/bundled/command-code-knowledge/reference/permissions.md +1 -1
  11. package/dist/bundled/command-code-knowledge/reference/plan-mode.md +1 -1
  12. package/dist/bundled/command-code-knowledge/reference/product-help.md +1 -1
  13. package/dist/bundled/command-code-knowledge/reference/sessions.md +1 -1
  14. package/dist/bundled/command-code-knowledge/reference/skills.md +1 -1
  15. package/dist/bundled/config/SKILL.md +18 -0
  16. package/dist/bundled/config/references/permissions.md +27 -0
  17. package/dist/bundled/config/references/settings.md +39 -0
  18. package/dist/bundled/mod-builder/reference/api.md +1 -1
  19. package/dist/bundled/mod-builder/reference/hooks-and-events.md +1 -1
  20. package/dist/bundled/mod-builder/reference/overview.md +1 -1
  21. package/dist/bundled/mod-builder/reference/packaging.md +1 -1
  22. package/dist/bundled/mod-builder/reference/ui.md +1 -1
  23. package/dist/bundled/mod-builder/reference/verify.md +1 -1
  24. package/dist/cli.mjs +5 -5
  25. package/package.json +5 -5
  26. package/vsix/commandcode-vscode.vsix +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # command-code
2
2
 
3
+ ## 1.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - feat(tools): replace the config and knowledge tools with bundled skills #3560
8
+
3
9
  ## 1.17.0
4
10
 
5
11
  ### Minor Changes
@@ -17,6 +23,10 @@
17
23
  - feat: background output reads can block for new output or exit and stream by offset
18
24
  - feat: shell_output replaces bash_output, task_output, and monitor_events (old names keep working)
19
25
 
26
+ ### Patch Changes
27
+
28
+ - fix: stream prior-agent session scans so a large Codex/Claude Code/Cursor history can't exhaust the heap at startup
29
+
20
30
  ## 1.15.1
21
31
 
22
32
  ### Patch Changes
@@ -20,7 +20,7 @@ the matching reference file.
20
20
  `reference/models.md` — ids there are EXACT; never invent a model id.
21
21
  4. Anything about the help surface (slash commands, keyboard shortcuts, CLI flags, taste,
22
22
  FAQ, pricing links): `reference/product-help.md` — the same document the
23
- `get_command_code_knowledge` tool serves.
23
+ bundled product-help reference.
24
24
  5. Building a mod (a loadable ModApi plugin)? Switch to the `mod-builder` skill — it has
25
25
  the mods reference and runnable examples.
26
26
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/agents/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Custom Agents
4
4
 
@@ -259,7 +259,7 @@ Common ids by category:
259
259
  | Edit | `edit_file`, `write_file` |
260
260
  | Execution | `shell_command`, `run_command`, `kill_shell` |
261
261
  | Search | `web_search`, `web_fetch` |
262
- | Other | `glob`, `todo_write`, `task_create`, `task_update`, `task_list`, `task_get`, `task_output`, `task_stop`, `cron_create`, `cron_list`, `cron_delete`, `get_diagnostics`, `get_command_code_knowledge`, `taste`, `ask_user_question`, `sleep`, `config`, `enter_plan_mode`, `exit_plan_mode`, `enter_worktree`, `exit_worktree` |
262
+ | 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` |
263
263
 
264
264
  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.
265
265
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/reference/slash-commands/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Slash Commands
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/headless/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Headless Mode
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/hooks/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Hooks
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/mcp/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # MCP Servers
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/memory/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Memory
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/shared/src/model-catalog.ts (registry + billing). Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Command Code Models
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/permissions/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Permissions
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/plan-mode/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Plan Mode
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/harness/src/tools/get-command-code-knowledge/knowledge-content.ts. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Command Code — Product Knowledge
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/sessions/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Sessions & Checkpoints
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/skills/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Agent Skills
4
4
 
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: config
3
+ description: Inspect or change validated Command Code settings. Use when asked about configuration, current values, themes, permission defaults, feature models, taste learning, sharing defaults, or when a setting change would help complete the task.
4
+ ---
5
+
6
+ # Configuration
7
+
8
+ Use the deterministic CLI instead of editing settings files by hand.
9
+
10
+ 1. Determine whether the request needs `list`, `get`, or `set`.
11
+ 2. Read [settings.md](references/settings.md) for keys and value rules. Read [permissions.md](references/permissions.md) only for permission-related changes.
12
+ 3. Run `cmd config list|get|set|default` through `shell_command` with `--json` when structured output helps. On Windows the binary is `cmdc` (bare `cmd` opens the Windows shell) — use `cmdc config ...` there.
13
+ 4. For writes, choose the explicit `user` or `project` scope supported by the setting — the `scope` column in [settings.md](references/settings.md) says which one each takes. Never guess a scope.
14
+ 5. Report the previous value, new value, and written scope.
15
+
16
+ A running session adopts the change at the start of its next round, so report the write as applied without claiming the live session already reloaded it.
17
+
18
+ Never hand-edit invalid JSON or invent a setting key.
@@ -0,0 +1,27 @@
1
+ <!-- Generated from the Command Code configuration registry. Docs: https://commandcode.ai/docs -->
2
+
3
+ # Permission settings
4
+
5
+ `permissions.defaultMode` controls the default tool permission mode and is stored in user scope.
6
+
7
+ Allowed values:
8
+
9
+ - `default`: ask when no existing rule decides
10
+ - `plan`: restrict the session to planning-safe tools
11
+ - `auto-accept`: accept ordinary tool requests while preserving policy denials
12
+ - `dont-ask`: deny requests that would otherwise need a prompt
13
+
14
+ The unrestricted bypass mode cannot be written through `cmd config` because it is not a
15
+ stored setting at all. Bypass is a per-launch flag the USER passes when starting Command
16
+ Code: `--yolo` (alias for `--dangerously-skip-permissions`) skips permission prompts for
17
+ that run only, e.g. `cmd --yolo` or `cmd --yolo -p "..."` for print mode, where shell
18
+ commands and file writes are otherwise refused. Never suggest making it the stored default;
19
+ when a denied action needs it, tell the user to relaunch with `--yolo` themselves.
20
+
21
+ ```text
22
+ cmd config get permissions.defaultMode --scope user --json
23
+ cmd config set permissions.defaultMode plan --scope user --json
24
+ cmd config default permissions.defaultMode --json
25
+ ```
26
+
27
+ A short-lived config command changes disk state and exits, so its result reports `liveSessionReloaded: false`. A running session re-reads the changed settings at the start of its next model round and adopts the new default then — no restart needed.
@@ -0,0 +1,39 @@
1
+ <!-- Generated from the Command Code configuration registry. Docs: https://commandcode.ai/docs -->
2
+
3
+ # Settings reference
4
+
5
+ The executable registry is authoritative. Run `cmd config list --scope effective --json` before changing a value.
6
+
7
+ | Key | Scope | Type | Values | Description |
8
+ | --- | --- | --- | --- | --- |
9
+ | `model` | user | string | known model id | The default main-loop model. A long-lived host may also apply the change to its current session. |
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`, `auto` | Terminal color theme (same setting as /theme). Auto automatically detects your terminal background and uses light or dark to match. |
12
+ | `compact-mode` | user | enum | `default`, `fast` | Auto-compact aggressiveness when context fills up (same setting as /compact-mode). |
13
+ | `force-oauth` | user | boolean | `true`, `false` | Require OAuth login and block API-key authentication. |
14
+ | `tree-filter-mode` | user | enum | `default`, `no-tools`, `user-only`, `labeled-only`, `all` | Default filter when opening /tree. |
15
+ | `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. |
16
+ | `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). |
17
+ | `branch-summary-skip-prompt` | user | boolean | `true`, `false` | Never ask about summarizing when switching branches in /tree. |
18
+ | `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. |
19
+ | `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. |
20
+ | `taste-learning` | user | boolean | `true`, `false` | Learn your coding style from your sessions, user-wide (same setting as /taste). |
21
+ | `taste-learning-project` | project | enum | `inherit`, `enabled`, `disabled` | Learn your coding style from this project only (same setting as /taste). |
22
+ | `feature-model:titleGeneration` | user | enum | known model id or `default` | Names your sessions after the first exchange. Value: a model id, or "default" to reset to the curated default. |
23
+ | `feature-model:compaction` | user | enum | known model id or `default` | Summarizes long conversations when context fills up. Value: a model id, or "default" to reset to the curated default. |
24
+ | `feature-model:toolDescription` | user | enum | known model id or `default` | Writes the one-line command summaries on permission prompts. Value: a model id, or "default" to reset to the curated default. |
25
+ | `feature-model:tasteLearning` | user | enum | known model id or `default` | Learns your coding style from your sessions. Value: a model id, or "default" to reset to the curated default. |
26
+ | `feature-model:tasteOnboarding` | user | enum | known model id or `default` | Streams live observations during onboarding. Value: a model id, or "default" to reset to the curated default. |
27
+ | `feature-model:branchSummarization` | user | enum | known model id or `default` | Summarizes an abandoned branch when you jump away from it. Value: a model id, or "default" to reset to the curated default. |
28
+ | `feature-model:vision` | user | enum | known model id or `default` | Describes attached images so a text-only model can read them. Value: a model id, or "default" to reset to the curated default. |
29
+
30
+ Commands:
31
+
32
+ ```text
33
+ cmd config list [--scope effective|user|project] [--json] # alias: cmd config ls
34
+ cmd config get <key> [--scope effective|user|project] [--json]
35
+ cmd config set <key> <value> --scope user|project [--json]
36
+ cmd config default <key> [--json] # reset to the built-in default
37
+ ```
38
+
39
+ Values may be JSON scalars or plain strings. The command refuses unknown keys, invalid enum values, locked settings, invalid JSON files, and unsupported scopes. `default` writes the setting's built-in fallback value using the setting's own scope. On Windows the binary is `cmdc` (bare `cmd` opens the Windows shell): `cmdc config list`.
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/mods/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # ModApi reference
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/mods/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Hooks and events
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/mods/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Mods
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/mods/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Packaging and install
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/mods/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # UI surface
4
4
 
@@ -1,4 +1,4 @@
1
- <!-- GENERATED FILE do not edit. Source: packages/docs/src/app/mods/page.mdx. Regenerate: pnpm generate:knowledge -->
1
+ <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
2
 
3
3
  # Verify a mod
4
4