presence-doctor

presence-doctor is a command for Claude Code from sara-star-quant/presence. It costs 26 tokens per session (331 once invoked), scanned A, original, Apache-2.0.

A read-only health report for the presence system, showing its active setup, warnings, errors, stored-state sizes, and file-integrity status.

In plain words
What is it for?
Run it to inspect the current presence setup and recent problems. It can also identify recoverable issues that may be auto-corrected with its optional fix mode.
Why use it?
It helps explain why presence-related behavior seems wrong and points to issues such as malformed input, damaged data, missing Python, or unavailable Git.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the presence plugin — 3 skills, 7 commands, 1 agent shipped together

Good fit Run it to inspect the current presence setup and recent problems. It can also identify recoverable issues that may be auto-corrected with its optional fix mode.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add sara-star-quant/presence
Claude Code
/plugin install presence

Made for: Claude Code.

Or install presence, the plugin that ships this one along with the rest of its 3 skills, 7 commands, 1 agent.

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 presence-doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/sara-star-quant/presence/presence-doctor/github.svg)](https://agentmods.dev/commands/sara-star-quant/presence/presence-doctor)
Your own site
<a href="https://agentmods.dev/commands/sara-star-quant/presence/presence-doctor"><img src="https://agentmods.dev/badge/commands/sara-star-quant/presence/presence-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 presence-doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/sara-star-quant/presence/presence-doctor"><img src="https://agentmods.dev/badge/commands/sara-star-quant/presence/presence-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 331 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.00026 $0.00331
Opus 5 $0.00013 $0.00166
Sonnet 5 $0.00005 $0.00066
Haiku 4.5 $0.00003 $0.00033

Measured 11d ago against content hash db9aad34f6cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

presence-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 11d 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/presence-doctor.md · 24 lines

What it actually says

Run the presence diagnostic report and display its output verbatim. Then, if there are any warnings or errors, briefly summarize what the user should do about them.

PRESENCE_ROOT="${CLAUDE_PLUGIN_ROOT:-$(realpath ~/.claude/plugins/presence 2>/dev/null || echo .)}"
PYTHONPATH="$PRESENCE_ROOT/lib" python3 "$PRESENCE_ROOT/lib/doctor.py" --cwd "$PWD"
# Pass --fix to auto-correct recoverable issues (perm drift, missing manifest,
# stale .integrity-blocked marker). Never modifies settings.json or lib/ files.

After showing the output:

  • If errors_since_last_session > 0, tell the user to inspect ~/.claude/presence/logs/errors.log.
  • If warnings_since_last_session > 0, the recent warnings are already in the report; explain the most common categories (e.g. git_timeout, jsonl_corrupt, hook_input_malformed).
  • If python_ok is false, tell them to install Python 3.12+.
  • If git_available is false, tell them telemetry is disabled.
  • If integrity is FAILED, tell them to reinstall presence: the plugin files have changed and may be tampered.
  • Otherwise, say "presence is healthy."

Do not modify any state. This is a read-only command.

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. 11d ago First seen · 24 lines · 26 tokens per session scan A db9aad34f6cc

Subscribe to this mod's changes

presence-doctor is a command published in the GitHub repository sara-star-quant/presence (7 stars, last pushed 4d ago), licensed Apache-2.0. It adds 26 tokens to every session and 331 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.