Skip to content

Slash commands ​

Enter these commands in the interactive oc input, not your shell. Type / to browse commands and arguments, use Tab to complete a selection, and run /help for the commands available in your installation. Brackets mark optional arguments; angle brackets mark required arguments.

Models and providers ​

CommandWhat it does
/model [number | provider/model]Switch the model for the current session. Without an argument, open the model picker; a number selects from the configured model list.
/models [provider]List configured models for every provider, or just the named provider.
/models <provider> add <id> [id…]Add model IDs to the provider's configured list.
/models <provider> remove <id> [id…]Remove model IDs from that list.
/models <provider> fetchReplace the list with models returned by the provider's /models endpoint.
/providerList configured endpoints and show the configuration path.
/provider addOpen the interactive flow to add endpoints.
/provider edit [name]Edit an endpoint's settings and re-fetch its models; choose a provider if the name is omitted.
/provider delete [name]Delete an endpoint and its models after confirmation; choose a provider if the name is omitted.
/effort [default | none | minimal | low | medium | high | xhigh]Set reasoning effort for the session, or open a picker without an argument. default uses the provider default; explicit levels require model support.

See Providers and models for configuration and credentials.

Sessions and recovery ​

CommandWhat it does
/newStart a new session; the current session remains saved.
/clearClear the current conversation and checkpoints, and remove its child agents. The session's name and token stats remain; files are not changed.
/resume [name | id]Switch to a saved session, or open a picker without an argument.
/rename [title]Name the current session; without a title, edit its existing name.
/delete [name | id]Delete a saved session after confirmation; without an argument, delete the current session and start a new one.
/forkCopy the current conversation into a new session and continue there; the original remains unchanged.
/tree [name | id]Browse session branches, open one, or fork before an earlier user turn. Forking through the tree does not restore files.
/session [info [name | id]]Show session details, lineage, usage, checkpoints, and checklist counts. Without an argument, inspect the current session.
/session delete [name | id]Delete the selected session after confirmation; defaults to the current session.
/session pin [on | off] [name | id]Pin or unpin a session; omit on or off to toggle it. Defaults to the current session.
/checkpointsList session turns and the files changed in each one, when file tracking is available.
/rewindSelect an earlier prompt and restore the conversation, files, or both, subject to checkpoint availability. Esc Esc on an empty input also opens rewind.
/undoUndo the last rewind, restoring files and conversation.
/retryRun the last prompt again, replacing its answer.
/compact [focus]Summarize older turns to free context; the latest two prompts remain verbatim. Optional focus guides the summary.
/contextShow estimated context use by system prompt, tools, and message roles, plus provider-reported usage when available.
/stats [session [name | id] | workspace | global]Show activity, token usage, and reported costs for a session, this workspace, or all saved sessions. Without an argument, show the current session; all aliases workspace.

See Sessions and rewind for recovery and usage details.

Tasks and child agents ​

CommandWhat it does
/task <assignment>Start a background child agent and add its assignment to the session checklist. Give it a self-contained task; it cannot be started in plan mode.
/todoShow the persisted session checklist and item IDs.
/todo add <text>Add a checklist item.
/todo start <id> / /todo done <id> / /todo reopen <id>Mark an item in progress, done, or pending.
/todo remove <id>Remove an item from the checklist.
/agentsOpen the parent/child conversation picker.
/agents listList child agents, their states, activity, and queued messages.
/agents <id> / /agents switch <id>Switch to a child conversation.
/agents message <id> <text>Queue a follow-up message for a child.
/agents steer <id> <text>Redirect a child at its next safe boundary.
/agents pause <id|all> / /agents resume <id|all>Pause or resume one or all children.
/agents cancel <id|all>Stop work while keeping the child conversation.
/agents remove <id|all>Stop work and remove the child agent.
/parent / /agents parentReturn to the parent conversation.

Planning, tools, and integrations ​

CommandWhat it does
/plan [prompt]Toggle planning mode, or enter it and send the supplied prompt. Planning restricts available tools; it is not an OS sandbox.
/toolsList the tools the agent can currently call.
/skillsOpen the skills menu to list installed skills or add one.
/skills add [link]Install skills from a link or local folder; prompts for a source if omitted and asks for scope.
/skills remove <name>Delete an installed skill after confirmation and reload.
/skill:<name> [request]Invoke an installed skill explicitly, optionally with a request.
/mcpOpen the MCP server status/add menu.
/mcp addAdd an MCP server interactively.
/mcp remove <name>Remove a configured MCP server.
/mcp reconnectReconnect servers and show their status.
/extensionsList loaded extensions and the tools and commands they provide.
/trust / /trust offTrust or untrust this folder's MCP servers and extensions. Trust only code you intend to run.
/reloadRescan skills, Markdown commands, extensions, and MCP configuration.
/initAsk the agent to create or update a project AGENTS.md.
/review [focus]Spawn correctness and security reviewers, then integrate their findings; optional focus limits the review. Not available in plan mode.

See Skills and custom commands and Tools and integrations for setup and trust details.

Scheduled runs ​

Scheduled runs use macOS launchd and run in a new saved session. launchd checks every 15 seconds while you are logged in and the Mac is awake; overdue jobs run at the next check after wake or login. Scheduling does not wake the Mac.

CommandWhat it does
/schedule / /schedule listList scheduled runs and their states.
/schedule addPrompt for a run time and coding-agent request.
/schedule add --at "in 10m" --prompt "Review this project"Schedule a run with an explicit time and prompt. A local time such as 14:30 or a date-time can also be used.
/schedule cancel [id]Cancel a queued or running job; choose one if the ID is omitted.
/schedule result [id]Show a job's result, logs, and saved session; choose one if the ID is omitted. results is an alias.
/schedule remove [id]Cancel and remove a job's files; its saved session is kept.

/schedule add also accepts positional time and prompt, or --cwd DIR, --model REF, --effort LEVEL, --session ID (origin session), and repeated --env NAME for additional credential variables. Defaults are the current working directory, model, effort, and originating session. Quote time and prompt values containing spaces. Supported times include ISO date-times, local YYYY-MM-DD HH:mm, the next HH:mm, and positive delays such as in 10m; past dates and ambiguous or nonexistent daylight-saving times are rejected. Provider, search, and MCP API-key variables are captured privately rather than copying the entire environment.

Output and help ​

CommandWhat it does
/export [path]Write the conversation to Markdown. The default path is oc-<session-id>.md in the current directory.
/copyCopy the last assistant reply using an available system clipboard tool (pbcopy, clip, wl-copy, xclip, or xsel).
/hotkeysShow active keyboard shortcuts, including overrides.
/helpShow available commands and their descriptions.
/exitQuit oc; Ctrl+D also exits on an empty input.

Extensions and Markdown files can add commands, so /help may include commands not listed here. See Create a Markdown command for custom command locations, arguments, and precedence.