Repository avatar
AI Tools
v0.5.12
active

assurance-mcp

io.github.i-ops-hq/assurance-mcp

Checks what an agent did NOT read. Coverage over a retrieval step or a folder.

Documentation

assurance

Your AI agent says it's done. Assurance tells you what it didn't check.

PyPI Python tests License

Try it · A day's work · What it found · Commands · After every turn · Where this comes from · Your work · Tell us where it's wrong


Coding agents finish with "All done — tests pass." Assurance reads what actually happened and tells you, in plain sentences, what was done, what was skipped, and what it could not verify.

No model decides any of it. Every answer is arithmetic over files and transcripts on your machine.

And it is one layer of a larger system. I-Ops is building Vinci, a runtime whose goal is AI work that is controlled and predictable rather than merely fast. Assurance is its verification layer, published on its own because every claim on this page can be checked without the rest of it. Where this comes from.

Try it

Every block below is one copy button. Step into a project you have used Claude Code or Codex in:

cd your-project

1 · The menu. Pick a check from a list, and see what it will run before it runs:

uvx assurance

2 · The audit. Straight to the question — what did the agent session in this folder do, and what did it skip?

uvx assurance audit

3 · After every turn. The same audit, as a Claude Code Stop hook. It prints the change to ~/.claude/settings.json and asks before writing it:

uvx assurance@latest hook install

As MCP tools instead, read-only and limited to the folders you grant:

claude mcp add assurance -- uvx --from assurance-mcp assurance-mcp --root .

The audit reads the newest session either agent left for this folder. Nothing to configure, no flag saying which one you used. Used neither yet? uvx assurance audit --demo runs it on a bundled sample. pip install assurance gives you the same assurance command without uvx.

No uvx? It comes with uv — one line.
wherecommand
macOS (Homebrew)brew install uv
macOS / Linuxcurl -LsSf https://astral.sh/uv/install.sh | sh
Windowspowershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Windows (WinGet)winget install --id=astral-sh.uv -e
anywhere with Pythonpipx install uv

Open a new terminal afterwards so uvx is on your PATH.

A day's work

uvx assurance audit       # the agent just said it's done — what did it not check?
uvx assurance coupling    # before you commit — what usually moves with this, and hasn't
uvx assurance deps        # before you install what it suggested — what will that run?
uvx assurance notices     # the hook said something yesterday — did the next turn act on it?

Where it sits

flowchart LR
    s0(["Prompt"])
    s1["AI agent<br/>edits code"]
    s2["Agent runs<br/>the tests"]
    A["🛡️ Assurance<br/>checks what<br/>really happened"]
    s4(["Commit, push,<br/>deploy"])
    s0 --> s1 --> s2 --> A --> s4
    style A stroke:#dc2626,stroke-width:3px

The red box is Assurance. Everything else is your workflow as it is today.

What it found

Real output on a sample session in this repo. The agent was asked to fix a rounding bug in invoice.py "and make sure pytest -q tests/test_invoice.py passes". It finished with "All done — the totals are correct now."

$ assurance audit examples/audit/sample-session.jsonl
Claude Code session demo-8f2 — 13 min in /home/you/my-app
10 tool calls, 3 failed — Bash 6, Edit 2, Grep 1, Read 1

  Looped: 3 rounds of Bash `pytest -q tests/test_invoice.py` failing the same way, with nothing new read
  Working tree (14:09): 2 edits since, unconfirmed
  After the last edit (14:09): whether a test or check ran is unconfirmed; 2 unclassified commands ran after it (make lint-fix, python script)
  Against the last prompt (14:00, "The invoice totals are off by a cent for EUR. Fix it in inv…"):
    invoice.py: changed at 14:04 (src/billing/invoice.py).
    pytest -q tests/test_invoice.py: did not run after the last edit to src/billing/rates.py (14:09); it last failed at 14:08, before that.
    Only what the last prompt names is checked here; whether the work does what it asks is not.
  Not classified: 2 shell commands (make lint-fix, python script), so whether they read, wrote or tested anything is unknown.
  Also in the transcript: 1 assistant turn, 1 user turn, 1 bookkeeping record.
  Not read: 0 lines.

Three things "All done" left out:

  • ❌ The tests failed three times in a row, the same way each time.
  • ❔ No test it recognises ran after the last edit. Two commands did, and it can't vouch for them either way, so it names them. Silence is not a pass.
  • ❔ The test the prompt asked for last ran before the last edit, and failed.

Whether the fix is actually right is not something it claims to know, and it says so. That is the whole design: narrower claims that hold beat broader claims that sound better.

Where this comes from

Read on its own, this looks like an agent-monitoring tool, and on its own that is what it is. It installs in a minute and answers one question without anything else from us.

It is also one layer of Vinci, the I-Ops runtime these checks were taken out of, and which is the product this company is building. Vinci exists so that AI work can be controlled and predictable: it works out what a task needs, acquires what is missing under your company's own permissions, holds consequential actions for approval before they happen, and then checks the result against conditions written down before the run by code that is not the worker. The tools in this repository are the parts of that last step whose claims can be checked without the rest of it — and they feed it rather than sit beside it.

We publish them separately for the same reason the runtime exists: a check you have to trust is not a check. Everything on this page is a claim you can run.

→ i-ops.dev

In use

Installed from the Claude plugin directory, 90 days1,009 times, by 911 accounts
Uninstalls · failed installs · command errors0 · 0 · 0
Load errors0, across 236,823 loads
Downloaded from PyPI, mirrors excluded, all time52,331

An install is a decision somebody made once. A load is the plugin being read into a session, which happens every session a user starts — so one person generates thousands of them over a quarter. The adoption figure is the first row; the last row of zeros is a reliability figure somebody else recorded.

Plugin figures from the Claude plugin directory, read 2026-11-30 and complete through 2026-11-28. Downloads from pypistats, complete through 2026-11-29; the family's first upload was 2026-08-29. This tool has no server, no account and no telemetry of its own, so these are the only numbers that exist.

Commands

One install, one assurance command. These are the ones to start with; assurance --help has the rest.

CommandWhat it answers
assurance auditWhat did the agent session in this folder do, and what did it skip?
assurance hookRun that audit after every Claude Code turn: install, remove, status.
assurance couplingWhat usually changes with what you just changed, from git history — and which of those you haven't touched. No graph, no configuration.
assurance depsWhat will pip install or npm install run on your machine? Read without running it.
assurance noticesAfter each thing the hook said, did the next turn act on it?
assurance reachWhat does a change to this file reach, and how far behind the code is that graph?
assurance clearanceIs the person who asked cleared for every owner their change reaches?
assurance budgetWhere did an agent run's budget go, and where did it loop?
assurance diffDid the work cover everything it should have — retrieved documents against required ones?
assurance pinDid an MCP server quietly change a tool's description after you approved it?
assurance serveA local endpoint your own agent posts its traces or run records to.

Every command works as a CI gate as it is:

Exit codeMeaning
0Checked, found nothing
1Something to look at, including something it couldn't check
2Couldn't run

What usually changes with what you just changed

The other half of an unfinished change is the file you forgot. assurance coupling reads your git history and names what travels with the files you touched and that you have not touched this time.

uvx assurance coupling    # in any git repository

Run here with nothing changed, it falls back to the repository as a whole, and the first thing it says is about this repo's own release process: the plugin manifest, the front door's pyproject.toml, its README and its CHANGELOG move as one set, in nearly every commit that touches any of them. Twice in one day the author of that paragraph moved some of them and not the others, and a test caught it both times. The tool had already said so, from history, before either mistake.

Every report ends with the git log command that checks its own first line, so you never have to take its word for it.

After every turn

The same audit, as a Stop hook that runs itself each time Claude finishes a turn. It speaks only when there is something to say, at one of three levels, named first:

LevelWhen
noteCode changed this turn and nothing has tested it yet
suggested reviewA test failed after the last edit, a protected path changed, or Claude says the tests pass with nothing behind it
stop and checkUntested code was pushed, merged, published, deployed, migrated or committed on main
assurance · note: no test or check has passed since the last edit to src/billing/invoice.py (14:04).
Run pytest -q tests/test_invoice.py before you commit or push.
assurance · suggested review: the last test run after the last edit to src/billing/invoice.py (14:04) failed: pytest -q tests/test_invoice.py (tests/test_invoice.py::test_eur_rounding; 1 failed, 11 passed in 0.33s).
assurance · stop and check: pushed at 14:06 with no passing test or check after the last edit to src/billing/invoice.py (14:04).
uvx assurance@latest hook install   # shows the change to ~/.claude/settings.json, asks, then writes it
uvx assurance hook remove           # takes it out again; nothing else changes

It knows the test commands of Maven, Gradle, Bazel, Django, Rails, jest, vitest, go, cargo and more, reads your package.json, Makefile and justfile scripts to learn yours, and never counts a run of zero tests as a pass. What it recognises.

Or as a Claude Code plugin: claude plugin marketplace add i-ops-hq/assurance, then claude plugin install assurance@i-ops-hq. It never blocks or fails a session. The hook guide covers pinning, teams and Windows.

Keeping an agent working until a condition holds is something Claude Code ships on its own, with /goal. What the condition is judged against is the difference: /goal's own documentation says its evaluator "doesn't run commands or read files independently", so an agent that says the tests passed can satisfy it by saying so. This reads the session's tool records and computes whether a test actually ran after the last edit, from the exit status that was recorded.

Your work

Each page is short: what goes wrong, where it sits, the lines that set it up.

What it checks for you
Payments and fintechThe tests your money code depends on ran after the last edit, and passed, before anything ships
Banking and regulated changeA record per session of what changed and what was tested, and whether the asker is cleared for every owner the change reaches
Healthcare and life sciencesProtected paths an agent changed without being asked; what an install will run, before it runs
Legal, insurance and documentsWhether a research agent read every document the question needs; missing periods in a folder of reports
Platform, DevOps and SREPushes, deploys and migrations over untested code; what a change reaches; limits a session cannot raise
Teams building their own agentsYour agent's "done" and its gate's "allow", held against what then happened, from a run record or OTel traces

What it won't do

  • Guess. If it can't establish a number, it says so instead of making one up.
  • Call a model or the network. Every result is arithmetic you can check yourself.
  • Claim more than it saw. A record shape it does not know is counted as unread, never guessed into a tool call, and the report prints that count.

Guides

Tell us where it's wrong

It's early, and the most useful thing you can do is run it on real work.

If it's useful to you, a ⭐ helps other people find it.

Packages

pip install assurance gives you every command. Each part also installs on its own.

PackageWhat it is
assurance-cliThe assurance command
assurance-budgetaudit for coding-agent sessions, budget for run logs
assurance-depsReads what an install will run, without running it
assurance-authorityWhether a task may go ahead for the person who asked
assurance-reachWhat a change reaches, by a code graph, and how stale that graph is
assurance-mcpThe checks as read-only MCP tools, limited to --root
assurance-coreThe pure decision library underneath. No I/O, no model, no dependencies

One layer of Vinci, by I-Ops. Keep your models, agents and orchestration, and put an independent check around them.

Apache-2.0 · Security · Contributing · Releases

PYPI
assurance-mcp
Install Command
pip install assurance-mcp