The trust layer for AI agents
The mistake happens once.
The lesson becomes law.
Everyone works with AI agents now. Almost nobody trusts one. They forget what you teach them, and nothing checks what they remember.
Every lesson kepttested against realitylaw for every agent
Watch a rule live and die ↓every agent
Same rule, whichever agent you open.
Three we can draw. The rule itself is universal: anything that reads AGENTS.md or speaks MCP gets it.
also inCursorCopilotGemini CLIWindsurfZedAiderClineand any agent with MCP
the difference
Memory tools store. crag verifies.
memory toolscrag
ThenStores what the agent once saidNowVerifies what is still true today
ThenSuggests context and hopes it helpsNowCompiles rules the agent has to follow
ThenTrusts a note foreverNowRe-runs each rule against reality
ThenHopes the model reads your filesNowRides inside every request
in the box
One install. The whole loop.
Everything below ships in the CLI today: capture, verify, compile, enforce, retire.
write the law
crag analyze
Reads package.json, CI workflows, and Makefiles, then writes the gates into AGENTS.md.
crag compile
One source, 23 targets: every agent config, hooks, and CI. Writes only the deltas your tools need.
crag audit --fix
Re-runs every check against the repo and recompiles what went stale.
enforce it
the Gate
A provider-neutral gateway: rules injected into every model request, spend caps, tool-call policy.
crag hooks install
SessionStart and SessionEnd wiring for Claude Code, and for Codex.
crag workspace
Monorepo-aware: members, governance hierarchy, per-package gates.
keep it true
crag memory
The Anchor engine. Lessons get captured, verified against the repo, and served to agents over MCP.
crag distill
Verified principles rendered into AGENTS.local.md, the Gate’s local memory file.
crag why <id>
The lineage receipt for any rule: the incident, every verification, what ended it.
run the fleet
crag status · inbox
The cockpit: trust score, corpus counts, and the review queue that needs a human.
VS Code · JetBrains · Neovim
Editor extensions, in the same box.
cloud + badge
Team sync and audit history at app.crag.sh (early access). Badge API free, no auth.
Say it once.
One command and the loop is running. No account. Nothing leaves your machine.