cordance
Deterministic-first context-pack compiler for AI coding agents. Doctrine-shaped. Source-traced. Cortex-aware. Axiom-harness compatible.
Install
This is the canonical install path. It pulls in
cordance-cli and produces the
cordance binary. cargo install cordance-cli is the equivalent direct
path — both install the same binary.
Golden path
The first cordance pack writes the initial outputs. The second
cordance pack against an unchanged tree produces a byte-identical
.cordance/pack.json — every output's SHA-256 is pinned in sources.lock,
and cordance check will exit non-zero if anything drifts.
What it does
Run cordance pack against any repo and you get:
AGENTS.md+CLAUDE.mdwith fenced editable regions — hand edits outside the<!-- cordance:begin … -->/<!-- cordance:end … -->markers survive regeneration..cursor/rules/*.mdcderived from your project doctrine..codex/AGENTS.md+agents/codex/AGENTS.mdfor Codex CLI.- A
pai-axiom-project-harness-target.v1JSON the axiom validators accept verbatim. - A
cordance-cortex-receipt-v1-candidateJSON that Cortex'scortex_memory_acceptflow can ingest. - A
.cordance/sources.lockso drift is auditable.
Workspace
| Crate | Purpose |
|---|---|
cordance-core |
Types, schemas, ports. No I/O. |
cordance-scan |
Deterministic repo scanner. |
cordance-doctrine |
engineering-doctrine consumer. |
cordance-emit |
Target emitters. |
cordance-cortex |
Cortex candidate-receipt builder. |
cordance-advise |
Deterministic doctrine checks. |
cordance-llm |
Bounded candidate-prose adapters. |
cordance-cli |
CLI library + binary. |
cordance |
This umbrella package — installs the binary. |
Run cordance --help for the full subcommand surface, or visit the
project README for the design
documents.
License
Dual-licensed under MIT OR Apache-2.0.