When Claude Code acts strange, the cause is often boring: two installs fighting, a settings file with a typo, a slow hook. There is a built-in checkup for that.
/doctor
Inside a session, /doctor runs a setup check. According to the docs it looks at installation health (duplicate or leftover installs, PATH problems, settings files that do not parse, whether a newer version is on your release channel), at extensions such as skills, MCP servers and plugins compared with their context cost, at slow hooks, and at CLAUDE.md files. It reports first and asks before it changes anything.
For a quick look without starting a session, the CLI has a read-only version:
claude doctor
That prints install health, settings-file validation errors and Remote Control eligibility, and changes nothing. It is the one I’d run first when the app does not start properly, since you cannot type a slash command into a session that will not open.
/checkup is an alias for the slash command.
Caveats. Some parts depend on your version: the docs mark a few checks as needing a recent release, so an old install shows fewer of them. And read the proposed fixes before you confirm. Removing an MCP server or a plugin because it costs context is a fine suggestion, unless that one is the reason you installed Claude Code in the first place.
Further reading: Claude Code commands, Claude Code CLI reference