memcode docs
Code

Slash commands

Steer an interactive memcode session. Models, modes, cost, planning, history, and more.

Inside an interactive session, slash commands steer the agent without leaving the flow. Type /help any time for the live list. Commands marked local work even when you are signed out.

Session and account

CommandDescription
/helpCommand reference. Alias /?.
/loginSign in to a hosted account.
/logoutSign out of a hosted account.
/clearStart a fresh session. Alias /new.
/quitExit. Alias /exit.

Models and providers

CommandDescription
/modelPick the model for this session. With no argument it opens the picker; with a name it selects that model. Your choice is remembered. Alias /models.
/apikeysAdd your own provider keys. They are stored in the gateway vault, never written locally. Alias /keys.

See Choosing a model for how the choice is remembered.

Modes and behavior

CommandDescription
/modeCycle ask, auto, allow-all, or set one directly.
/effortThinking budget: off, medium, high, or auto. Session-scoped, resets on restart.
/personalityVoice only, such as professional, dry, or zen. Never changes behavior or permissions. Persisted.
/extramileToggle extra attention to edge cases and completeness. Persisted.
/themePick a color theme. Alias /themes. Persisted.
/syncChoose which editor-context files to write memory to, and run it.

Planning

CommandDescription
/plan <task>Research read-only, then offer Execute, Advisor, or Cancel.
/yolo <task>Plan, auto-resolve open questions, and auto-execute.

Cost and status

CommandDescription
/costSession spend: tokens, cache hit rate, dollar estimate.
/costpSpend broken down by purpose.
/costbySpend broken down by backend.
/statusOne line: model, mode, branch, tokens. Local.
/debugFull runtime dump, including wire-trace state. Local.
/doctorBackend and engine health checks.

Intelligence

CommandDescription
/advisor <question>A second opinion from a strong outside model.
/overviewCurrent-state overview of the project.
/nextRecommend the next move.
/recapSummarize recent work.
/goal <what>Record an objective.
/archShow the stored architecture diagram. Local.
/todosShow the work-tracker checklist. Alias /todo.

History and recovery

CommandDescription
/compactSummarize older turns to reclaim context.
/resume [id]Re-enter the most recent or a specific session.
/fork [id]Copy a session's transcript and checkpoints into a new one.
/rewind [n]Undo the agent's edits back to a checkpoint. Confirms first.

Jobs and sub-agents

CommandDescription
/dispatch <task>Spawn a detached, hands-off sub-agent in auto mode.
/agentsList dispatched sub-agents. Use /agents stop <id> to terminate one.
/jobsBackground shell jobs. Also /tail <job> and /kill <job>.
/websitesList your organization's AI-built sites. Alias /sites.

On this page