# Session Commands Reference: In-Session Slash Commands Operate a CLI session or build an ACP/WebSocket client with this reference: every slash command, its arguments and output, and transport differences. ## Get started ```bash octomind run ``` Type one command per input. Most commands split on whitespace; `/schedule` separately supports quoted `key=value` arguments. Do not paste shell comments after slash commands: they become arguments. ```text /help /model /role /info ``` ## Command Summary | Command | Purpose | |---------|---------| | `/?` | Alias for `/help` | | `/help` | Show the terminal help list plus custom `/run` commands | | `/exit` (`/quit`) | Exit the session | | `/clear` | Clear the terminal screen | | `/list [PAGE]` | List saved sessions | | `/new [TITLE]` | Start a fresh session with unified naming (optional title) | | `/rename [TITLE]` | Set or clear the current session title | | `/info` | Show session statistics (tokens, cost, cache, compression) | | `/status [agents [ID]\|monitors\|jobs]` | Show current process activity for this session | | `/report` | Detailed per-request usage report | | `/usage` | Show Octomind account usage, quotas, and balance | | `/login` | Sign in to an Octomind account | | `/share` | Upload the session log and print the returned share URL | | `/analyze` | Open the session in the web viewer locally, without uploading | | `/copy [SCOPE]` | Copy last response, or a scope: `last`, `assistant`, `user`, `all` | | `/model [MODEL]` | Show or switch the model (runtime + session file) | | `/role [ROLE]` | Show or switch the role | | `/effort [LEVEL]` | Show or set reasoning effort (runtime + session file) | | `/loglevel [LEVEL]` | Set the log level (runtime only) | | `/context [FILTER]` | Inspect the conversation context | | `/reply [N\|WORDS]` | Start the next prompt with an earlier assistant reply quoted, to answer it point by point | | `/done [INSTRUCTIONS]` | Force-compress context | | `/image [PATH]` | Attach an image (from path or clipboard) | | `/video [PATH]` | Attach a video | | `/mcp [ACTION]` | Inspect MCP servers and tools | | `/run [COMMAND] [INPUT...]` | Run a custom command from `[[commands]]` config | | `/prompt [NAME]` | Inject a prompt template from `[[prompts]]` config | | `/plan [show]` | Show the current structured plan | | `/skill [NAME\|PAGE\|PATTERN]` | List or toggle skills | | `/schedule [SUBCOMMAND]` | Schedule a future/recurring injected message | | `/workflow [NAME [INPUT...]]` | List tap workflows, show one's definition (name only), or run one with the rest of the line as its input | Commands that a [plugin](../usage/14-supervisor.md) registers (for example `/learning` from Besydr) are listed after this table; see [Commands from plugins](#commands-from-plugins). ## Transport support Every command in the summary reaches the shared dispatcher through CLI input, ACP prompts or `_octomind/command`, and WebSocket `type: "command"` messages. The table below lists exceptions to identical behavior; all remaining commands execute their shared handler on the server and return its typed output. The CLI renders that output as terminal text. ACP prompts send it as JSON text in an agent message; ACP extensions return `success`, `output`, and `error`. WebSocket returns `status.data` with `command_type`. A handled output may itself contain an error or `success: false`; inspect it, not just the transport envelope. | Commands | CLI | ACP | WebSocket command | |---|---|---|---| | `/exit`, `/quit` | Exit loop. | Exit request text / `{ "action": "exit" }`; session remains registered. | Save and remove session; connection stays open. | | `/new [TITLE]` | Reinitialize a fresh session. | Sets a new name and returns an exit request; use ACP session creation for a fresh conversation. | Sets a new name, saves, and removes session; create another session to continue. | | `/clear` | Renderer clears terminal. | Returns success; client decides how to clear UI. | Returns success; client decides how to clear UI. | | `/copy`, `/image`, `/video` | Use local clipboard/files. | Use the agent host clipboard/files, not client files. | Use the server host clipboard/files, not browser files. | | `/reply [N\|WORDS]` | Starts the next prompt with the quote. | Returns the quote as JSON text / `output`. | Returns the quote in `status.data`. | | `/done [INSTRUCTIONS]` | Compress, then process instructions if supplied. | Prompt path continues instructions; extension only compresses and returns no output. | Compress status, then process joined args as a message. | | `/analyze` | Prints loopback bridge URL. | URL points to agent host loopback. | URL points to server host loopback. | ACP discovery advertises exactly the commands the dispatcher routes (`build_available_commands()` is checked against `COMMANDS` in `acp/agent_tests.rs`), so a client can trust the advertised list — including `/reply`, `/new`, `/rename`, `/status`, `/share`, `/analyze` and `/workflow`. The commands of connected plugins are advertised too, once the plugin has answered its handshake. For an existing session whose ID is `demo`, these are complete command envelopes: ```json {"jsonrpc":"2.0","id":1,"method":"_octomind/command","params":{"session_id":"demo","command":"/context","args":["tool"]}} ``` ```json {"type":"command","session_id":"demo","command":"context","args":["tool"]} ``` Replace `demo` with the ID returned by session creation. ACP includes the slash; WebSocket adds it. See [ACP Protocol](../integration/02-acp-protocol.md) and [WebSocket Server](../integration/01-websocket-server.md) for connection and session creation. ## Configure the current session ### `/model [MODEL]` Show or change the current model. Without argument, displays the current model. With argument, switches to the specified model in `provider:model` format. The change is **runtime + saved to the session file** — it does not modify your global config. ```text /model openai:gpt-5.6-sol /model anthropic:claude-sonnet-4-6 /model octohub:auto ``` ### `/role [ROLE]` Show or change the current role. Without argument, displays the current role. The argument is either: - a **role name** defined in your config's `[[roles]]` (validated up front; an unknown name is rejected with `Invalid role`), or - a **tap agent name** (e.g. `developer`), which resolves the manifest, INPUT/ENV placeholders, and dependency scripts. A role in your config with the same name wins. On success the session is saved; on failure the previous role and complete resolved model profile are restored. ```text /role developer /role assistant ``` > The default config ships the roles `task_refiner`, `task_researcher`, and `reduce`. `developer` and `assistant` above are tap agents. ### `/effort [LEVEL]` Show or change the reasoning effort level. Without argument, displays the current level. With argument, sets the effort to one of: `low`, `medium`, `high`, `xhigh`, `max`. The change is **saved to the session file** (not global config) and is ignored by non-thinking models. ```text /effort high /effort max ``` ### `/loglevel [LEVEL]` Without an argument, show the current level and valid options. With an argument, change the log level. Options: `none`, `info`, `debug`. This is **runtime-only** — it is never written to disk. ```text /loglevel debug ``` Debug output favors one compact event per provider response, usage update, and tool dispatch. Tool parameters are serialized on one line and capped at 200 tokens; routine animation transitions and full raw provider responses are not printed. ## Session Management ### `/help` Show the 30 built-ins with descriptions, custom `/run` commands, and the commands of connected plugins in their own `plugin` section. ```text /help ``` ### `/exit` / `/quit` Exit the current session. `/quit` is an alias of `/exit`. ```text /quit ``` ### `/list [PAGE]` List saved session names, titles, creation times, models, token totals, costs, and current-session markers. Pages contain 15 sessions; the default is 1. Zero, invalid, or out-of-range pages return an error. ```text /list 1 ``` ### `/new [TITLE]` - `/new` (no argument) creates a **new** session with a generated name in the same format as `octomind run`: `YYMMDD-basename-HHMM-sessionN`. - `/new ` creates a new session and sets the given title (same as `/rename`). The title may contain spaces (all arguments are joined). This command does **not** display current session info — use [`/info`](#info) for that. ```text /new Authentication review ``` ### `/rename [TITLE]` Set the current session's display title. Arguments are joined with spaces. Running `/rename` with no title clears it; the underlying session name and log filename do not change. ```text /rename Authentication review /rename ``` ### `/clear` Clear the terminal screen. ```text /clear ``` ## Information & Monitoring ### `/status [agents [ID]|monitors|jobs]` The single process-activity surface for the current session. The old `/agents` and `/monitor` commands have been removed. | Usage | Description | |-------|-------------| | `/status` | Concise active-only view across agents, MCP background jobs, and command monitors | | `/status agents` | Full agent view: running work plus saved completed, failed, cancelled, and unattached tap runs; preserves model, token, cache, and cost data when available | | `/status agents ` | Detailed card for one tap run | | `/status monitors` | Full configuration and elapsed time for active command monitors | | `/status jobs` | Full live status and bounded output for active MCP resource-backed jobs | Tap runs carry live or persisted usage accounting. `jobs` is generic across MCP servers: a tool must return a standard `ResourceLink` from a server that advertises the standard `resources.subscribe` capability, because only such a server can signal that a job ended. Links from other servers are plain references and are not tracked. Octomind retains the originating server and treats the URI as opaque. The full jobs view performs one bounded `resources/read` call per active resource. Completion remains event-driven via `resources/updated` and is injected automatically. All status state is process-local and session-scoped. A resumed process cannot reattach to work owned by the prior process. ```text /status /status agents /status monitors /status jobs ``` ### `/info` Display comprehensive session statistics: - Token usage (input, output, cached, reasoning) - Total and main-model cost, recorded separately and preserved on resume - Saved tap-agent history and reported usage; historical runs without a live handle are shown as unattached - Cache savings (tokens and accounting estimate) - Compression statistics (if compression has occurred) - One block per connected plugin, with the label and value rows the plugin reports. Besydr shows its checks, lessons and cost there; see [Besydr's documentation](https://besydr.com/docs). - A `supervisor` block with the plugin's own cost breakdown, when a plugin reports one - Model information ```text /info ``` Older sessions that never recorded a separate main-model cost show it as unknown. Structured tap receipts recover historical run IDs even after context compression; available child session files supply their usage. Loading or viewing agent history does not add its cost to the session total again. ### `/report` Generate a usage report for the session with a per-request breakdown: cost, tool calls, task/AI/tool time, and the estimated human time (`human`) and energy (`DHE`) each request cost you. A row where a large diff was approved faster than it can be read is marked `⚠ rubber-stamp`. The summary line shows timesheet hours, energy against the 4 DHE daily budget, and any warning flags. `/report day`, `/report week` and `/report month` sum human time and energy over interactive CLI sessions from local midnight, Monday, or the 1st of the month, with totals per project. `day` lists each session; `week` and `month` list each day with its projects, marking days over the energy budget. Overlapping sessions are split instead of counted twice. Add `here` to count only the current project. ```text /report /report day /report week here /report month ``` See [Human Time and Energy](../usage/05-sessions.md#human-time-and-energy) for how the estimate works and how to calibrate it. ### `/usage` Show spend windows, storage, and network usage for the signed-in Octomind account. This is account-level information; `/info` is the current session's local accounting. When not signed in, the command returns a normal unsigned state rather than failing. ```text /usage ``` ### `/login` Start the Octomind browser-confirmed sign-in flow. In ACP-style clients it returns the verification URL and code immediately while polling in the background; an already signed-in process reports the account without starting another flow. Completion updates the stored OctoHub credential used by `octohub:auto`. ```text /login ``` ### `/share` Upload the current session's JSONL log to the share endpoint and print the returned share URL pointing at the web viewer (`octomind.run/r/`). The uploaded content is the saved JSONL log, including recorded messages, tool activity, and accounting. The CLI **does not** open the URL automatically — clicking it is your choice. ```text /share ``` Output contains the server-returned `url` and share `id`; their values are assigned by the share service. Environment overrides: - `OCTOMIND_SHARE_URL` — point `/share` and `/analyze` at a different host (defaults to `https://octomind.run`). Use this only when pointing at a self-hosted instance or a local dev server. ### `/analyze` Open the current session in the web viewer **without uploading anything**. A tiny HTTP server is bound to `127.0.0.1` on a random port; the printed URL points at `octomind.run/analyze?b=127.0.0.1:&t=` so the browser fetches the JSONL directly from your machine. The bridge: - listens on loopback only — unreachable from other machines, - gates session-data requests with a per-invocation 24-character token (reusable while that bridge lives) sent in the `X-Bridge-Token` header, - aborts the previous bridge when `/analyze` is re-invoked (fresh port + fresh token each time), - shuts down with the `octomind` process — there is no persistent state and no upload. ```text /analyze ``` Output includes the viewer `url`, the random loopback `port`, and a token in structured output. Open the printed URL on the same machine as Octomind. Use `/analyze` for ephemeral, private review of an in-flight session; use `/share` when you want a share link to send to someone else. ## Context Management ### `/context [FILTER]` View session context (message history). Filters: - `all` — Show all messages - `assistant` — Only assistant messages - `user` — Only user messages - `tool` — Only messages with role `tool`; assistant tool-call messages require `assistant` or `all` - `large` — Only messages whose content exceeds 1000 bytes An unrecognized filter value returns an error that lists the valid filters. ```text /context /context tool /context large ``` ### `/reply [N|WORDS]` Quote an earlier assistant reply so you can answer it point by point. A reply is any non-empty assistant message, including the prose of a message that also called tools; tool calls and tool output are never quoted. Replies are numbered newest first: | Form | Quotes | |------|--------| | `/reply` | The latest reply (default) | | `/reply N` | The Nth latest reply; `1` is the latest | | `/reply WORDS` | The latest reply containing every word, in any case and order | The CLI starts the next prompt with the reply as a markdown blockquote (`> ` before every line, a bare `>` for blank lines) and a blank line below it. Delete the quoted lines you do not need, type your answer underneath, and press Enter; Ctrl+C discards the draft. An unknown number, or words that no reply contains, returns an error. Other clients get `command_type: "reply"` with `number`, `timestamp` (Unix seconds), `lines`, and the `quote` text; nothing is prefilled for them. Picking in the CLI: - Press Tab after `/reply ` for a menu of replies, newest first. Each row reads like the reply: when it was sent, its length, and its opening prose on one line, for example `4m ago 14 lines You're right — I can launch…`. Typed words filter by content, typed digits by reply number. Choosing a row leaves `/reply N` in the prompt; press Enter to quote it. - Type `>` at the start of any prompt line to quote single lines instead. A menu lists the distinct lines of all replies, newest first, each led by its reply's age; typed words narrow it, and the first 50 matches are shown. Blank lines and code-fence lines are left out. Selecting a line inserts `> line` and moves to a new line, so another `>` quotes the next one. A `>` typed mid-line, as in `->` or `a > b`, stays plain text. - While a menu has matches, Enter takes the highlighted entry. Esc closes the menu. Quoted lines are dimmed in the prompt and in the submitted message. ```text /reply /reply 3 /reply parser fix ``` ### `/done [INSTRUCTIONS]` Force-compress the conversation context **bypassing all automatic threshold, cooldown, and cost guards**, then tell connected plugins that the session starts over. Use it to manually reclaim context after finishing a unit of work. - The forced compression preserves no injected skills, including env-loaded ones. - Before folding anything away, octomind sends connected plugins a notice; after a successful fold it starts the plugin's session over. Octomind itself extracts no lessons any more; see [Learning](../usage/13-learning.md). - It does **not** touch the active plan or auto-commit. ```text /done /done Now review the error handling. ``` ## Media ### `/image [PATH]` Attach an image for AI analysis. With a path, attaches the image file at that path; without a path, attaches an image from the clipboard (no-op if the clipboard holds no image). Requires a vision-capable model. ```text /image screenshot.png /image /path/to/diagram.jpg /image ``` ### `/video [PATH]` Attach a video for AI analysis. Requires a video-capable model. With no path, it returns unattached status after checking model support. Both media commands report attachment status, the path, and any error; attachment is sent with your next message. ```text /video demo.mp4 ``` ### `/copy [SCOPE]` Copy session text to the clipboard. With no argument it copies the last assistant response verbatim. A scope selects more of the session and renders it as markdown-labelled blocks in session order: | Scope | Copies | |-------|--------| | `last` | The last assistant response (default) | | `assistant` | Every assistant message | | `user` | Every user message | | `all` | User and assistant messages, interleaved | Tool calls, tool results, and system-managed injections are never copied. Returns success and byte length, or `copied: false` when the scope selects nothing or the host clipboard is unavailable. An unknown scope returns an error listing the valid ones. ```text /copy /copy all ``` ## MCP & Tools ### `/mcp [ACTION]` Inspect MCP servers and their tools. The session `/mcp` command cannot add, enable, disable, or remove servers; it has exactly these six subcommands: | Action | Description | |--------|-------------| | `/mcp` or `/mcp info` | Default: server status plus tools with short descriptions | | `/mcp list` | Tool names grouped by server | | `/mcp full` | Full tool details, including parameters | | `/mcp health` | Check every external server of the active role now. Restarts a dead stdio server and reconnects an HTTP server without a live connection, with the same cooldown and failure limit as the background monitor | | `/mcp dump` | Dump all tools with name, description, and parameter schemas | | `/mcp validate` | Validate tool parameter schemas | Any other subcommand returns `Invalid MCP subcommand`. > Runtime server management — adding, enabling, disabling, or removing servers — is done by the `mcp` **MCP tool** (which the model can call), not by this slash command. ```text /mcp full /mcp health /mcp validate ``` ## Commands ### `/run [COMMAND] [INPUT...]` Execute a custom command defined in the `[[commands]]` config section. Without argument, lists commands available to the current role. Optional trailing text is the input; otherwise it uses the most recent real user task message. Returns the command name, execution status, and command result. Before executing, `/run` runs the session and request spending checks. An interactive session-limit check can ask whether to continue; a declined check, exceeded request limit, or check error prevents execution. ```text /run reduce /run reduce Summarize the current implementation decisions ``` > **Multi-step workflows** are available both from the shell with `octomind workflow ` and inside a session with `/workflow ` for tap workflows. See [Workflows](../usage/09-workflows.md) for both entry points. ### `/prompt [NAME]` Inject a prompt template defined in the `[[prompts]]` config section into the session inbox; it is delivered **verbatim** as a user message on the next loop iteration. Without argument, lists available prompts. There is currently no template variable substitution. ```text /prompt review /prompt explain ``` ### `/plan [ACTION]` Display the runtime-owned structured task plan. | Usage | Description | |-------|-------------| | `/plan` or `/plan show` | Show current plan with progress and critical knowledge retained from compression | **Note**: `/plan` is display-only. The model has no plan tool. A plan exists only when a plugin creates, advances, revises, or finishes it; without a plugin, `/plan` reports that there is no plan. ```text /plan ``` ### `/skill [NAME|PAGE|PATTERN [PAGE]]` Manage skills from taps. Skills are reusable instruction packs that inject domain knowledge into context. | Usage | Description | |-------|-------------| | `/skill` | List all skills (active first, then alphabetical), 15 per page | | `/skill ` | Toggle the skill: enable it if inactive (`use`), disable it if active (`forget`). Unknown names return `Skill not found`. | | `/skill ` | Show page N of the skill list | | `/skill *pattern*` | Filter skills by glob pattern | | `/skill *pattern* ` | Show page N of the filtered list | ```text /skill /skill 1 /skill *review* /skill *review* 2 ``` Use an exact listed skill name to toggle it, for example: ```text /skill code-review ``` This example requires `code-review` to appear in your skill list. ### `/schedule [SUBCOMMAND] [ARGS]` Direct control over the built-in `schedule` MCP tool — schedule a message to be injected as a user message at a future time or on the next idle. Same operations as the MCP tool, but driven from chat input. See [Scheduled Tasks](../use-cases/07-scheduled-tasks.md) for the broader use case. | Usage | Description | |-------|-------------| | `/schedule` or `/schedule list` | List all pending entries with IDs, trigger times, and countdown | | `/schedule remove ` | Cancel a scheduled entry (aliases: `rm`, `delete`, `del`) | | `/schedule add message=""` | Schedule a one-shot for the next idle (default `when="idle"`) | | `/schedule add when="" message="" [every=""] [description="