cordance-cli
The
cordancebinary — one command that makes any repo legible to Claude Code, Cursor, Codex, axiom, and Cortex without prompt engineering.
Part of the Cordance workspace.
Discoverability
Search terms: cordance CLI, AI coding agent onboarding, MCP stdio server, AGENTS.md generator, CLAUDE.md generator, Cursor rules, Codex bootstrap, axiom harness target, Cortex candidate receipt.
Install
The binary is named cordance. Run cordance --help for the full
subcommand surface.
Golden path
# 1. Add a cordance.toml at your project root (or rely on defaults).
# 2. Compile the context pack. Writes:
# AGENTS.md, CLAUDE.md, .cursor/rules/*.mdc, .codex/AGENTS.md,
# agents/codex/AGENTS.md, pai-axiom-project-harness-target.json,
# .cordance/pack.json, .cordance/sources.lock, .cordance/evidence-map.json
# 3. Run deterministic doctrine checks against the pack.
# 4. After making changes, verify nothing drifted out of the managed regions.
Subcommands
| Command | Purpose |
|---|---|
cordance init |
Write a default cordance.toml. |
cordance scan |
Classify all files; emit a Markdown report at .cordance/scan-report.md. |
cordance pack |
Compile the context pack and emit every target. |
cordance advise |
Run the deterministic doctrine checks (no LLM). |
cordance doctrine <topic> |
Look up a topic in 0ryant/engineering-doctrine. |
cordance cortex push |
Emit a cordance-cortex-receipt-v1-candidate.json. |
cordance check |
Drift detection against .cordance/sources.lock. |
cordance explain <rule> |
Show source provenance for a generated rule. |
cordance watch |
Re-run pack on file changes. |
cordance serve |
Start the JSON-RPC MCP server (stdio) — see ADR 0014. |
cordance doctor |
Pre-flight checks: axiom, doctrine, Ollama reachability. |
cordance completions <shell> |
Emit shell completion scripts. |
Configuration
cordance.toml at the project root. Every field has a sensible default:
[]
= "../engineering-doctrine"
= "https://github.com/0ryant/engineering-doctrine"
= "auto"
[]
= "../pai-axiom"
= "auto"
[]
= "none" # "none" | "ollama"
[]
= "http://localhost:11434"
= "qwen2.5-coder:14b"
= 0.1
= 8192
[]
= []
What you get
- An
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 (read-only-advisory; no runtime authority claims). - A
cordance-cortex-receipt-v1-candidateJSON that Cortex'scortex_memory_acceptflow can ingest. - A
.cordance/sources.lockso subsequent drift is auditable.
Authority model
- Engineering doctrine is the authority for what good looks like. Cordance never modifies doctrine; it only cites it.
- Project state (ADRs, schemas, tests, source) is the authority for what this project decided. Cordance reads it; never rewrites it.
- Axiom is the authority for runtime, policy, and proof boundaries. Cordance emits a harness-target JSON axiom's validators accept verbatim; never claims runtime authority.
No invented vocabularies. No LLM-laundered hard rules. No reverse-syncing runtime roots.
See also
- Cordance project README
BUILD_SPEC.md— the full design specification.- ADRs under
docs/adr/. - Library crates:
cordance-core,cordance-scan,cordance-doctrine,cordance-emit,cordance-advise,cordance-cortex,cordance-llm.
License
Dual-licensed under MIT OR Apache-2.0.