Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

10 Claude Code commands and how to use each one

The short version

Claude Code has commands most people never type. These ten do four jobs: they keep your context clean, get you a second opinion, automate work you repeat, and undo mistakes. For each one below: what it does, how to use it, and the mistake to avoid.

Everything here comes from the Claude Code commands reference, checked in October 2026. Type / in a session to see which commands your version has.

The ten at a glance

Copy these to try them

Type these inside a Claude Code session in your own project.

1. Before a hard task

/advisor opus
ultrathink. Before you change any file, give me the plan: what you will edit, in what order, and what could break.

2. While a long job is waiting

/loop 5m check if the deploy finished and tell me what happened

3. When a session feels slow or confused

/context

Read what is taking the most room. If the task is done, run /clear and start the next one fresh.


1. /btw

What it does. Asks a side question about your current work without adding it to the conversation history. The answer appears in an overlay you can dismiss.

How to use it.

  1. Type /btw and your question, for example /btw what was the name of that config file again?
  2. You can do this while Claude is still working. The side question runs on its own and does not interrupt the main turn.
  3. Run /btw with no question to reopen your most recent one.

Mistake to avoid. Asking it to look something up. A side question answers only from what is already in the conversation. It cannot read files, run commands or search.

2. /advisor

What it does. Pairs your main model with a second, usually stronger, model. Claude consults it at key moments: before committing to an approach, when an error keeps coming back, and before saying a task is done. Claude decides when to call it.

How to use it.

  1. Run /advisor to open a picker, or name the model directly: /advisor opus.
  2. The choice is saved and stays on for later sessions.
  3. To ask for a consultation yourself, say so in the prompt: consult the advisor before you continue.
  4. Turn it off with /advisor off.

Mistake to avoid. Leaving it on for small jobs. Every consultation reads the whole conversation at the advisor model's rates, on top of your normal usage. It pays off on long tasks where the plan decides the outcome. The docs mark this feature as experimental, and the advisor has to be at least as capable as your main model (advisor docs).

3. ultrathink

What it does. It is a keyword, not a slash command. Put the word ultrathink anywhere in your prompt and Claude Code asks for deeper reasoning on that one turn, without changing your session's effort setting.

How to use it.

  1. Add it to the prompts where being wrong is expensive: a plan, a tricky bug, a design choice.
  2. Leave it out of everything else.
  3. To change the level for the whole session, use /effort instead.

Mistake to avoid. Expecting it to switch models. It asks the model you are already on to think harder for that turn. It does not move you to a different one.

4. /context

What it does. Shows your current context usage as a coloured grid, with suggestions for the tools and memory files that are taking too much room, and a warning when you are close to the limit.

How to use it.

  1. Run /context when a session starts repeating itself or forgetting things.
  2. Look at the biggest blocks first. Long logs, large files and unused tools are the usual ones.
  3. Run /context all for the full per item breakdown.

Mistake to avoid. Blaming the model before you look. A session that feels slow is often a full context window, not a weak model.

5. /clear

What it does. Starts a new conversation with empty context. The old one is not lost: you can get back to it with /resume.

How to use it.

  1. Run /clear when you finish one task and start an unrelated one.
  2. Pass a name, for example /clear login-bug, to label the conversation you are leaving so it is easy to find in /resume.
  3. If you want to keep going on the same task with more room, use /compact instead. It summarises the conversation so far.

Mistake to avoid. Clearing in the middle of a task. The new conversation knows nothing about the decisions you just made.

6. /insights

What it does. Generates a report on your recent sessions on this machine: which projects you work in, how you use Claude Code, where things go wrong, and features to try.

How to use it.

  1. Run /insights and open the report it writes.
  2. Read the part about where things go wrong first. Each repeated problem is usually one missing line in your project instructions.
  3. Try one suggested feature, then run it again in a few weeks.

Mistake to avoid. Running it on a new install. It reads the sessions saved on the machine you run it on, so it needs some history. It is not available in cloud sessions.

7. /loop

What it does. Runs a prompt again and again while your session stays open. Good for checking on a deploy, a build or a pull request.

How to use it.

  1. With an interval: /loop 5m check if the deploy finished. Units are s, m, h and d, and the shortest interval is one minute.
  2. Without an interval: /loop check whether CI passed. Claude picks the wait each time, between one minute and one hour.
  3. To stop a loop that picks its own interval, press Esc while it is waiting. To stop a fixed one, ask Claude to cancel it.

Mistake to avoid. Closing the terminal and expecting it to keep going. A loop only runs while Claude Code is running, and a recurring one expires after seven days. For work that must run without your machine, use /schedule (scheduled tasks docs).

8. /schedule

What it does. Creates a routine: a saved prompt, with your repositories and connectors, that runs in the cloud on a schedule. It keeps working when your laptop is closed.

How to use it.

  1. Describe it in one line: /schedule daily PR review at 9am. Claude asks follow-up questions, then saves it.
  2. For a one-off: /schedule tomorrow at 9am, summarize yesterday's merged PRs.
  3. Manage them with /schedule list, /schedule update and /schedule run, or on the web at claude.ai/code/routines.

Mistake to avoid. Writing a vague prompt. A routine runs on its own, with no one to approve steps or answer questions, on a fresh clone of your repository. Say exactly what to do and what done looks like. Routines need a paid Claude plan, the shortest interval is one hour, and the docs mark them as a research preview (routines docs).

9. /rc

What it does. Short for /remote-control. It makes the session on your computer available from claude.ai/code or the Claude phone app. Claude keeps running on your machine the whole time, with your files and tools.

How to use it.

  1. Run /rc in the session you want to continue.
  2. Open the session link it shows, or scan the QR code with the Claude app.
  3. Send messages from your phone, your browser or the terminal. They stay in sync.

Mistake to avoid. Shutting the computer down. Your phone is a remote for the session, not a copy of it, so the machine has to stay on. It needs a claude.ai subscription login and does not work with an API key (remote control docs).

10. /rewind

What it does. Opens a list of the prompts you sent in this session. Pick one and restore the code, the conversation, or both, to that point. Pressing Esc twice on an empty prompt opens the same menu.

How to use it.

  1. Run /rewind and pick the prompt just before things went wrong.
  2. Choose what to restore: code and conversation, conversation only, or code only.
  3. The same menu can also summarise the conversation from a point, which frees context without losing your files.

Mistake to avoid. Treating it as version control. It only undoes edits Claude made with its file editing tools. Files changed by shell commands, such as rm or mv, are not tracked. Keep committing to Git (checkpointing docs).

Which one first

Steal this for your workflow

A note on versions

These commands were checked against the Claude Code docs in October 2026. Commands, plans and limits change, and some of these need a recent version or a claude.ai subscription. If one is missing, update Claude Code and type / to see what your version has.

Get the next one in your inbox