/doctor
A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Skill. Run a setup checkup that diagnoses issues and can fix them. Checks installation health, including duplicate or leftover installs, PATH problems, and unparseable settings files. Finds unused skills, MCP servers, and plugins versus their context cost, flags slow hooks, and checks for a newer version on your release channel. Deduplicates local CLAUDE.md files against checked-in ones, trims checked-in CLAUDE.md files by cutting content Claude could derive from the codebase, and migrates the always-loaded guidance that remains into skills and nested CLAUDE.md files that load on demand. Also offers to make auto mode your default and to pre-approve frequently denied read-only commands. Reports findings first and asks for confirmation before changing anything. From the terminal, claude doctor prints read-only installation diagnostics without starting a session. Alias: /checkup. Run /doctor prompt-audit to have Claude audit your CLAUDE.md files, skills, and other configuration for outdated or conflicting instructions instead of running the checkup. The prompt-audit subcommand requires Claude Code v2.1.283 or later. The CLAUDE.md trim check requires Claude Code v2.1.206 or later. Before v2.1.205, /doctor opened a read-only diagnostics screen and pressing f sent the report to Claude
Anthropic's own wording. Read off Commands, captured 2026-09-28.
In the changelogs
34Releases whose published page names /doctor.
-
v2.1.290
/doctorshows an extra block of checks before environment variablesThe
/doctorreport now prints a new block of paired lines, each with an indented detail, ahead of its environment variables sectionfound in this entry's text, named in this entry
-
v2.1.287
Clearer messages when Claude Code can't restart onto an installed update
Restarting a session onto a newly installed version now explains why it was refused, and confirms an upgrade, a downgrade or a plain resume
found in this entry's text
-
v2.1.283
/doctor prompt-auditreviews your project's instruction files/doctor prompt-audithands off to the bundled claude-api skill to audit CLAUDE.md, rules, skills and other instruction filesfound in this entry's text, named in this entry
-
v2.1.280
Doctor/diagnostic output now redacts gateway, Bedrock and proxy URLs
Diagnostic output now hides the actual Gateway, Bedrock, and proxy URLs behind redaction
found in this entry's text, named in this entry
-
v2.1.280
Doctor/hooks list truncation now uses shared 'N more' component
Doctor's hooks list now shows truncated 'N more' text using the same shared component as other lists
found in this entry's text, named in this entry
-
v2.1.261
/doctoroutput now waits for organization policy limits to load before reporting them/doctor now waits for org policy limits to load and shows an updating status line for them.
found in this entry's text, named in this entry
-
v2.1.257
Doctor check for stale sandbox mask files on Linux/WSL
A new doctor check finds stale zero-byte sandbox mask files on Linux and WSL that quietly break don't-ask-again.
named in this entry
-
v2.1.241
Version stamped to 2.1.241
The version number moved from 2.1.240 to 2.1.241; nothing else changed.
found in this entry's text
-
v2.1.239
Reworded auth, doctor and artifact messages
Auth, /doctor and artifact messages now describe what actually happened instead of guessing a fix.
named in this entry, found in this entry's text
-
v2.1.233
/doctor now checks skills for broken frontmatter
/doctor now spots skills whose frontmatter fails to parse and offers to repair it.
named in this entry, found in this entry's text
-
v2.1.233
Version bumped to 2.1.233
The version reported by the banner, /doctor and update checks is now 2.1.233.
named in this entry, found in this entry's text
-
v2.1.232
Version bumped to 2.1.232
Version is now 2.1.232, which shows up in /status, /doctor and update checks.
named in this entry, found in this entry's text
-
v2.1.231
Build stamp bumped to 2.1.231
The version number you see is now 2.1.231; nothing else about it changed.
found in this entry's text
-
v2.1.229
Slash commands can mark themselves terminal-only, and SDK clients get the list
Terminal-only commands like /doctor and /exit are flagged so non-terminal hosts can hide them.
named in this entry, found in this entry's text
-
v2.1.226
Version bump to 2.1.226
The version number ticks up to 2.1.226; nothing else changes.
found in this entry's text
-
v2.1.221
Version bumped to 2.1.221
Claude Code is now version 2.1.221, which shows up in /doctor and update checks.
named in this entry, found in this entry's text
-
v2.1.210
/doctorCommand Description Expandedfound in this entry's text
-
v2.1.206
Health Check Description Update
found in this entry's text
-
v2.1.205
claude doctor— terminal health-check commandfound in this entry's text
- v2.1.205
-
v2.1.205
/doctorredesigned as a comprehensive 8-check repair skillfound in this entry's text
-
v2.1.205
Improved MCP and enterprise-policy error messages
found in this entry's text
-
v2.1.203
ANTHROPIC_FOUNDRY_AUTH_TOKEN Environment Variable
found in this entry's text
-
v2.1.203
Proxy URL Validation with Clear Error Messages
found in this entry's text
-
v2.1.182
/doctorHint on Setup Issue Countfound in this entry's text
-
v2.1.129
Session Plugins from URLs
found in this entry's text
-
v2.1.110
MCP Server Conflict Detection
found in this entry's text
-
v2.1.110
Improved Error Diagnostics
found in this entry's text
-
v2.1.105
/doctor Diagnostics with Auto-Fix
found in this entry's text
-
v2.1.105
Tmux Focus-Events Diagnostic
found in this entry's text
-
v2.1.20
Keybindings Customization Skill
found in this entry's text
-
v2.1.3
Custom Keybindings Support
found in this entry's text
-
v2.1.3
Unreachable Permission Rules Detection
found in this entry's text
-
v0.2.107
Database Warning Removal
found in this entry's text
First cited
1The earliest release whose published evidence quoted /doctor was v2.1.182, 18 Jun 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.