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.
npx agentmods add commands/optimeta/paideia/doctorgit clone --depth 1 https://github.com/OPTIMETA/PAIDEIAWrote 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.
[](https://agentmods.dev/commands/optimeta/paideia/doctor)<a href="https://agentmods.dev/commands/optimeta/paideia/doctor"><img src="https://agentmods.dev/badge/commands/optimeta/paideia/doctor.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00063 | $0.01045 |
| Opus 5 | $0.00032 | $0.00522 |
| Sonnet 5 | $0.00013 | $0.00209 |
| Haiku 4.5 | $0.00006 | $0.00104 |
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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Output language
Read INTERFACE_LANG from .course-meta (default en). All user-facing prose must be in that language. Keep in English regardless: file paths, slash command names, OCR engine names (claude, ollama, tesseract), package names, and shell commands the user must copy-paste.
What this does
doctor answers one question: can paideia actually run here? It checks the install (Python deps, poppler, tesseract + kor langdata, Ollama daemon + qwen3-vl:8b) and, when run inside a course folder, the workspace too (the directory skeleton, .course-meta, errors/log.md, writable paths, and the statusline / SessionStart wiring in .claude/settings.json).
It runs in two modes automatically:
- Course mode —
.course-metais present in CWD → full check. OCR-dependency severity is graded againstOCR_ENGINE: poppler is required for every engine, but tesseract only blocksollama/tesseract, and the Ollama daemon/model only blockollama. Python deps are graded the same way —pdf2image/pilloware core (blocking),pytesseractblocks onlyollama/tesseract, andreportlab/pypdf/pdfplumberare warn-level (cheatsheet PDF / ad-hoc PDF ops only). - Global mode — no
.course-meta→ system dependencies only, then points the user at/paideia:init-course. This is the "cloned but can't run" first line of defense.
Procedure
Arguments: $ARGUMENTS
-
Run the diagnostic. Use the script in the plugin (it reads
INTERFACE_LANGandOCR_ENGINEfrom.course-metaon its own):python3 "${CLAUDE_PLUGIN_ROOT}/scripts/doctor.py"If the user passed
--fix, add it —CLAUDE_PLUGIN_ROOTmust be in the environment (it is, inside a slash command) so the wiring repair can resolve absolute script paths:python3 "${CLAUDE_PLUGIN_ROOT}/scripts/doctor.py" --fixThe script's exit code encodes overall status:
0= all clear,1= usable with warnings,2= blocking issues. -
Relay the report in
$INTERFACE_LANG. The script already prints localized lines with copy-paste fix commands — surface them as-is; do not re-translate the shell commands. Lead with the bottom-line status (✓ all clear / ⚠ warnings / ✗ blocking).
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.
- 4d ago First seen · 47 lines · 63 tokens per session scan A dcb343d221f3
doctor is a command published in the GitHub repository OPTIMETA/PAIDEIA (91 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 1,045 once invoked, about $0.0003 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-08-30.
Other commands, from other repositories
voice-review
Review content for AI writing patterns.
voice-profiles
List, activate, delete, rename, and export voice profiles.
voice-drift
Report observed voice patterns and drift from the voice profile. Shows how the user's actual writing compares to their profiled voice over time.
voice-setup
Interactive setup for human voice configuration.
voice-interview
Start a new voice elicitation interview session.
voice-status
Show progress of a voice elicitation interview session.