REPL commands
Type these at the › prompt. Anything else is a message to the model, except lines starting with
!, which run in your own shell.
Conversation
Section titled “Conversation”/model
Section titled “/model”/model pick a model and save it as the default/model claude-opus-5-5 switch models for this sessionWithout a name, /model lists the models on the server the current one comes from, with the
current one chosen, as the setup wizard does. The
pick becomes provider.model in the config, so later sessions start with it; Esc changes nothing.
To use another provider, run /setup.
With a name, the switch lasts for the session. Either way the conversation carries over to the new
model. The model name follows the same rules as --model; see
Configuration.
/effort
Section titled “/effort”/effort show the current effort and the levels/effort high think harder for the rest of the session/effort default leave it to the model againThe levels are none, low, medium, high and xhigh. The change lasts for the session and
carries over a /model switch; to keep one, set
provider.effort in the config. The status line shows
the effort next to the model when one is set.
/setup
Section titled “/setup”Runs the setup wizard: choose a provider, save its key and pick a model. The session switches to the chosen model and keeps the conversation.
/theme
Section titled “/theme”/theme list the color themes with a sample of their colors, the current one marked/theme mono switch themes/theme save ember save the current colors as ~/.anchor/themes/ember.jsonThe switch lasts for the session and applies to what’s drawn from then on. To keep a theme, pick it
in /setup, or set theme in the config.
/theme reads theme files again each time, so a file you just changed
shows up the next time you switch to it. /theme save won’t overwrite a file that’s already there.
/dock list where the prompt can go, the current place marked/dock top move the prompt and status line to the top, with the conversation under them/dock bottom move them back under the conversationThe move lasts for the session. To keep one, set dock in the
config. Only the full screen has a prompt to move; --plain ignores it.
/context
Section titled “/context”Shows how full the context window is, the number of messages, token totals for the whole session (sub-agents included), and the size past which anchor compacts on its own.
/compact
Section titled “/compact”Summarizes older turns now, instead of waiting for the context to reach 80%. The last turn is kept as it is. If there’s nothing old enough to summarize, it says so.
/copy copy the last reply, as the Markdown the model wrote/copy code copy a code block from it; with several, pick oneThe text goes to the terminal through OSC 52, and on a local session to wl-copy, xclip,
xsel, pbcopy or clip.exe as well. In tmux, OSC 52 needs set -g set-clipboard on.
/clear
Section titled “/clear”Forgets the conversation. The model starts fresh, and the full-screen view is emptied; your files are
untouched. With --plain, what was printed stays in the terminal’s scrollback.
/until
Section titled “/until”/until <command> set a check that runs after each turn/until show the current check/until off clear itEach message keeps going until the command exits 0, a round changes no files, or 5 rounds have run. See Working until a check passes.
Reverts the file changes of the most recent turn that made any, and tells the model. Files changed since anchor wrote them are skipped. Changes made by shell commands aren’t tracked. Repeat to go further back, up to 20 turns.
/approvals
Section titled “/approvals”/approvals list the commands and MCP tools saved as "always" for this directory/approvals clear forget every "always" answer, saved or from this sessionSee Approvals.
Sessions
Section titled “Sessions”/sessions
Section titled “/sessions”Lists the ten most recent sessions for this directory, marking the current one with *. Resume one
with anchor --resume <id>.
Extensions
Section titled “Extensions”/agents
Section titled “/agents”Lists the default sub-agent and any named sub-agents, with their tools and models.
/skills
Section titled “/skills”Lists installed skills and their descriptions.
/mcp each server's state and tool count/mcp login <server> sign in to a server now/mcp logout <server> forget a server's tokensSee MCP servers.
| Input | Effect |
|---|---|
/help |
List commands. |
/exit, /quit |
Quit. |
!<command> |
Run a command in your own shell. The model never sees it. |
@<path> |
Attach a file or directory to the message. See Mentioning files. |
| Tab | Take the highlighted suggestion (a command, its argument, or a path). Enter does too; Esc hides the list. |
| Ctrl+C | Cancel the running turn; otherwise clear the prompt. Twice: exit. |
| Enter mid-turn | Send what you typed into the running turn; commands wait for it to end. |
| Alt+Enter | New line in the message (Shift+Enter where the terminal supports it). |
| ↑ / ↓ | Message history, from the first or last line of the prompt. |
| Ctrl+R | Search message history; Enter puts the chosen one in the prompt. |
| PgUp / PgDn | Scroll the conversation; Ctrl+Home goes to the top, Ctrl+End follows it again. |
| Ctrl+F | Find text in the conversation; Enter for older matches, Esc to close. |
| Ctrl+O | Show the last tool output, diff or thinking in full; ←/→ for earlier ones, Esc to close. |
| Ctrl+D | Exit. |