✳ tripwire.

LOCAL MCP GATEWAY

Your agent proposes.
You approve.

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

YOUR AGENT →
✳ tripwire / GATEWAY● LOCAL
OWNER PROFILE

Project review

● ACTIVE
+
Read sourcesrc/auth.py
ALLOWED
+
Write findingsscratch/notes.md
AUTOMATIC
✳
Patch sourcesrc/auth.py
IN REVIEW
●   POLICY APPLIED03 ACTIONS
✓
YOUR DECISIONApprove this changeSingle-use approval
→
EXAMPLE PROFILE ✳

WHAT YOU GET

Three rules,
enforced in code.

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.

01 / SCRATCH
01

Scratch writes run on their own.

Files under your auto_write_roots are written without a prompt, within a byte limit.

02 / PATCHES
✳

Source changes wait for you.

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.

03 / BOUNDARY
⌁

Everything else is refused.

Paths outside policy, .env, symlinks and hard links out of the workspace are denied and logged.

NEW IN 0.7

Review a whole change,
then let it verify.

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.

04 / CHANGE SETS
⧉

One proposal for the fix and its test.

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.

05 / WAIT & RESUME
⟳

The agent knows what it is waiting for.

It checks a proposal's state, waits for you, and resumes the exact approved action. It still cannot approve anything.

06 / COMMANDS
▸

Tests run when you say so.

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.

07 / REHEARSAL
≋

See a policy change before you apply it.

tripwire rehearse replays saved proposals and example sets against a draft profile and lists every decision that would change.

08 / PROXY
⇄

Put the same log in front of any MCP server.

tripwire proxy watches every tool call in shadow mode, reports what enforcement would stop, then enforces your rules when you are ready.

09 / EVIDENCE
§

Every number has a logged run.

The case study and evaluation show what was measured, including what failed.

SET UP IN THREE STEPS

Connect, console,
restart.

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 →
01

Connect a project

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.

02

Start the console

tripwire console opens a loopback inbox with patch previews, policy editing and an activity log.

03

Restart your agent

Paste the entry into your client, deny its native file tools, and restart it. Its file actions now go through Tripwire.

RECORDED RUN

OpenCode fixes a real bug.
You approve the patch.

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.

Watch the 3:36 recording →

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 →

Try the policy workbench →

INSTALL

Run the demo,
then connect an agent.

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.

V0.7   /   PYTHON 3.11   /   CHECKSUMS

●   ●   ●TERMINAL
# 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 demo

Everything runs in a temporary workspace.

Download wheel directly ↓

LIMITS

What it does not cover.

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.