Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
charter
command
Command charter is the governance layer for AI coding agents: a CLI, MCP server, and CI gate over a git-native store of human-approved architectural decisions.
|
Command charter is the governance layer for AI coding agents: a CLI, MCP server, and CI gate over a git-native store of human-approved architectural decisions. |
|
charter/cmd
Package cmd wires up the charter CLI: init, propose, accept, reject, supersede, affirm, list, show, sync, and check (§9 of the design doc).
|
Package cmd wires up the charter CLI: init, propose, accept, reject, supersede, affirm, list, show, sync, and check (§9 of the design doc). |
|
internal
|
|
|
bootstrap
Package bootstrap mines a repository for the decisions that are already implicitly in force — in CLAUDE.md/AGENTS.md-style instruction files, in lockfiles and manifests, and in CI/linter config — and turns each finding into a draft proposed decision (§10 of the design doc).
|
Package bootstrap mines a repository for the decisions that are already implicitly in force — in CLAUDE.md/AGENTS.md-style instruction files, in lockfiles and manifests, and in CI/linter config — and turns each finding into a draft proposed decision (§10 of the design doc). |
|
check
Package check implements Charter's Layer 2 enforcement: a deterministic scope gate that matches changed files against accepted decisions and requires an explicit acknowledgment (§2, §11 of the design doc).
|
Package check implements Charter's Layer 2 enforcement: a deterministic scope gate that matches changed files against accepted decisions and requires an explicit acknowledgment (§2, §11 of the design doc). |
|
decision
Package decision defines the Decision object: a markdown file with YAML frontmatter that is the single source of truth for a governed choice.
|
Package decision defines the Decision object: a markdown file with YAML frontmatter that is the single source of truth for a governed choice. |
|
events
Package events is Charter's append-only audit log (design §13).
|
Package events is Charter's append-only audit log (design §13). |
|
install
Package install wires Charter into a coding agent's tool config: an MCP server registration plus a short managed instruction block in whatever file that tool reads on startup (CLAUDE.md, AGENTS.md, ...).
|
Package install wires Charter into a coding agent's tool config: an MCP server registration plus a short managed instruction block in whatever file that tool reads on startup (CLAUDE.md, AGENTS.md, ...). |
|
mcp
Package mcp is a minimal, handwritten Model Context Protocol server over stdio — no SDK dependency, by design (§7, §19): four tools is not worth a framework.
|
Package mcp is a minimal, handwritten Model Context Protocol server over stdio — no SDK dependency, by design (§7, §19): four tools is not worth a framework. |
|
principal
Package principal resolves the identity attached to an action: a human (from git config) or, in future, an agent (from its MCP connection).
|
Package principal resolves the identity attached to an action: a human (from git config) or, in future, an agent (from its MCP connection). |
|
search
Package search provides decision_search: a query over decision titles and body text.
|
Package search provides decision_search: a query over decision titles and body text. |
|
store
Package store persists Decisions as files under .charter/decisions/ and provides the operations the CLI and MCP server need on top of them.
|
Package store persists Decisions as files under .charter/decisions/ and provides the operations the CLI and MCP server need on top of them. |
Click to show internal directories.
Click to hide internal directories.