doctor

doctor is a command for Claude Code from coltonbearden/carrel. It costs 31 tokens per session (500 once invoked), scanned A, original, MIT.

An environment health check for the carrel command-line tool. It lists optional programs, their versions, and whether each carrel command is fully available, limited, or unavailable.

In plain words
What is it for?
Use it to check whether features such as OCR, document conversion, or PDF narration can run in the current environment, and to produce a machine-readable report.
Why use it?
It shows why a command may be missing or running with reduced capability instead of leaving you to diagnose the setup manually. It also gives installation hints for absent programs.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the carrel-agent plugin — 1 skill, 4 commands, 1 agent, 1 hook, 1 MCP server shipped together

Good fit Use it to check whether features such as OCR, document conversion, or PDF narration can run in the current environment, and to produce a machine-readable report.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/coltonbearden/carrel/doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/coltonbearden/carrel

Made for: Claude Code.

Or install carrel-agent, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 agent, 1 hook, 1 MCP server.

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/coltonbearden/carrel/doctor/github.svg)](https://agentmods.dev/commands/coltonbearden/carrel/doctor)
Your own site
<a href="https://agentmods.dev/commands/coltonbearden/carrel/doctor"><img src="https://agentmods.dev/badge/commands/coltonbearden/carrel/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/coltonbearden/carrel/doctor"><img src="https://agentmods.dev/badge/commands/coltonbearden/carrel/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 500 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00031 $0.00500
Opus 5.5 $0.00012 $0.00200
Sonnet 5.5 $0.00006 $0.00100
Haiku 4.5 $0.00003 $0.00050

Measured 1mo ago against content hash ee91f3e4dd27, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doctor scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/carrel-agent/commands/doctor.md · 34 lines

What it actually says

Check the carrel environment: $ARGUMENTS

Run the carrel CLI via Bash. The command takes no arguments beyond --json (the --help block below is regenerated from the CLI by scripts/sync_plugins.py; if the installed carrel doctor --help differs, trust the installed version):

Usage: carrel doctor [OPTIONS]

  Report environment health: adapters found, versions, per-command capability.

Options:
  --json  Machine-readable JSON output.
  --help  Show this message and exit.

Always run carrel --json doctor and read the report:

  • product.version, python: what is installed.
  • adapters[]: every optional binary carrel knows about — found, path, version, and an install_hint when absent, already written for the platform doctor ran on — relay it rather than composing your own.
  • commands[]: per carrel command a status of ok, degraded (works with reduced power; optional binaries missing) or unavailable (a requires binary or Python extra is missing), plus missing and a note.
  • icc_dirs, tesseract_langs: color-profile directories found and OCR languages installed.

Answer the user's actual question: if they asked "can I OCR / convert docx / narrate a PDF", quote that command's status and the exact install hint for whatever is missing rather than dumping the whole table. If they asked generally, summarize: N commands ok / degraded / unavailable, then the two or three most valuable missing binaries with their hints. doctor is read-only and always exits 0.

Requires the carrel CLI on PATH. If carrel is not found, tell the user to install it with uv tool install carrel (see the repo's INSTALL notes), or run it as uv run carrel ... from the carrel repo root.

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. 1mo ago Changed scan B → A ee91f3e4dd27
  2. 1mo ago First seen · 34 lines · 31 tokens per session scan B 7c93f425206d

Subscribe to this mod's changes

doctor is a command published in the GitHub repository coltonbearden/carrel (2 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 500 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.