diff --git a/docs/CLI-REFERENCE.md b/docs/CLI-REFERENCE.md index 67a3ed7..bc345ec 100644 --- a/docs/CLI-REFERENCE.md +++ b/docs/CLI-REFERENCE.md @@ -57,6 +57,7 @@ Type `/` mid-chat to open the picker. Aliases shown in parentheses. Code-mode-on | `/retry` | Truncate and resend your last message — fresh sample | | `/compact` | Fold older turns into a summary (cache-safe). Auto-fires at 50% ctx; this is the manual trigger | | `/stop` | Abort the current model turn (typed alternative to Esc) | +| `/btw ` | Ask a side question without changing the main conversation | | `/copy` | Open vim/tmux-style copy mode — `j`/`k` navigate, `v` select, `y` yank to clipboard. The right answer for SSH / mosh / tmux where drag-select can't extend past the viewport | ### Setup @@ -67,6 +68,8 @@ Type `/` mid-chat to open the picker. Aliases shown in parentheses. Code-mode-on | `/model ` | Switch DeepSeek model id. Bare opens picker | | `/language ` (`/lang`) | Switch the runtime language | | `/theme ` | Show or persist terminal theme. Bare opens picker | +| `/config` | Open configuration guidance and current config paths | +| `/vim [on\|off]` | Toggle vim-style input editing | ### Info @@ -77,6 +80,9 @@ Type `/` mid-chat to open the picker. Aliases shown in parentheses. Code-mode-on | `/context` | Context-window breakdown (system / tools / log / input) | | `/stats` | Cross-session cost dashboard (today / week / month / all-time) | | `/doctor` | Health check (api / config / api-reach / index / hooks / project) | +| `/terminal-setup` | Show terminal integration setup help | +| `/output-style [default\|explanatory\|learning]` | Switch response style | +| `/statusline [minimal\|default\|full]` | Switch status line density | | `/keys` | Keyboard + mouse + copy/paste reference | | `/feedback` | Open a GitHub issue with diagnostic info copied to clipboard | @@ -87,19 +93,25 @@ Type `/` mid-chat to open the picker. Aliases shown in parentheses. Code-mode-on | `/mcp` | Open the MCP hub (live + marketplace tabs) | | `/resource [uri]` | Browse / read MCP resources | | `/prompt [name]` | Browse / fetch MCP prompts | -| `/memory [list\|show\|forget\|clear]` | Manage pinned memory (AGENTS.md / CARBON.md + `~/.carboncode/memory`) | -| `/skill [list\|show\|new\|]` | List / run / scaffold user skills | +| `/memory [for \|list\|show\|forget\|clear]` | Manage pinned memory (AGENTS.md / CARBON.md + `~/.carboncode/memory`) | +| `/skill [list\|paths\|show\|new\|]` | List / run / scaffold user skills | +| `/agents [list\|show\|new]` (`/agent`) | Manage project agents | +| `/qq ` | Connect, inspect, or disconnect the QQ channel | ### Session | Command | What it does | |---|---| | `/sessions` | List saved sessions (current marked with ▸) | +| `/resume` | Resume a saved session | +| `/export [json]` | Export the current conversation | +| `/title` (`/retitle`) | Rename the current session | ### Code mode | Command | What it does | |---|---| +| `/review [ref]` | Review the working tree or a git ref | | `/init [force]` | Scan project, synthesize a baseline `CARBON.md` | | `/apply [N\|N,M\|N-M]` | Commit pending edit blocks to disk (subset selection supported) | | `/discard [N\|N,M\|N-M]` | Drop pending edits without writing | @@ -113,6 +125,7 @@ Type `/` mid-chat to open the picker. Aliases shown in parentheses. Code-mode-on | `/checkpoint [name\|list\|forget]` | Snapshot every file the session has touched | | `/restore ` | Roll back to a named checkpoint | | `/cwd ` (`/sandbox`) | Switch the workspace root mid-session | +| `/add-dir [path]` | Add another directory to the current workspace | ### Jobs (code mode) diff --git a/docs/cli-reference.html b/docs/cli-reference.html index bdf4ceb..d587237 100644 --- a/docs/cli-reference.html +++ b/docs/cli-reference.html @@ -345,6 +345,10 @@

Chat ops

/stop Abort the current model turn (typed alternative to Esc) + + /btw <question> + Ask a side question without changing the main conversation + /copy Open vim/tmux-style copy mode — j/k navigate, v select, y yank to clipboard. The right answer for SSH / mosh / tmux where drag-select can't extend past the viewport @@ -371,6 +375,14 @@

Setup

/theme <name> Show or persist terminal theme. Bare opens picker + + /config + Open configuration guidance and current config paths + + + /vim [on|off] + Toggle vim-style input editing + @@ -397,6 +409,18 @@

Info

/doctor Health check (api / config / api-reach / index / hooks / project) + + /terminal-setup + Show terminal integration setup help + + + /output-style [default|explanatory|learning] + Switch response style + + + /statusline [minimal|default|full] + Switch status line density + /keys Keyboard + mouse + copy/paste reference @@ -424,13 +448,21 @@

Extend

Browse / fetch MCP prompts - /memory [list|show|forget|clear] + /memory [for <path>|list|show|forget|clear] Manage pinned memory (AGENTS.md / CARBON.md + ~/.carboncode/memory) - /skill [list|show|new|<name>] + /skill [list|paths|show|new|<name>] List / run / scaffold user skills + + /agents [list|show|new] (/agent) + Manage project agents + + + /qq <connect|status|disconnect> + Connect, inspect, or disconnect the QQ channel + @@ -441,12 +473,28 @@

Session

/sessions List saved sessions (current marked with ▸) + + /resume + Resume a saved session + + + /export [json] + Export the current conversation + + + /title (/retitle) + Rename the current session +

Code mode

+ + + + @@ -499,6 +547,10 @@

Code mode

+ + + +
/review [ref]Review the working tree or a git ref
/init [force] Scan project, synthesize a baseline CARBON.md /cwd <path> (/sandbox) Switch the workspace root mid-session
/add-dir [path]Add another directory to the current workspace
diff --git a/tests/carbon-productization.test.ts b/tests/carbon-productization.test.ts index 3643b30..d2cd0f6 100644 --- a/tests/carbon-productization.test.ts +++ b/tests/carbon-productization.test.ts @@ -1,6 +1,7 @@ import { existsSync, readFileSync } from "node:fs"; import { resolve } from "node:path"; import { afterAll, describe, expect, test } from "vitest"; +import { SLASH_COMMANDS } from "../src/cli/ui/slash/commands.js"; import { codeSystemBase } from "../src/code/prompt.js"; import { getLanguage, setLanguageRuntime, t } from "../src/i18n/index.js"; @@ -251,6 +252,16 @@ describe("Carbon broad Reasonix import", () => { } }); + test("CLI reference documents every registered slash command", () => { + const markdown = readFileSync(resolve("docs/CLI-REFERENCE.md"), "utf8"); + const html = readFileSync(resolve("docs/cli-reference.html"), "utf8"); + + for (const { cmd } of SLASH_COMMANDS) { + expect(markdown, `docs/CLI-REFERENCE.md missing /${cmd}`).toContain(`/${cmd}`); + expect(html, `docs/cli-reference.html missing /${cmd}`).toContain(`/${cmd}`); + } + }); + test("published static docs site uses Carbon Code identity", () => { const docs = [ "docs/index.html",