doctor

doctor is a command for Claude Code from vamshisuram/cc-manager. It costs 11 tokens per session (265 once invoked), scanned A, original, MIT.

A terminal command that prints a health summary of a Claude Code setup, including its plugins, commands, agents, skills, hooks, connections, conflicts, and session activity.

In plain words
What is it for?
Use it to inspect the current Claude Code configuration, review conflicts and unhealthy hooks, see active projects, and get the command for opening the full manager interface.
Why use it?
It gives a compact status check without opening a browser and points out broken hooks or disconnected services.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the cc-manager plugin — 3 commands shipped together

Good fit Use it to inspect the current Claude Code configuration, review conflicts and unhealthy hooks, see active projects, and get the command for opening the full manager interface.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add vamshisuram/cc-manager
Claude Code
/plugin install cc-manager

Made for: Claude Code.

Or install cc-manager, the plugin that ships this one along with the rest of its 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/vamshisuram/cc-manager/doctor/github.svg)](https://agentmods.dev/commands/vamshisuram/cc-manager/doctor)
Your own site
<a href="https://agentmods.dev/commands/vamshisuram/cc-manager/doctor"><img src="https://agentmods.dev/badge/commands/vamshisuram/cc-manager/doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/vamshisuram/cc-manager/doctor"><img src="https://agentmods.dev/badge/commands/vamshisuram/cc-manager/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.00265
Opus 5 $0.00005 $0.00133
Sonnet 5 $0.00002 $0.00053
Haiku 4.5 $0.00001 $0.00026

Measured 9d ago against content hash 1ca19355321a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

doctor scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://localhost:4178/api/state
commands/doctor.md · 35 lines

What it actually says

Give the user a quick read on their Claude Code setup without opening the browser.

If the server is already running on http://localhost:4178, fetch state from it:

curl -s http://localhost:4178/api/state

If it's not running, spin one up briefly:

NO_OPEN=1 node "${CLAUDE_PLUGIN_ROOT}/server.mjs" &
SVR=$!
sleep 1
STATE=$(curl -s http://localhost:4178/api/state)
kill $SVR 2>/dev/null

Then summarize in compact terminal-friendly form:

  • <N> plugins, top 3 by command count
  • <N> slash commands, <N> subagents, <N> skills
  • <N> hooks total — call out any with health: "broken" (with their event and script path)
  • <N> MCP servers — list disconnected ones
  • All conflicts[] entries (title + detail)
  • Sessions: total, total messages, top 3 most-active projects

End with: "Open the full UI with /cc-manager:open."

Keep the output dense and scannable. No prose paragraphs.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 35 lines · 11 tokens per session scan A 1ca19355321a

Subscribe to this mod's changes

doctor is a command published in the GitHub repository vamshisuram/cc-manager (10 stars, last pushed 2mo ago), licensed MIT. It adds 11 tokens to every session and 265 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.