November 29, 2026AI7 min read

Claude Code /doctor: A Monthly Checkup for Your AI Setup

AI setups drift: old instructions, unused connectors, duplicate installs. Claude Code's /doctor finds and fixes them with your approval, and Codex has its own diagnostic report. Here is what each checks and a ten-minute monthly routine.

Claude Code /doctor: A Monthly Checkup for Your AI Setup

An AI setup does not break loudly. It drifts. The instructions you wrote in spring were tuned for an older model, a connector you tried once still loads in every session, a second copy of the app sits in another folder, and a settings file has a typo nobody noticed. Nothing fails, the agent just gets a little slower, a little more expensive and a little less reliable.

Both Claude Code and Codex now ship a doctor command for this. They are not the same tool: Claude's runs a guided checkup that proposes fixes, Codex's prints a diagnostic report. This guide covers what each one checks, which suggestions to accept, and a monthly routine that takes ten minutes.

Signs your setup needs a checkup

You do not need to wait for an error. Any of these is a good reason to run the doctor:

  • Claude ignores an instruction you are sure you wrote.
  • You hit your plan's usage limit sooner than you used to.
  • Sessions feel slow to start, or the context fills up quickly.
  • You switched to a newer model and the answers changed in tone or quality.
  • The app says an update failed, or you installed it more than once.

What /doctor checks in Claude Code

Type /doctor at the prompt of any Claude Code session, in the terminal or in the Code tab of the desktop app. It is a built-in skill, so Claude does the investigation itself, across five areas:

  • Installation: duplicate or leftover installs, PATH problems, settings files that cannot be read, and whether a newer version is available.
  • Extensions: skills, MCP servers and plugins you do not use, compared with how much context they cost, plus slow hooks.
  • CLAUDE.md files: local copies that duplicate shared ones, content Claude could work out from the code itself, and always-loaded guidance it offers to move into files that load only when needed.
  • Permissions: an offer to make auto mode your default, and to pre-approve read-only commands you keep having to confirm.
  • Usage: on a paid plan, the changes that would lower your plan usage, based on the last seven days.

It proposes, you decide

Claude reports its findings first and asks before changing anything. That makes /doctor safe to run, but it does not make every suggestion right for you. Removing an unused connector or a duplicate install is an easy yes. Moving long instructions out of CLAUDE.md is usually a yes too, and the change shows up in your diff, so you can read it before keeping it.

Think twice about the permission offers. Auto mode lets Claude act without asking you at each step, which is comfortable for routine work and risky in a folder that can reach your live site or your customers' data. Accept it where the stakes are low, and keep the default mode where a mistake would be costly.

Audit your instructions with /doctor prompt-audit

If you followed our folder guide, most of your agent's value lives in instruction files: CLAUDE.md, AGENTS.md and your skills. Those age faster than the software. /doctor prompt-audit reviews them instead of the installation and looks for instructions written for older models, references to files or commands that no longer exist, and files that contradict each other.

You get a report with proposed edits, and nothing changes until you ask Claude to apply them. To check one file or folder only, add its path after the command. This is the most useful part of the doctor for a business, because outdated instructions are invisible: the agent follows them quietly.

When Claude Code will not start

/doctor needs a working session. If the app or the terminal command will not start, run claude doctor from a terminal instead. It prints a read-only report without starting a session: the version and how it was installed, whether auto-updates work, whether you are signed in, and a list of warnings, each with a suggested fix. It changes nothing on its own.

A few related commands help narrow things down: /status shows which settings are active, /context shows what fills the context, and /mcp shows whether each connector is connected.

The Codex equivalent: codex doctor

Codex has a doctor too, run from a terminal: codex doctor. It is closer to claude doctor than to /doctor. It generates a diagnostic report on the installation, configuration, sign-in, runtime, Git, the terminal, the desktop app and the network connection, with each line marked as fine or as a warning. Add --summary for a short version, or --json for a report with sensitive values removed that you can send to support.

What it does not do is fix anything, or review your instructions. OpenAI's documentation describes no equivalent of the guided checkup or of the instruction audit. Inside a Codex chat, a few commands cover part of the ground:

  • /status shows the active model, approval policy, writable folders and token usage.
  • /debug-config shows which configuration layers apply and in what order.
  • /warnings lists the warnings that appeared during the session.
  • /feedback sends feedback, or saves a diagnostic file to share with support.

A ten-minute monthly routine

Put it in your calendar on the first Monday of the month, or after any model change:

  • Run /doctor in your main project and accept the easy fixes: duplicates, unused extensions, available updates.
  • Run /doctor prompt-audit and read the proposed edits before applying any.
  • If you also use Codex, run codex doctor --summary and deal with the warnings.
  • Look at the diff of your instruction files before keeping the changes, as you would for any other edit.
  • Write down what you changed in one line, so next month you know why a skill disappeared.

Where we help

We set up and maintain Claude Code and Codex for businesses that want AI working on their website and internal tools, as described in our desktop app guide. The monthly checkup is part of that: we run it, apply what is safe, and explain the rest in plain words, so the setup keeps working as the models change.

Sign up to get the latest news

Subscribe to our newsletter

.

Okzea Icon

Your Long-Term Technical Partner

We build and maintain the applications and automations that remove manual work, for teams in Europe, North America, and Asia.

© 2026 Okzea Co. Ltd. All rights reserved.