OpenCanon

Agent-ready. Human-readable. Runtime-enforced.

Quickstart

Use the same agent-ready, human-readable Project Canon to load scoped context, validate a change, and return Proof to a human or agent loop.

1. Load context for a file

Ask OpenCanon what applies to a file. It returns docs, conventions, validators, active Changes, impact surfaces, checks, and optional Git history.

context
sh
opencanon context --files src/services/company.service.ts

2. List the rules in play

rules
sh
opencanon canon list conventions
opencanon rules --validator service-no-db-client
opencanon rules --convention service-db-boundary

3. Run Proof on changed files

--changed uses Git-backed discovery to scope work to the current working tree.

validate
sh
opencanon validate --changed
opencanon validate --changed --strict-warnings

4. Read feedback

The feedback command produces concise text designed to be fed back into an agent loop after edits or reviewed directly by a human.

feedback
sh
opencanon feedback --changed

5. Open browser diagnostics

The service and project runtime expose local browser URLs for inspecting Health and API responses while debugging.

diagnostics
sh
opencanon service open
opencanon project open

From here, read Concepts for the model and Validators for adding rules.