Daily use

Sessions, the session tree, models, agents, tools, and every slash command worth knowing.

Starting loop

loop                              # interactive TUI in the current directory
loop --cwd ~/code/other           # somewhere else
loop --model anthropic/claude-sonnet-4-6
loop --session <id>               # resume a specific session

loop is directory-scoped: sessions belong to the folder you started in, and the last model you used in a folder is remembered per project.

One-shot mode

loop run "explain this repo"
echo "summarize the diff" | loop run -
loop run "fix the failing test" --max-steps 20

Prints the final response to stdout and exits. No UI, pipeable, safe in scripts. --max-steps caps how much work it will do.

Sessions

CommandWhat
/newFresh session (/clear also clears the screen)
/resume, /sessionsPick an earlier session in this directory
/sessionWhat the current one is
/name <text>Name it, so it's findable later
/export, /importTranscript out, transcript in
/shareShareable transcript
/compactSummarize the conversation to reclaim context
/contextWhat's currently loaded and how much room is left

From the shell, loop sessions lists sessions in the current directory with ids, models, and timestamps.

Messages and slash commands typed while the agent is generating queue up and run when the turn ends. Esc interrupts.

Sessions are trees

This is the part that isn't like other agents. Every entry has a parent, so a session is a tree rather than a flat transcript — you can go back to any earlier message and take a different path without losing the first one.

The practical use: try an approach, watch it not work out, branch back to before you suggested it, and try the other one — with the agent still knowing what went wrong the first time.

Models

CommandWhat
/modelSearchable picker across every provider you can use
/providerSwitch the active provider
Ctrl+PCycle recent models without a picker
/thinkingoff · minimal · low · medium · high · xhigh
/scoped-modelsPin a model per agent

Thinking level maps to whatever each provider calls it — Anthropic budget tokens, OpenAI/xAI/OpenRouter reasoning effort, Google thinkingConfig — so one setting works everywhere.

/scoped-models is how you stop paying frontier prices for grunt work: pin a cheap fast model to subagents and keep the expensive one for the main loop.

Agents

Tab on an empty prompt cycles the built-ins:

/agents builds your own: custom system prompt, tool allowlist, optional pinned model. It registers as /<name> for one-shot use — /reviewer look at the auth changes.

Subagents: the task tool forks the current agent into a fresh context window. Activity streams live in the task box while it runs, but only the final report enters your context — that's the point, a subagent can read fifty files and cost you one paragraph.

Tools

read · bash · edit · write · grep · find · ls · sql · task

Colored diffs, syntax-highlighted output, file previews. read also fetches http(s):// URLs as readable text, and takes offset/limit for large files. edit and write enforce read-before-modify within a session, so the agent can't overwrite a file it hasn't looked at.

Opt-in, via /settings:

Images

Paste with Ctrl+V, /attach <path>, or Ctrl+I for a file picker. Screenshot a broken UI or a stack trace and ask about it directly.

On macOS, Cmd+V cannot paste an image into a terminal: the terminal handles that keystroke and only knows how to type text. Ctrl+V is the one that works — it pastes an image when the clipboard holds one, and the clipboard's text when it doesn't.

Workspace context

Cost

The footer shows live cost, usage, and context per step, subagents included. /cost breaks it down by session, directory, today, last 7 days, month, and lifetime per provider. Anthropic prompt caching is handled automatically, with cache breakpoints moved across multi-step turns.

loop cost audit reconciles the ledger against the transcripts if you want to check the numbers.

Every slash command

GroupCommands
Sessions/new /clear /resume /sessions /session /name /export /import /share /compact /context
Tree/tree /fork /clone
Models/model /provider /thinking /scoped-models
Agents/agents /<agent> <message>
Automation/background /goal /daemon /reminder /timer /recap
Setup/login /logout /settings /mcp /extensions /hooks /bashdeny /permissions /gateways /doctor /reload /update
Misc/help /cost /steak /memory /init /attach /paste /copy /cd /hotkeys /changelog /alias /quit

/hotkeys lists key bindings. /alias makes your own shortcuts.

Other surfaces

loop serve                # web UI + WebSocket RPC (opt-in via /settings, token-locked)
loop rpc                  # JSON-RPC over stdio
loop rpc --socket         # …over a Unix socket
loop man                  # the manual (--install writes it to the manpath)
loop completion zsh       # tab completion for bash, zsh, or fish

Next: automate it or drive it from your phone.