Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Per-repo memory, outcome telemetry, and a calibrated-confidence gate for Claude Code, with MCP and AGENTS.md projections so other AI coding tools can read its context. Notes survive sessions; success claims need test evidence; your reverts are remembered. Local-only, stdlib runtime.
Jump to setup instructionsFetched from the repository for this visit.
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:
git commit and git push, and a commit can carry a receipt of what ran before it (docs/receipts.md).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".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.
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.
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
The Zero-Trust preset's at-rest encryption needs the cryptography library in the Python presence uses, and the installer refuses --preset zerotrust without it. Homebrew and most distros mark the system Python as PEP 668 externally managed, so pick the path that matches how you got Python:
# A. You used --bootstrap (presence has its own uv-managed Python).
"$(cat ~/.claude/presence/.python_bin)" -m pip install cryptography
# B. Homebrew or system Python, overriding PEP 668 (user site, not system).
python3 -m pip install --user --break-system-packages cryptography
# C. Isolated: a venv that presence is pinned to.
python3 -m venv ~/.claude/presence-venv
~/.claude/presence-venv/bin/pip install cryptography
echo "$HOME/.claude/presence-venv/bin/python3" > ~/.claude/presence/.python_bin
If unsure which Python presence uses, /presence-doctor prints it on the pinned python and python lines. Every other preset and the rest of the Zero-Trust controls are stdlib-only.
For installs from curl or git clone:
~/.claude/plugins/presence/install.sh --update
This runs git fetch, git pull --ff-only, and the installer again, and refuses to run on a dirty working tree. Installs from the /plugin flow update through Claude Code's own plugin update.
To see the latest release in /presence-doctor, set { "update_check": { "enabled": true } } in ~/.claude/presence/settings.json. It makes one anonymous HTTPS GET to api.github.com per 24 h, is off by default, and is forced off under zerotrust. /presence-doctor --refresh bypasses the cache.
/plugin uninstall presence
or ~/.claude/plugins/presence/install.sh --uninstall for a local install. State in ~/.claude/presence/ is kept unless you pass --purge. Under Zero-Trust, also run /presence-reset --crypto to rotate the keychain key and wipe encrypted state.
presence ships four presets. Switch any time:
/presence-preset use solo-dev
/presence-preset use team-oss
/presence-preset use enterprise-strict
/presence-preset use zerotrust
| Preset | Model | Outcome log (local) | Commit gate | Stop gate | At rest |
|---|---|---|---|---|---|
solo-dev (default) | on, terse | on, no PR check | off (advisory only via Stop) | silent (logged, surfaced next session) | plain |
team-oss | on, verbose | on, PR check | warn (advisory text injected) | silent | plain |
enterprise-strict | on, verbose, audit | on, PR check, audit log | block (refuses commit) | block (re-prompts on unverified success) | plain |
zerotrust | on, terse, encrypted, audit | on, encrypted, audit, no PR check | block | block | AES-GCM + keychain |
Custom presets: drop <name>.json in ~/.claude/presence/presets/ and switch to it. See docs/recipes.md for common customizations.
Full threat model: docs/security.md, T1 to T21, each pinned by a named test.
solo-dev) makes no outbound calls. The opt-in ones (gh PR status, which team-oss turns on, release check, webhook notifier, --bootstrap, --download-ext) are off unless enabled and forced off under zerotrust.presets/redaction/; docs/compliance.md states what that does and does not cover.0700, files 0600, re-tightened every SessionStart.docs/zerotrust.md.Release binaries are verified against SHA256SUMS at install time; see SECURITY.md. Report vulnerabilities privately through SECURITY.md, not as public issues.
Pre-1.0 (0.16.x). Read this before depending on it.
Contract. Preset keys, hook events and the hook and mcp CLI commands are additive-only within 0.x (the receipt commands are experimental), enforced by tests/test_contract.py (docs/contract.md). Older state keeps opening: CI runs the current hooks against state generated by earlier releases, back to v0.7.1.
Host compatibility. presence depends on Claude Code's hook payloads. CI replays payloads captured from the real host through the real hooks; nothing runs the live host in CI, so a newer Claude Code stays unverified until someone re-captures with tests/fixtures/capture_host_payloads.py. When a payload lacks what a hook needs, the hook stays quiet and logs a warning that /presence-doctor surfaces.
| Claude Code | Status |
|---|---|
| 2.1.325 | tested, real payloads captured 2026-11-14 |
| 2.1.327 | tested, real payloads captured and live suite passed 2026-11-18 |
| 2.1.329 | live suite passed 2026-11-26; payloads not yet captured |
Evidence. A commit can carry a signed receipt of what ran before it, and CI attests the test run for its tree; both can be checked without presence (docs/receipts.md, experimental).
Testing. Over 1,300 tests across Linux (x86_64, arm64, Python 3.12 to 3.14) and macOS (Python 3.13). The snapshot, audit, and redaction parsers are fuzzed with Hypothesis on every PR and with Atheris under ClusterFuzzLite nightly.
Maintenance. Single maintainer; see GOVERNANCE.md for the continuity plan.
| Metric | Default (stdlib) | With the Rust client | Method |
|---|---|---|---|
| Cold hook startup | 82 ms median | 8.9 ms median | n=50 / n=30, bench/cold_startup.py |
| SessionStart populated | 112 ms median | 9.1 ms median | 10 KB model + 100 events + 50 claims |
| Aggregate session (77 fires) | 6.4 s | 770 ms | n=10 / n=5, bench/aggregate_session.py |
| Install + first /presence-status | 245 ms total | 245 ms total | n=25, bench/install_to_working.py |
The Rust client is optional: ./install.sh --build-ext compiles it locally (needs a Rust toolchain at install time), --download-ext fetches a checksum-verified pre-built binary matching your checkout (add --require-attestation to refuse it unless gh also verifies its build attestation). Without it, hooks run on the stdlib-only path. Runtime dependencies: none by default, cryptography only for Zero-Trust at-rest encryption. All measurements: macOS arm64, Python 3.14.4. Reproduce with python3 bench/<name>.py --runs N (bench/README.md); version-by-version history in bench/HISTORY.md.
Surface: 4 presets, 6 hooks, 7 slash commands, 3 skills, 1 subagent, 1 MCP server, 1 cross-tool adapter, 3 redaction profiles.
| Platform | Python hooks | Pre-built Rust client | Tests in CI |
|---|---|---|---|
| macOS arm64 | supported | yes | yes |
| macOS x86_64 | supported | yes (cross-built) | no, no runner |
| Linux x86_64 | supported | yes | yes |
| Linux arm64 | supported | yes | yes |
| Windows via WSL2 | supported (it is Linux) | follows the WSL distro | no |
| Windows native | unsupported (#9) | no | no |
Start at docs/index.md. Highlights:
docs/architecture.md: what each hook does, how state is laid out, the context schema, how to write a custom presetdocs/security.md: threat model, and the test that pins each claimdocs/zerotrust.md: the opt-in Zero-Trust profiledocs/receipts.md: receipts and CI-attested test runs, and what they do not provedocs/compliance.md: what presence does and does not do for regulated workloads (no certification framing)docs/contract.md: the compatibility promisedocs/v1-readiness.md and docs/roadmap.md: what is open before 1.0, and what we deferred and whydocs/mcp.md, docs/multi-host.md: the read-only projections for other toolsdocs/recipes.md, docs/glossary.mdCHANGELOG.md, CONTRIBUTING.md, SECURITY.md, llms.txtOpen a GitHub issue using the bug template. If presence is installed but silent (no hooks firing, or an unexpected integrity or audit block), use the it went inert template and paste the output of /presence-bugreport. For security findings, do not file a public issue - follow the private disclosure process in SECURITY.md.
presence is provided as is under the Apache License 2.0, without warranty of any kind, express or implied. The authors and copyright holders (Sara Star Quant LLC) and any contributors are not responsible for any damage, data loss, security incident, regression, lost productivity, or other adverse outcome arising from the installation or use of this plugin.
This project is not advice of any kind:
docs/security.md and docs/zerotrust.md is informational. It is not a compliance attestation, certification, or guarantee under any regulatory framework (GDPR, HIPAA, SOC 2, ISO 27001, etc.). If you operate in a regulated environment, consult qualified counsel before relying on this plugin's properties.By installing or using presence, you accept full responsibility for:
The full legal terms are in LICENSE. This README's Disclaimer section is an informational summary of the spirit of those terms; in any conflict, the LICENSE controls.
Apache-2.0, see LICENSE.
GitHub checked 328h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.