skip to content

A Claude Code session is misbehaving: how do you choose between `/status`, `/doctor`, `/debug` and `/usage` to find out why?

level: seniorimportance: should knowfreq 11%

answer

  1. match the symptom to the layer
  2. who am I signed in as
  3. is the installation healthy
  4. logs start when you ask
  5. limits and the cost estimate

basics

~20 s

/status shows version, model, account and connectivity; /doctor runs a setup checkup of installation, settings and extensions and can fix them after asking; /debug starts debug logging and reads it; /usage shows session cost, plan limits and activity.

solid answer

~40 s

Pick by symptom. **Wrong account, model or connection** (for example an API key billing instead of your subscription): `/status`, which shows the login method and marks the credential not in use. **Broken setup** (duplicate installs, `PATH` problems, a settings file that does not parse, slow hooks, unused MCP servers or plugins): `/doctor`, a bundled skill that reports findings and asks before changing anything; if `claude` will not start, run `claude doctor` from the shell. **Odd runtime behaviour**: `/debug`, which enables debug logging from that point on (unless you launched with `claude --debug`), so reproduce after running it. **Limits or spend**: `/usage` (also `/cost`, `/stats`), whose session cost is a local estimate, not the bill. Background shells and subagents are in `/tasks`.

go deeper

for a junior

Recall what each command is for: /status for account and model, /doctor for setup health, /debug for runtime logs, /usage for limits and cost.

for a middle

Explain the mechanics behind each: /status reads state, /doctor is a skill that asks before fixing, /debug logs only from when it runs, /usage estimates cost locally.

for a senior

Demonstrate a triage order from symptom to layer, including claude doctor when the CLI will not start and reproducing after /debug, and say what each command cannot tell you.

for a principal

Turn the triage into team practice: a short runbook that sends people to the right command first cuts support time, and /doctor's findings are worth reviewing before fixes go in.

## Triage starts with the symptom Claude Code has several inspection commands, and they look at different layers. Running the wrong one wastes time: `/status` will not tell you a settings file is broken, and `/doctor` will not tell you which credential paid for the last request. Match the symptom to the layer first. | Symptom | Command | What it shows or does | | :- | :- | :- | | Wrong account, model, version or no connection | `/status` | Settings on the Status tab: version, model, account, connectivity | | Installation or configuration seems broken | `/doctor` | A setup checkup that diagnoses and can fix, after confirmation | | `claude` will not start at all | `claude doctor` (shell) | Read-only installation and settings diagnostics, no session needed | | A tool or feature behaves oddly at runtime | `/debug` | Turns on debug logging and has Claude read the session log | | Hitting limits, or checking spend | `/usage` | Session cost, plan usage limits, activity stats | | Background shells or subagents | `/tasks` | Background work in this session, including finished subagents | ## `/status`: who and what this session is `/status` opens the Settings interface on its **Status** tab: version, model, account and connectivity. It is the fastest check for credential confusion. When both a claude.ai login and an API key are configured, `/status` marks the one **not in use**, and an expired saved login shows a `Login` row reading `Expired — log in again`. It is a built-in command, and the Status tab only reports; it diagnoses nothing for you. ## `/doctor`: is the installation healthy `/doctor` is a **bundled skill** (since v2.1.205): Claude runs a setup checkup and proposes fixes. It checks installation health, including duplicate or leftover installs, `PATH` problems and unparseable settings files; finds skills, MCP servers and plugins whose context cost outweighs their use; flags slow hooks; checks for a newer version on your release channel; and can trim checked-in `CLAUDE.md` files. It **reports findings first and asks for confirmation** before changing anything. Its alias is `/checkup`. When the CLI will not even start, `/doctor` is unreachable; run **`claude doctor`** from the shell, which prints read-only diagnostics without starting a session. ## `/debug`: what happened at runtime `/debug` is also a bundled skill. It enables **debug logging for the current session** and troubleshoots by reading the session's debug log; you can pass a description of the problem to focus the analysis. The catch is timing: debug logging is **off by default** unless you started with `claude --debug`, so running `/debug` mid-session captures logs **from that point forward**. A failure that happened before you ran it is not in the log. Run `/debug`, then reproduce. ## `/usage`: limits and spend `/usage` shows session cost, plan usage limits and activity stats; `/cost` and `/stats` are aliases, not separate tools. On Pro, Max, Team and Enterprise plans it adds a breakdown of what counts against plan limits. The session dollar figure is **computed locally** from token counts at list price (or an administrator's pricing table), so it is an estimate; the authoritative bill lives in the Console. What the numbers mean in depth belongs to the cost material. ## Two neighbours worth knowing 1. **`/tasks`** (also `/bashes`) lists background work: running shells and subagents, including subagents that have finished. It is not the task list Claude keeps as a to-do checklist, which `Ctrl+T` toggles. 2. **`/diff`** shows the working-tree changes, including Claude's edits, when the question is "what did it actually change?" rather than "why is it broken?". For MCP server status, `/mcp` is the tool, and for what fills the context window, `/context`; their subjects belong to their own material. ## What each command cannot tell you - `/status` will not say **why** something fails; it shows identity, model, version and connectivity. - `/doctor` checks **setup**, not a single misbehaving turn, and its fixes wait for your confirmation. - `/debug` cannot see what happened **before** logging was on; a past failure has to be reproduced. - `/usage` gives an **estimate** of session cost, not an invoice, and nothing about installation health. - `claude doctor` is **read-only**; it reports install and settings problems but fixes nothing itself. Knowing these limits is what turns a list of commands into triage: each one answers a narrow question quickly, and the skill is asking the right one first. ## A triage habit 1. Confirm identity and model with `/status`. 2. If setup is suspect, run `/doctor` and read its findings before accepting fixes. 3. If behaviour is wrong but setup is clean, run `/debug` and reproduce. 4. If requests are refused or slow because of limits, check `/usage`.

  • A colleague says `/cost` and `/usage` disagree. What is going on?
    They cannot disagree: `/cost` is an alias of `/usage`, as is `/stats`, which opens on the Stats tab. If the figure looks different from the bill, that is expected, because the session cost is estimated locally from token counts at list price, or an administrator's pricing table. The Console's usage page is the authoritative billing record.
  • Why does `/doctor` not fix anything the moment you run it?
    It is designed to report first. The checkup lists what it found (installation problems, unparseable settings, unused skills or servers, slow hooks, oversized checked-in CLAUDE.md files) and asks for confirmation before changing anything, so you can decline a fix that does not suit your setup.

  • /status runs a health check and repairs a broken installation.
  • /doctor rewrites settings files without asking first.
  • /debug can show logs from before you ran it.
  • /cost is a separate command with its own, different numbers.
  • /tasks shows Claude's to-do checklist for the current job.
  • The session cost in /usage is the authoritative bill.