Memory for agents
CONSTELLATION
A living plan of your software that AI agents read, build from, and keep true.
What it is
A living plan for your codebase
Every API, table, flow and decision becomes a typed markdown card in your repo, connected into a graph. Agents read it before they change code and keep it true after.
Read the plan first
An agent opens the cards for that part of the system and picks up the intent, decisions and gotchas earlier sessions left.
Write down the why
After a change it records what code can’t say: why it’s built this way, what was rejected, where things stand.
Stay in sync
Cards are stamped against commits, so when the code moves on, the plan flags which cards are out of date.
The plan
Cards are just markdown files
The whole plan is one folder in your repo, one file per card. No database, no service: it versions with git.
- The filename is the handle: api/API-TICKETS.md is card API-TICKETS.
- YAML frontmatter for structure, markdown prose for the why.
- Frontmatter connections build the graph; [[links]] stay clickable.
- 21 typed folders: api/, db/, flow/, decision/, page/, and more.
your-repo/├── src/├── package.json└── constellation/ ├── plan.md ├── api/ │ └── API-TICKETS.md ├── datatype/ │ ├── DATATYPE-TICKET.md │ └── DATATYPE-CREATE-TICKET-INPUT.md ├── db/ │ └── DB-TICKETS.md ├── flow/ │ └── FLOW-CREATE-TICKET.md └── role/ └── ROLE-SUPPORT-AGENT.md
constellation/api/API-TICKETS.md
---name: List & create ticketsstatus: builtpath: /api/v1/ticketsmethods: GET: response_schema: DATATYPE-TICKET POST: request_schema: DATATYPE-CREATE-TICKET-INPUT response_schema: DATATYPE-TICKETconnections: - DB-TICKETS - ROLE-SUPPORT-AGENT--- # Tickets API GET returns tickets filtered by status; requires[[ROLE-SUPPORT-AGENT]]. POST emits[[EVENT-TICKET-CREATED]] after insert; see[[FLOW-CREATE-TICKET]] for the full sequence.
Built for agents
Memory that outlasts the session
An MCP server lets agents query the plan, assemble work from it, and keep it honest.
Typed cards
21 card types, from APIs and tables to flows and decisions, each with a schema that warns instead of blocking.
A derived graph
Connections are computed from frontmatter on every load and never stored, so there is no saved graph to go stale.
Full context in one call
Fetch a card with its connected cards and the code it is bound to: intent plus current code.
Drift detection
A stale report flags every card whose bound code changed since it was last verified.
Work packages
Assemble turns a plan change into file-disjoint units for parallel agents, with a suggested build order.
Git-native
A plan change is a commit, on the same branch and PR as the code it describes.
The viewer
Get the full view
A local viewer, prebuilt and one command away.
- Force-directed graph of every card, colored by type.
- Click to focus and the layout re-forms into rings around it.
- Live reload: cards your agents edit update in the browser.
- Edit in place: body, fields and connections. Five color schemes.
$ constellation serve
➜ Local: http://localhost:4747/

FAQs
Does it need a database or a hosted service?
No. The plan is a constellation/ folder of markdown files in your repo, and it versions with git like the rest of your code. The CLI, viewer and MCP server all run locally from one npm package on Node 22 or newer.
Which AI agents does it work with?
Any client that speaks MCP. The server runs over stdio: Claude Code and Codex CLI add it with one command, and clients such as Claude Desktop take a few lines of JSON config. The cards are plain files too, so an agent with only file access can still read them.
Can I use it without an AI agent?
Yes. Cards are markdown you can read and edit by hand or on GitHub. constellation lint validates the graph, and constellation serve opens the local viewer, where you can edit cards in place.
How does the plan stay in sync with the code?
A card is bound to code through the FILE cards it connects to and its own code_refs. When a card that claims built or verified has bound code with commits newer than the card, it is stale. set_verified stamps a card to a commit as the baseline to measure against, and the stale report lists every card the code has moved past.
The day-to-day workflow →I already have a codebase. Do I start from scratch?
No. The MCP server ships two prompts. The bootstrap_plan prompt has your agent walk the existing code macro to micro and build the plan. The audit_plan prompt reconciles the plan with the code later: missing, stale or orphaned cards, and gaps such as missing unhappy paths and auth. In Claude Code they appear as /mcp__constellation__bootstrap_plan and /mcp__constellation__audit_plan.
Can it run in CI?
Yes. constellation lint exits 1 when the plan has errors, the things that break the graph: bad handles, dangling structured references, duplicates. It exits 2 when no plan is found and 0 when there are no errors, so warnings such as a schema violation or an unknown field never fail the build.
Does it replace my docs and ADRs?
It gives them a home in the graph. DOC cards explain how the system is set up, and DECISION cards record why it came to be that way, alternatives included. A decision connects to every card it shaped, so reading any of them surfaces the reasoning.
Is Constellation open source?
Yes. It is licensed under the GPL, version 3 or later, with the source on GitHub and the package on npm.
Quick start
Get started
Install the CLI, start a plan, and point your agent at it over MCP.
# install the CLI and start a plan
$ npm install -g @magic-spells/constellation
$ constellation init
# connect Claude Code
$ claude mcp add constellation -- npx -y @magic-spells/constellation mcp
# or Codex CLI
$ codex mcp add constellation -- npx -y @magic-spells/constellation mcp