Constellation
Your project’s architecture plan as typed, connected markdown cards in the repo: validated by lint, diffed by git, readable by humans and AI agents.
Constellation keeps your project’s architecture plan as markdown files in the repo: typed cards, connected into a graph, validated by lint, diffed by git, readable by humans on GitHub and by AI agents with nothing more than file access.
Each card is frontmatter (structure) + markdown (narrative). The filename is the handle:
constellation/ plan.md ← the living project plan (PLAN-PROJECT) api/API-TICKETS.md ← one file per card; the filename IS the handle datatype/DATATYPE-TICKET.md db/DB-TICKETS.md flow/FLOW-CREATE-TICKET.md ...
Connections come from frontmatter only: a plain connections: list of handles, plus handle-shaped values in other frontmatter fields. A [[HANDLE]] link in prose, or a handle used as a Mermaid node ID, is a hyperlink for readers: clickable and linted, but never a graph edge. The indexer derives the graph; nothing derived is ever stored.
Why files?
Plans drift from code when they live somewhere else. Here a plan change is a commit: it rides the same branch and PR as the code it describes, merges per-card, and “what changed in the plan” is git diff -- constellation/.
Install
npm install -g @magic-spells/constellation # the `constellation` binary # or run without installing: npx @magic-spells/constellation lint
Requires Node ≥ 22.
Quick start
constellation init # scaffold constellation/ with a starter plan.md, set up working memory constellation lint # validate handles, references, folders, schemas constellation serve # open the local viewer (editable) at http://localhost:4747
initscaffolds aconstellation/folder with a starterplan.mdand sets up working memory.lintvalidates handles, references, folders, and schemas. Broken-graph errors exit non-zero for CI, while warnings don’t block.serverenders the plan as a local website you can edit in place, with a small constellation diagram of each card’s neighborhood.
Next steps: wire the plan into your AI tools in Add to Claude Code & Codex, or see the full CLI commands reference.