PACT — Programmatic Agent Constraint Toolkit
A framework for governing AI coding agents through infrastructure instead of instructions.
📜 What's new in 0.14.0 — Rust-free numpy-only vector-memory backend: works on locked-down / restricted hosts where the default tokenizers/onnxruntime/sqlite-vec (Rust/binary) deps can't be installed — the embedding weights ship in-repo and the engine auto-falls back to numpy, so a plain clone just works. Plus 7 new cognitive-redirect triggers.
👉 First time installing PACT? Read QUICKSTART.md — clone to working setup in 15 minutes.
The common assumption is that Claude's problem is memory. It forgets facts, decisions, and other nuances between sessions, so the go-to "solution" is to make it remember more by applying bandaids like session logs or plans in endless markdown files, classic databases, spawning dozens of subagents to argue it out with little context, and attempting marathon sessions to prove you've avoided compaction; that last one is actually nightmare fuel, not an accomplishment. I'll take "context rot" for $500, Alex.
The uncomfortable truth is that Claude makes bad decisions even when it remembers everything.
Smells like teen spirit. The analogy that comes to mind more often than not, for Claude, is that developers feel like "babysitters." If you haven't felt this way, then you should get your hands in the code more often. But, to be fair to Claude, it's more like a (usually) well-behaved teenager. Plenty of potential, and eager to be helpful, but they start the task before reading the instructions, are easily distracted, can have poor follow-through, and think guessing is the same thing as knowing. You can tell it to "be careful" all day. It won't help. What helps is a system that makes "careful" the default. The guardrails engage before the mistake, not rules that scold afterwards. But it's also balanced enough to encourage the right behavior without feeling like more chores.
Memory plugins ask: "How do we help Claude remember?"
PACT asks: "How do we help Claude grow up?"
If you've ever witnessed Claude editing a file it hasn't read, fix one layer and break three downstream, guess at a package API instead of checking docs, deeclare "done" while half the work is missing, or worse, then install PACT. Full context doesn't fix any of these. They're reasoning failures, not recall failures.
What is PACT, & Who Is It For?
PACT is a modular governance framework for AI coding agents (Claude Code, Cursor, Copilot Workspace, etc.). Use all of it or just the parts that fill gaps in your existing setup — if you already have a memory layer, a task manager, or a workflow orchestrator, PACT detects that and only scaffolds what's missing.
PACT was built by a solo developer for solo developers, then designed to scale up. The smaller your team, the more you need it. There's no code reviewer to notice the stale cache, no teammate to check the dependency chain, no QA to catch the UI regression. Besides scaling, smaller projects can also refer inherit knowledge from a larger one through delegation* or a shared stack-level instance. PACT's subsystems activate on the patterns they detect and based on what you explictly ask for.