Skip to content
Crystal CodeDocs
ENEnglish

Slash commands

Type / to open the picker. Up and Down move the selection and scroll the visible window. Recalling prompt history does not open the picker, so Up and Down stay in history even when an entry starts with /. Editing that entry opens the picker again. Tab accepts the selected completion. Enter accepts a partial selection. A complete command still submits with one Enter. Submitting returns the transcript to the latest output.

Command Aliases Action
/help /h Shortcuts and commands
/plan Toggle Plan / Work
/mode List modes, or switch with /mode <name>
/approval Cycle or set default, edit, review, audit, full. model shows or sets the approval model; thinking, tier, speed, and context cycle or set its gear and slots; extended configures extended approval
/attach Attach an image from the workspace
/pursue Work toward an objective until a checker model finds it met. start <objective>, pause, resume, clear, and status control it. model [provider model], thinking, tier, speed, and context configure the checker like /topic; compaction model [provider model], then thinking, tier, speed, context, sets the model that summarizes older entries for the checker (bare compaction model returns to the session compaction setting); limit <name> <number|unlimited> sets continuations, stalls, model-calls, tool-calls, duration (seconds), or wait (seconds). Settings write config.json. Approval and access rules still apply to every continuation
/title Name the session; /title <text> is the same as /topic set <text>. Words such as clear and on are literal title text. Empty or invalid text shows a usage error. Refused during a turn or compaction; no topic subcommand completions
/topic Show the session topic and naming settings. /topic <text> or set <text> names the session; clear removes the name; regenerate asks the topic model again. on and off switch naming. resume on or resume off sets whether a resumed session without a topic is named. model [provider model] selects its own model, and a bare model returns to the session model. thinking cycles or sets its gear; tier, speed, and context do the same for its own model. Settings write config.json
/describe List the resource description models. image, audio, video, or document shows one; then on, off, model <provider model>, and thinking, tier, speed, or context with an optional value set it and write config.json. A bare thinking, tier, speed, or context cycles. Selecting another model clears its tier, speed, and context. Audio, video, and document description models are marked as disconnected from runtime tools
/thinking /think, /effort Cycle or set the thinking gear
/context Cycle the model’s local context budget, or select one with 272k, 1m, or an exact token count. During a turn or compaction it applies on the next turn
/tier Cycle the model’s service-tier tokens, including not sending one, or select a listed token. default is sent when the model lists it. During a turn or compaction it applies on the next turn
/speed /fast Cycle the model’s speed tokens, including not sending one, or select a listed token. During a turn or compaction it applies on the next turn
/tokens Toggle the estimated progress tokens, or set on / off
/verbose Show or set tools, commands, results, calls, approvals, review, or thinking, then on or off
/model List catalog models, or set model / provider model
/promptset /prompts List sets, enable one, or /prompts export [dir]
/promptattach List attachments, or enable / disable / up / down one name
/status Tokens, context, workspace, model, and options. full adds diagnostics
/stats Overview, Tokens, and Tools panels. all, <Nd>, or tools <count>. Esc or q restores the session · SQLite performance
/btw /side Ask a side question. The answer is not saved. See below
/statusline on, off, reset, or an ordered field list
/clear /new Start a new session id
/cd Show the workspace, or switch to an existing directory
/access List or change session directory rules
/space Switch to {home}/space. No path. Refused while a turn is running
/trust Show trust, or on / off / forget
/rules Show or set global and project rule files
/notify Show operator notification. on / off writes operatorNotify.enabled to config.json; on needs a configured command. test runs the command once, even while off, and reports its exit
/resume /continue Choose a session here, in <path>, in all, or load <id>
/fork Branch this conversation, or /fork <id>
/agents List child Agents and settings. While idle: on, off, concurrency <1-8>, limit <model-calls|tool-calls|duration> [value], model <name> [provider model], and thinking, context, tier, or speed with <name> [value]. Omitting the value clears that choice. compaction <name> model <provider> <model>, then thinking, context, tier, speed with [value], gives that Agent its own summary model (own-model rules as for the Agent model); compaction <name> clear returns it to the session compaction setting. Stored as compaction inside the Agent’s model settings. Built-in choices go to config.json; custom choices go to that Agent’s agent.json. Changes are refused during a turn or compaction
/child Open a filterable child picker, inspect /child <unique-id-prefix>, or /child parent to return. Read-only. Unavailable after Agents are disabled. crystal run has no /child
/sessions List this workspace. all lists every workspace
/compact /summarize Summarize earlier context now and print the summary (refused while a turn is running). full folds the whole conversation, including the latest turn, into the summary. model shows or sets the compaction model; thinking cycles or sets its gear; tier, speed, and context cycle or set its own slots. summary toggles the manual summary; auto toggles the automatic one. micro toggles removal of old tool results. on or off sets any of those switches
/export Export markdown or json, or show usage. /export prompts writes the built-in prompt templates to a directory
/todos /todo Print the full todo list in a Todos card. bar [on|off] toggles the pinned bar, and rows [3-10] shows or sets how many items it lists. Both write config.json
/tools List catalogs and configure external-tool loading and approval. builtin disables built-in tools; builtin session does so for the current session only
/skills List the skills the model can load. on or off persists the switch and reloads; reload rescans without changing it
/plugins List plugins. on, off, and reload control discovery; enable, disable, or show <directory> change one plugin
/trim Trim resources to the configured count now. /trim 3 keeps the newest 3, /trim all keeps none, and /trim on or /trim off switches automatic trimming and writes config.json
/quick /shortcuts Open the quick prompt picker in the terminal. crystal server also accepts /quick list and /quick send <name>
/mcp Connected MCP servers. See MCP servers
/login A bare /login lists account providers and whether each is signed in. /login <provider> signs in; --no-browser shows the link instead of opening it. See Sign in with an account
/logout /logout <provider> removes that account provider’s saved login. A bare /logout only lists them
/theme In the terminal, a bare /theme opens a picker that previews each theme; Enter saves it and Esc restores the saved one. Other front ends list the themes. /theme <name> saves the theme and repaints. Built-in themes are default, dark (the same as default), and light. Other themes are files in ~/.crystal/themes/<name>.json. A bare /theme lists themes while busy
/quit /exit, /q Exit

Unknown / text prints unknown command.

/verbose results is the parent of tools and commands. /verbose calls hides Tool cards and does not change results.

/context accepts 272k, 1m, or an exact token count. /tier and /speed can also select not sending a token.

/btw asks from the committed transcript. The answer stays in a panel above the composer. A tall answer scrolls inside the panel with the wheel, PageUp, PageDown, or Ctrl+Up/Down. The title and border stay. Before the model starts, the panel uses the same spinner as the progress row. Once reasoning starts, the caption is Thinking until answer text arrives. An empty /btw reopens the panel. Esc, Enter, Space, or Ctrl+C closes it. Ctrl+C also cancels a side question that is still running and leaves the main turn running. Left and Right step through earlier answers. x clears them.

/cd with no argument prints the workspace root. It only accepts a directory that already exists. ~ is expanded. An untrusted git root or directory asks first. No stays here. The operator space does not ask. Changing the directory is refused while a turn is running. A successful change replaces session directory rules with the destination workspace’s defaults.

/access lists session directory rules, or add <path> read|write and remove <path>. default lists this workspace’s defaults in ~/.crystal/access.json. default add and default remove change that file and the current session. Refused during a turn or compaction.

/trust on asks immediately when this root is not trusted. No exits. forget drops this root and takes effect on the next entry. It leaves the operator space trusted.

/rules sets both sides with on or off, or one side with global or project. It writes config.json and does not change instructions.md or .crystal.md. Refused during a turn or compaction.

/compact is refused while a turn is running. /compact full folds the whole conversation, including the latest turn, into the summary. model shows or sets the compaction model. thinking cycles or sets its gear. summary toggles the manual summary. auto toggles the automatic one. micro toggles removal of old tool results. on or off sets any of those switches.

/export markdown [path] [--system] and /export json [path] [--system] write the conversation under exportDirectory (default ~/.crystal/exports/). The live system prompt is omitted unless --system is set. /prompts export [dir] writes built-in templates with placeholders. Quoted paths may contain spaces. The picker completes markdown and json, offers --system before or after a path, and exposes export under /prompts.

/tokens with no argument toggles the live estimate: four characters per token, prefixed with ~. It is not provider-billed usage. The choice is written to config.json.

/statusline does not replace /status. Built-in fields are mode, approval, thinking, tier, speed, context-window, prompt-set, activity, provider, model, session-id, topic, workspace, context-used, context-left, context-tokens, request-input, request-output, request-total, session-input, session-output, session-total, tools, elapsed, queued, agents, and agents-running. Add pursue-status, pursue-checks, or pursue-continuations for live Pursue information; those fields are blank without an objective. Reviewer fields appear only while that reviewer is on: approval-provider, approval-model, approval-thinking, approval-tier, approval-speed, approval-context, plus extended-provider, extended-model, extended-thinking, extended-tier, extended-speed, extended-context, extended-trigger, and extended-primary. Thinking, tier, speed, and context are blank while the reviewer leaves them at default; extended-primary shows On or Off. A disk plugin may add more names. They do not appear until you put them in the list. With no arguments, /statusline lists built-in fields, then each loaded plugin field, then any saved name that is not loaded. A name that is neither built in nor loaded is rejected. An ordered list enables the custom line. off restores the adaptive line. reset enables the built-in field order.