presence

When Claude Code says "done", presence checks whether a test or build actually ran on that code.
A Claude Code plugin that compares an agent's success claims with test and build evidence tied to the exact state of your git working tree, and keeps a local, per-repo memory so the next session starts where the last one left off. The check is deterministic and local: no model judges the claim, by default nothing leaves your machine, and no file content is stored. Read-only projections (an MCP server and an AGENTS.md adapter) let other MCP-aware and AGENTS.md-aware tools read the same context.

One install, no per-project setup, four additions to Claude Code:
- Calibrated confidence. The Stop hook checks whether a success claim ("fixed", "done", "works") is backed by a passing test or build since the last change to the code, judged against the working tree so edits made by a shell command or a checkout count too. An optional gate does the same for
git commit and git push, and a commit can carry a receipt of what ran before it (docs/receipts.md).
- Outcome log (local only; the
telemetry setting). Tracks what Claude committed, then watches for reverts, amends, and PR closes. Later sessions see "your last 3 changes here were reverted within 24h".
- Event digest. File changes, test failures, and build results that happened between turns surface at the next prompt.
- Living project model. Claude builds and reuses notes about each repo it touches, instead of re-deriving the architecture every session.
What you see by default: the gate only judges a repository where a test or build could ever satisfy it, so in a folder with no recognised runner it stays quiet. The default preset (solo-dev) only records an unverified claim, so a fresh install shows no claim warnings until you choose a stricter setting. team-oss warns at git commit, stop_action: warn tells the agent once at its next prompt, the strict presets (enterprise-strict, zerotrust) ask the agent to run the tests or hedge the claim before it stops, and docs/recipes.md shows how to switch.
State lives in ~/.claude/presence/, local only.
Install
curl -fsSL https://raw.githubusercontent.com/sara-star-quant/presence/main/install.sh | bash
~/.claude/plugins/presence/install.sh --verify
Restart Claude Code and run /presence-status.
To start under a stricter preset, choose it at install time so no hook ever runs under the default: ./install.sh --preset zerotrust (or curl ... | bash -s -- --preset zerotrust). zerotrust is refused unless encryption can work, and the flag never changes an install that is already locked (docs/zerotrust.md).
The installer is idempotent and makes no outbound network calls beyond fetching itself. It checks for Python 3.12+, symlinks the plugin into ~/.claude/plugins/presence, creates ~/.claude/presence/ with 0700 perms, generates MANIFEST.lock, and pre-compiles lib/. Without Python 3.12+ it warns and continues; presence stays inactive until one is on PATH. Add -s -- --bootstrap to install Python 3.13 through uv (one call to astral.sh, opt-in).
--verify checks the symlink, plugin registration in settings.json, perms, Python, the MANIFEST.lock integrity, and fires all 6 hooks against the real lib/ tree. Exit 0 means ready; FAIL lines say what is missing; --verify --json is machine-readable. From inside Claude Code, /presence-status shows the active preset and store sizes (--zerotrust for that preset's checklist), and /presence-doctor runs the full diagnostic. /presence-doctor --fix repairs recoverable problems: changed permissions, a missing manifest, a leftover .integrity-blocked marker.
Other install methods
Plugin marketplace:
/plugin marketplace add github.com/sara-star-quant/presence
/plugin install presence
Git clone:
git clone https://github.com/sara-star-quant/presence ~/code/presence
~/code/presence/install.sh