doctor

doctor is a command for Claude Code from Generous-Corp/pulp. It costs 8 tokens per session (791 once invoked), scanned A, original, MIT.

Check environment and diagnose build issues.

Command for Claude Code

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.

agentmods
npx agentmods add commands/generous-corp/pulp/doctor
Clone the repo
git clone --depth 1 https://github.com/Generous-Corp/pulp

Made for: Claude Code.

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/generous-corp/pulp/doctor.svg)](https://agentmods.dev/commands/generous-corp/pulp/doctor)
Your own site
<a href="https://agentmods.dev/commands/generous-corp/pulp/doctor"><img src="https://agentmods.dev/badge/commands/generous-corp/pulp/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00008 $0.00791
Opus 5 $0.00004 $0.00396
Sonnet 5 $0.00002 $0.00158
Haiku 4.5 $0.00001 $0.00079

Measured today against content hash 6d89cddb5d74, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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.

.claude/commands/doctor.md · 48 lines

What it actually says

Check the development environment for missing dependencies and configuration issues.

Prepend the output with an Environment section that includes the canonical version line (see .claude/commands/version.md for the parsing recipe):

Environment
  Claude plugin <plugin_version> · Pulp SDK/CLI <sdk_version>

Then run the full doctor:

pulp doctor

Options:

  • pulp doctor --fix — auto-fix issues where possible
  • pulp doctor --ci — CI mode, exit codes only
  • pulp doctor --dry-run — show what --fix would do
  • pulp doctor android / pulp doctor ios — run mobile development environment checks
  • pulp doctor --versions [--scan-parents] [--json] — diagnose CLI / SDK / plugin version skew
  • pulp doctor --validators [--fix] [--dry-run] — verify auval / pluginval / clap-validator install and code-signature health
  • pulp doctor --caches [--fix] [--dry-run] [--json] — audit and heal the FetchContent shared-source cache
  • pulp doctor gpu [--no-render] [--json] — perform bounded render/readback and compute/map work; --no-render is an unverified inventory/preflight that acquires no GPU device
  • pulp doctor --host-quirks / pulp doctor quirks — show the runtime DAW host-quirks policy and enforced accommodations
  • pulp doctor --au-cache --dry-run — preview macOS AudioComponentRegistrar refresh after AU metadata changes
  • pulp doctor list / pulp doctor --only "<name>" — enumerate checks or run one targeted probe
  • pulp doctor --only WidgetBridge — check generated WidgetBridge .d.ts, mock function lists, and JS bridge docs for source-tree input-fingerprint freshness
  • pulp doctor --only "Control broker" — run only the observational local carrier probe

Default checks include C++20 compiler availability, CMake, git/git-lfs, LFS-backed Skia binaries when present, generated WidgetBridge API artifacts in source-tree mode, VST3/AudioUnit SDKs where relevant, optional AAX setup, package/platform alignment, Cmajor when used, build configuration, pulp-mcp availability, and optional local control-broker reachability. Broker absence is nonfatal. reachable-unverified means only that a carrier accepted a connection; without a trusted peer expectation, do not describe it as healthy or verified. This probe must not create or repair the runtime directory, start a daemon, open a session, or acquire authority.

Run this first when builds fail unexpectedly or on a new machine. Run pulp doctor --validators if pulp validate aborts with "broken code signature", pulp doctor --caches if build/test reports FetchContent cache drift, and pulp doctor --host-quirks when DAW accommodations or host-specific runtime behavior look suspicious.

For GPU problems, prefer pulp doctor gpu --json before inspecting a build or opening a window. Exit 0 means required real-work proofs passed and at least one required probe has authentic identity; exit 1 is a completed measured failure, and exit 2 is unavailable or unverified evidence. Report the adapter identity exactly as Dawn returns it; never infer hardware identity from the backend name or describe a null/software adapter as a hardware pass. Probe identities are independent and do not assert same-device correlation. The installed command and its pulp_gpu_doctor MCP peer work outside a source checkout.

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. today First seen · 48 lines · 8 tokens per session scan A 6d89cddb5d74

Subscribe to this mod's changes

doctor is a command published in the GitHub repository Generous-Corp/pulp (16 stars, last pushed today), licensed MIT. It adds 8 tokens to every session and 791 once invoked, about $0.0000 per session on Opus 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-04.