doctor

doctor is a command for Claude Code from Kenmege/codex-claude-companion. It costs 20 tokens per session (313 once invoked), scanned A, original, Apache-2.0.

A diagnostic command for checking whether the Codex–Claude setup is installed, authenticated, registered, and ready to run.

In plain words
What is it for?
Use it to run a first-time health check, test live Claude access, inspect a chosen configuration or job-storage path, or produce machine-readable results.
Why use it?
It finds setup and runtime problems before you start a job, including missing tools, invalid login, unwritable storage, and transport failures.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to run a first-time health check, test live Claude access, inspect a chosen configuration or job-storage path, or produce machine-readable results.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kenmege/codex-claude-companion/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/Kenmege/codex-claude-companion

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/kenmege/codex-claude-companion/doctor/github.svg)](https://agentmods.dev/commands/kenmege/codex-claude-companion/doctor)
Your own site
<a href="https://agentmods.dev/commands/kenmege/codex-claude-companion/doctor"><img src="https://agentmods.dev/badge/commands/kenmege/codex-claude-companion/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/kenmege/codex-claude-companion/doctor"><img src="https://agentmods.dev/badge/commands/kenmege/codex-claude-companion/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 313 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.00020 $0.00313
Opus 5 $0.00010 $0.00156
Sonnet 5 $0.00004 $0.00063
Haiku 4.5 $0.00002 $0.00031

Measured 10d ago against content hash e8561ff1ffdc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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.

commands/doctor.md · 44 lines

What it actually says

/claude-review:doctor

Preflight

  1. Prefer the helper binary codex-claude if it is available on PATH.
  2. If it is not available, tell the user to install the helper with npm install -g codex-claude-companion after npmjs publish, or from a cloned checkout with npm install -g ..

Plan

Runs the first-run diagnostic. It checks Node, Git, Claude Code CLI/version, Claude auth, Codex plugin registration (including the native Codex plugin CLI install path), writable job storage, non-Git folder support, and prompt transport. Use --probe-runtime when the user wants live Claude non-interactive model access checked as well.

Commands

Use the exact argument tail the user supplied after /claude-review:doctor.

  • Preferred: codex-claude doctor <user-arguments>

Useful flags:

  • --probe-runtime — run the live Claude model probe.
  • --json — emit machine-parseable diagnostics.
  • --config <path> — inspect a non-default Codex config path.
  • --job-dir <path> — test a non-default job storage location.

Verification

If the helper exits non-zero, report the listed problem codes and recovery commands exactly.

Summary

Return the helper stdout verbatim.

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. 10d ago First seen · 44 lines · 20 tokens per session scan A e8561ff1ffdc

Subscribe to this mod's changes

doctor is a command published in the GitHub repository Kenmege/codex-claude-companion (2 stars, last pushed today), licensed Apache-2.0. It adds 20 tokens to every session and 313 once invoked, about $0.0001 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-31.