Repository navigation
repo-cortex: what we're building and why #26
alanbsmith
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This page says what repo-cortex is for, what it's trying to do and how it fits together. Use it to check a plan, an issue or a pull request. It holds what changes rarely. The plan and status live elsewhere, listed at the end.
To try it, start with the README.
What it's for
The code and the project tracker say what and when. They rarely say why. Each new agent session, and each new teammate, has to be told again why the project is built the way it is.
A cortex is where the why goes: a small
cortex/folder of plain Markdown in the repo. It holds decisions and their reasons, open questions, why each milestone exists, and where things stand now. It's read on demand, when someone is planning or asking why.Mission
repo-cortex builds a small structure around the context behind your project, connecting what already exists and making its decisions and terms explicit, so a person or agent can start work without being re-briefed.
Who it's for
Goals
A cortex should:
Principles
How the goals are met:
proposed. Only the owner accepts or rejects it (decision 0011).repo-cortex checkchecks its shape and freshness.Out of scope
Things you might expect repo-cortex to do, that it doesn't:
How it fits together
Every cortex is custom in what it says and the same in how it's built. The package has two parts (decision 0003): a CLI for the shape, and a skill for the content.
The CLI: what's the same in every repo
initcheckdecisionlistsnippetskillbuild-cortexskillThe check stops at what every cortex shares, such as front matter, links, the index and decision numbering (decision 0005). The README has the full list. The published package runs on Node 24 or later (decision 0010).
The skill: what's different in every repo
A script can't know why a repo made a choice. The
build-cortexskill surveys the repo, interviews the owner, and writes the decisions and the map of where things live. It wires the cortex into CLAUDE.md or AGENTS.md and CI. Then it runs a cold read: a fresh subagent with no context has to answer the owner's planning questions from the cortex. The skill calls the CLI.The cortex format: what you keep
Every file starts with front matter: a one-line
summary:, so a session can choose a file without opening it, and anupdated:date. A decision also has a status and says who decided it. The folder can have another name.Where the plan and status live
cortex/now.md. Check itsupdated:date before you trust it.cortex/milestones/cortex/decisions/cortex/open-questions.mdAll reactions