Scratch writes run on their own.
Files under your auto_write_roots are written without a prompt, within a byte limit.
LOCAL MCP GATEWAY
Tripwire sits between a coding agent and your project files. Reads and scratch notes go through; a change to your source waits in a local inbox until you approve that exact patch.
PYTHON 3.11 · RUNS LOCALLY · MIT LICENSED
src/auth.pyscratch/notes.mdsrc/auth.pyWHAT YOU GET
You write a profile once: which paths are readable, which are writable, and which folders are scratch. Tripwire applies it to every file action the agent routes through it.
Files under your auto_write_roots are written without a prompt, within a byte limit.
A patch is shown as exact edits against a file digest. Approval is single-use, expires in five minutes, and is bound to that request.
Paths outside policy, .env, symlinks and hard links out of the workspace are denied and logged.
NEW IN 0.7
The agent can now propose a complete change, wait for you without guessing, and run the tests you allow. Every step still goes through the same single-use, request-bound approval.
Up to ten patches, new files, deletes and renames, approved once and applied all-or-nothing, with a journal that rolls back an interrupted change.
It checks a proposal's state, waits for you, and resumes the exact approved action. It still cannot approve anything.
You define commands like tests in the profile. The agent asks by name; you see the exact command and approve the run. No shell, no inherited secrets.
tripwire rehearse replays saved proposals and example sets against a draft profile and lists every decision that would change.
tripwire proxy watches every tool call in shadow mode, reports what enforcement would stop, then enforces your rules when you are ready.
The case study and evaluation show what was measured, including what failed.
SET UP IN THREE STEPS
Models never decide on their own. A small local classifier and an optional remote one can only add a reason to review. The measured results, including what failed, are in the evaluation.
How it works →tripwire connect writes a private profile outside the project and prints the MCP entry for Claude Code, Codex, Claude Desktop, Cursor or OpenCode. Pick a starter profile and, if you like, a test command the agent may ask to run.
tripwire console opens a loopback inbox with patch previews, policy editing and an activity log.
Paste the entry into your client, deny its native file tools, and restart it. Its file actions now go through Tripwire.
RECORDED RUN
The agent finds an access-control bug where a disabled admin gets through, writes its notes to scratch automatically, and proposes a source patch. The patch waits in the inbox; after approval the same session retries it and four of four tests pass. A .env read and a replay of the patch are then denied.
In 0.7, Claude Code ran the same task through Tripwire only: it proposed the fix and a regression test as one change set, waited for approval, then asked to run the tests and reported 7 of 7 passing. Read the transcript →
INSTALL
Download the package or the wheel, verify the checksum, and run tripwire demo. It walks through a read, a scratch write, a protected patch, approval, execution and a replay rejection in a temporary directory.
# in the directory with the wheel
python3.11 -m venv .venv
.venv/bin/python -m pip install \
tripwire-0.7.0-py3-none-any.whl
.venv/bin/tripwire demoEverything runs in a temporary workspace.
Download wheel directly ↓LIMITS
Tripwire governs actions sent through its tools. It does not stop an agent that also has a native shell or editor, so deny those or isolate the agent. The console is for the owner, not protection from hostile code running as your user. See the security model, which ties each claim to a test.