Watch an agent cross the line. Then watch Mneme stop it.
Two runnable demos show architecture failures before they land. Then see Mneme block a violating write in a real Claude Agent SDK workflow before it reaches disk.
The change looks useful. The decision says otherwise.
A second database sneaks in.
JSON becomes Postgres. Mneme stops the migration, then checks the safer retry.
The rulebook starts guessing.
A vector-search change lets agents find different decisions for the same task. Mneme blocks the fork.
Claude proposes a write. Mneme stops it before disk.
A real Claude Agent SDK workflow receives the governing decision, attempts a violating Write, gets denied, and retries with the compliant change.
Write → storage.pyDecision injected · hook returns DENYApproved path → PASSRun a governed check locally.
Open source. Deterministic. No model call required.
pipx install "mneme-hq>=0.9.0"pipx install "mneme-hq>=0.9.0"
More ways Mneme enforces architecture.
CI boundaries, dependency policy, ADR import, and compliant checks.
Stop direct database access in a service.
Migration scope · Strict mode · DENYThe pattern is everywhere. Here it is forbidden.Scope a decision to the migrated tree only.
Dependency policy · Warn mode · WARNNew package? Make it a decision.Flag the dependency before it drifts in.
ADR import · Local CLI · WARNTurn ADRs into checks.Compile the rules you already maintain.
Compliant check · Local CLI · PASSKeep JSON. Ship the change.Verify a clean storage task.
Multi-agent governance is the target architecture.
Many agents. One rulebook.
The goal: every agent gets the same rule, meets the same check, and leaves one shared record.
Inspect the target contract →