Skip to content

Full Source

Every file Archon ships, indexed by role. Each entry below opens a rendered view of the file's contents — code is embedded via VitePress snippet inclusion so the rendered page stays in sync with the source of truth under docs/source-files/.

How this section works. docs/source-files/ contains an exact mirror of the Archon source tree. Every Markdown page in /source/ uses VitePress <<< snippet syntax to embed the corresponding file. This lets you read the source inline, while keeping the source itself a single source of truth.

Layout

docs/source-files/
├── .archon/                     # Portable cognitive core + project-agnostic state
│   ├── soul.md                  # Identity, cognitive loop, ownership, guardrails
│   ├── soul/
│   │   ├── delivery.md          # demand-mode extension
│   │   └── review.md            # plan + review-mode extension
│   ├── domain-lenses/           # Pre-Verdict lens index (5 lenses + 16 tools)
│   ├── contracts/               # Portable governance contract (YAML)
│   ├── templates/               # Run-State schema + run row template
│   ├── dashboard/               # Local observability UI (reference impl)
│   ├── extensions/              # Optional runtime extensions (demand-pool, …)
│   └── VERSION
├── .cursor/                     # Platform surface (rules · commands · agents · skills)
│   ├── commands/                # archon, archon-plan, archon-demand, archon-review, archon-dashboard
│   ├── agents/                  # archon-reviewer, archon-capture-auditor
│   ├── rules/                   # archon.mdc, archon-wake.mdc, archon-heartbeat.mdc
│   └── skills/                  # archon-framework, archon-git-commit, archon-signs, archon-comic-doc-refactor, blink-dispatch, external-agent-patterns
├── scripts/                     # Portable helpers (stdlib / zero-dep)
│   ├── archon-check.py          # Governance contract checker
│   ├── archon-check.sh          # Bash port
│   ├── archon-run-state.mjs     # Run-State v2 helpers
│   ├── archon-claim-verifier.mjs# ADR-27 claim verifier
│   ├── archon-records.mjs       # Records-folder helpers (ADR-22)
│   ├── archon-records-fold.mjs  # Archive rotation
│   ├── archon-records-migrate.mjs # Legacy → records-folder migration
│   ├── export-archon-core.mjs   # Export pipeline (source → standalone kit)
│   └── test-archon-export.mjs   # Contract test for the export pipeline
├── tools/
│   └── archon-cli/              # archon init / doctor / export CLI
├── LICENSE                      # Apache-2.0
└── NOTICE                       # Attribution notices

By role

Cognitive core

The soul defines who the agent is: identity axioms, ownership contract, cognitive loop, autonomy principles, evolution axis, guardrail system. Two mode extensions load on demand.

Commands

Entry points that route a user message into a governed lifecycle.

Sub-agents

Cross-family sub-agents for independence (ADR-independence rule).

Rules

Universal guardrails that load into every session for Archon-touching files.

Skills

Horizontal reusable capabilities triggered by keywords / file types.

Domain lenses

Pre-Verdict lens index used at the Decision Gate. 5 lenses + 16 domain-specific tools.

Contracts

Portable governance contract, consumed by the archon-check.py and archon-check.sh checkers.

Runtime templates

Consumed by archon-run-state.mjs to initialize a new delivery's ephemeral state.

Scripts

Portable helpers. All scripts are stdlib / zero-dep and can run from an adopter project without any additional install.

Archon CLI

Human-facing wrapper (init · doctor · export).

Dashboard (reference implementation)

Local observability UI that reads .archon/ ledgers. Distilgent's own implementation is mirrored here verbatim; adopters can fork or replace it.

Extensions

Optional runtime modules that plug into the cognitive loop.

Miscellaneous

Released under the Apache-2.0 License.