Writ

Writ turns supported workflow requirements into executable checks and acceptance gates for Claude Code, instead of relying on the model to follow written instructions. It runs on your machine: hooks that Claude Code calls around each tool use, a local daemon that makes the decisions, and a Neo4j database in Docker that stores rules and decision records.
Built and maintained by Lucio Saldivar at Infinri. See Writ by Infinri for the product overview, source-based walkthroughs and public evidence.

Watch demo · Quick start · Acceptance gates · Why was I blocked? · Documentation · Support Writ
Writ V2 architecture (in development): Read the V2 overview · Explore the HTML architecture site · M0 implementation checklist. The installation and feature details below document the existing V1 release on main; V2 is not released.
Watch Writ in action

Looping excerpt above. Click it for the full captioned demo.
Watch the demo (1:21) · Download the MP4
A real Claude Code session building an offline security briefing command in A.S.E., edited for length with captions and no narration. See the plan and test approval gates refuse writes, specialist agents explore, plan, implement and review, and writ audit-session record the gate events.
The checks pass, then review finds additional edge cases. The recording shows workflow enforcement and verification, not a guarantee of bug-free code.
The problem, and the approach
A rule in CLAUDE.md, a skill or a system prompt is an instruction: the model has to find it, keep it through a long session, and decide it applies. When context compacts or fills, instructions fade, and nothing announces it.
Writ moves selected requirements out of the prompt and into code that runs when the agent acts. A source write before an approved plan is refused, not discouraged.
Context delivers the rules, methodology and past decisions that fit the current prompt, file and workflow phase. Enforcement checks each attempted action and blocks it, asks you, or reports a finding. Continuity records what you approved and why files changed, so the next session starts from it.
Writ constrains a cooperative agent; it is not a sandbox. See Evidence and limits. The longer argument is in docs/instructions-vs-enforcement.md.
Acceptance gates
Work mode puts two acceptance gates between a request and the first source write: an approved plan, then approved test skeletons. Each gate is code that runs when the agent tries to write and again when you approve. Only your own reply opens a gate.
The gates at a glance