doctor

doctor is a command for coding agents from omrikais/cctally. It costs 0 tokens per session (9,650 once invoked), scanned A, original, Apache-2.0.

A read-only health report for cctally’s installation, hooks, sign-in, databases, data freshness, pricing, and safety settings. It ranks findings as OK, warning, or failure.

In plain words
What is it for?
Use it when cctally data looks wrong, when checking an installation, or in automated monitoring that alerts when a check fails.
Why use it?
It brings common causes of stale or broken data into one check instead of requiring separate manual inspections. Because it does not change data, it is suitable for routine health checks.

Command

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/omrikais/cctally/doctor
Clone the repo
git clone --depth 1 https://github.com/omrikais/cctally

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/omrikais/cctally/doctor.svg)](https://agentmods.dev/commands/omrikais/cctally/doctor)
Your own site
<a href="https://agentmods.dev/commands/omrikais/cctally/doctor"><img src="https://agentmods.dev/badge/commands/omrikais/cctally/doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,650 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.00000 $0.09650
Opus 5 $0.00000 $0.04825
Sonnet 5 $0.00000 $0.01930
Haiku 4.5 $0.00000 $0.00965

Measured today against content hash 8aef9469d93a, 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.

docs/commands/doctor.md · 266 lines

How it starts

The opening of the file, as written. The whole thing — 266 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cctally doctor

Read-only diagnostic. Answers the question: "why is my cctally data stale or broken?" by running every passive check across install, hooks, OAuth, database, data freshness, pricing coverage, and safety config, then emitting a severity-ranked report.

Modes

Mode What it does
cctally doctor Human-readable report
cctally doctor --json Machine-readable JSON to stdout
cctally doctor --quiet / -q Human mode; hide OK rows
cctally doctor --verbose / -v Human mode; include per-check details blocks

--quiet and --verbose are mutually exclusive.

Exit codes

Code Meaning
0 All checks are OK or WARN
2 Any check is FAIL

Loose mapping (WARN doesn't cause non-zero) makes cctally doctor usable as a healthcheck without false-positive noise: cctally doctor || alert-me.

Severity model

Level Meaning
OK Healthy. No user action needed.
WARN Degraded but functional. Data still flowing; user may want to act.
FAIL Broken. Data is wrong, or a critical workflow won't work.

Check inventory

Ten categories. Each check has a stable id (used as the JSON key), a one-line summary, and a remediation hint shown when severity != OK.

Install

  • install.symlinks — WARN when any cctally-* command is unavailable. Reports "N/M available", counting available = ok + stale. PATH-aware: a command is counted available when its ~/.local/bin/ symlink is present, or when the command is reachable on $PATH via another install channel (e.g. a Homebrew <prefix>/bin/ install), so it no longer false-warns purely because ~/.local/bin/ lacks the link. A leftover link to an old Homebrew keg (<prefix>/Cellar/cctally/) or the npm shim, whose command is still reachable elsewhere, is reported as a cleanable stale state (counted available, listed in the new --json details.stale array) rather than a generic failure — the summary appends "N stale link(s) to clean" and the remediation is Run cctally setup to clean stale links. A wrong-target / dangling / non-symlink slot still counts as missing (wrong). One pinned-only-path case is special-cased: when cctally is reachable only through a legacy ~/.local/bin/ link to a keg (so cctally setup deliberately won't remove the only working copy), the remediation switches to a PATH-fix hint ("Put <prefix>/bin on your PATH (e.g. eval "$(brew shellenv)"), then run cctally setup to remove the legacy link"). The --json details keys present / total / missing are unchanged (missing spans wrong + missing); details.stale is additive.
  • install.path — availability-aware: OK whenever cctally is reachable on $PATH via any channel (Homebrew <prefix>/bin/, an npm prefix, or source ~/.local/bin), summary cctally reachable on $PATH. WARN (cctally not reachable on $PATH) only when no channel makes it reachable; the remediation is channel-aware — a Homebrew keg is pointed at eval "$(brew shellenv)" (it owns no ~/.local/bin symlinks per the #119 policy), while source / npm installs get the export PATH="$HOME/.local/bin:$PATH" + cctally setup fix.
  • install.update_channel — reports the configured update (release) channel cctally update tracks (stable | beta), distinct from the preview channel (prod|preview) in install.mode. OK for stable, or beta on npm/source. WARN on the beta+brew mismatch — Homebrew tracks the stable channel only (a beta opt-in silently resolves stable); the remediation points at npm/source or cctally config set update.channel stable. Never FAIL, so it doesn't affect the exit code.
  • install.legacy_snippet — WARN when an old status-line snippet is detected.
  • install.legacy_bespoke_hooks — WARN when the legacy hand-installed hooks are present.

Read the full file on GitHub · 266 lines

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 Changed · +1 lines 8aef9469d93a
  2. 5d ago First seen · 265 lines · 0 tokens per session scan A 1dafbed0aba8

Subscribe to this mod's changes

doctor is a command published in the GitHub repository omrikais/cctally (5 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 9,650 tokens. 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.