Generated from governance.md by crag. Regenerate:
crag compile --target agents-md
Make every AI agent obey your codebase. One governance.md → compiled to CI, hooks, and every agent. No drift.
All changes must pass these checks before commit:
node test/all.js
node --check bin/crag.jsnode --check bin/crag-mcp.js
node bin/crag.js help > /dev/nullnode bin/crag.js versionnode bin/crag.js analyze --dry-run > /dev/nullnode bin/crag.js upgrade --check > /dev/nullnode bin/crag.js workspace --json > /dev/null
- Stack: node
- Conventional commits (feat:, fix:, docs:, etc.)
- Commit trailer: Co-Authored-By: Claude noreply@anthropic.com
- Type: cli
- Entry: bin/crag.js, bin/crag-mcp.js
.circleci/— CI/CD.github/— CI/CDassets/— static assetsbin/— executablesdocs/— documentationscripts/— toolingsrc/— sourcetest/— tests
- Indent: 2 spaces
Do not:
- Do not write absolute local paths in governance (e.g.
D:/project/src/) — use relative paths only (e.g.src/). Governance files are checked into the repo and must remain portable across machines. - Do not leave
console.login production code — use a proper logger - Do not use synchronous filesystem APIs in request handlers
- No hardcoded secrets — grep for sk_live, AKIA, password= before commit
- Read
AGENTS.mdat the start of every session — it is the single source of truth. - Run all mandatory quality gates before committing.
- If a gate fails, fix the issue and re-run only the failed gate.
- Use the project commit conventions for all changes.