Skip to content

Project memory for coding agents ​

A workspace can hold what a coding agent needs to know about a project, so every session in a repository starts knowing it: what the project is, what the team has decided, what is still missing, what you have told the agent about how you work, and the skills written for it.

It works with Claude Code, through the same plugin that keeps coding sessions, and needs the CodeKasten app installed in the workspace. The sidebar then has Projects (agents), Skills, Gaps, Facts and Memory.

What is kept ​

Who sees itVersionedHolds
Project profilethe workspaceyes, on the branchone per repository: its name, default branch, stack and commands
Skillthe workspaceyes, reviewed through a mergeinstructions for a kind of task, written like a Document
Factthe workspaceno, livesomething that holds for the project: a convention, a decision and why, how a thing works
Gapthe workspaceno, livesomething missing or wrong that nobody is fixing now. Open, in progress or closed
Memoryyou aloneno, livehow you work and what you asked the agent to do or not do

Facts, gaps and memory are not part of a branch: they are there at once, never committed or merged, and a member of the workspace can change a fact or a gap even while main is protected. A guest sees none of them, and a viewer reads but does not write. Memory is read by nobody but its person.

What an agent writes is a proposal ​

A fact or a gap reaches every session of everybody in the workspace, so what an agent writes there is a proposal until a person accepts it: a new fact or gap is in nobody's briefing yet, and an agent's change to one, or its forgetting of one, waits beside it while the row stays as it was. The same holds for a feature's log entries. What you write yourself is kept as you write it.

When a session ends with proposals left, its person finds one item in the Inbox that opens them: Accept all, Drop all, or one by one. A member can also decide them where they appear: under a project's Briefing tab, and when merging a session's branch. What nobody decides in 30 days is dropped. An agent never accepts its own.

A fact can say which files it is about and the commit it was last seen to hold at (code_paths, confirmed_at). When those files have changed since, the next session's briefing marks it check, so the agent looks before relying on it.

Two sessions, one record ​

When two of your sessions - or two people's - change the same record of main, each on its own branch, the first to change it holds it (a lease, for an hour, renewed while it works); the other is told to wait, and can wait for it to be given back. Taking it brings main's copy of the record. A merge is refused for a record written under a lease that has since ended or that somebody changed meanwhile: the session takes it again and redoes the change, so a merge never stops on a conflict between agents.

A session's branch is yours ​

The branch a session opens on its first change is yours alone: nobody else in the workspace sees it - an admin neither - and no other agent can put a change in it. When you ask for a merge, the people asked can read it, to review it. Merged, it is closed; one left unmerged for 14 days is asked about at your next session and closed three days later (its commits stay).

A skill is a Document: it has the Document's editor and page, and it lives on a branch. An agent can only propose one, which is made on its session's branch with the status Proposed. A person reads it and approves it by merging the branch into a protected branch such as main: the merge sets every proposed skill it brings to Approved. A merge into a branch that is not protected leaves them proposed. A skill can also be approved by hand, by setting its Status to Approved at the top of its page (an admin or owner can do that on a protected main; anybody else on a branch of their own, merged afterwards). Retired takes a skill out of the sessions without deleting it.

Each kind shows what it is at the top of its page: a gap its Status (Open, In progress, Closed), Severity (Low, Medium, High), area and project; a fact its status (Active, Retired) and project; a memory its Kind (About the person, Feedback, Project, Reference). Click one to change it. The text a fact, a gap or a memory says is the page itself.

What a session starts with ​

When a session begins in a repository that has a .codekasten.json, the plugin asks the workspace for a briefing and adds it to the session: the project's profile, its open gaps, your memory, the names of the skills that apply, and its facts, in at most 9,000 characters (Claude Code takes at most 10,000 from a plugin at the start of a session). When there are many facts each keeps its line and their texts are shortened; the agent finds the rest with search_knowledge. It also writes the approved skills into the repository as .claude/skills/ck-<name>/SKILL.md, which Claude Code finds like any skill. Those files belong to CodeKasten: they are kept out of git, written again at every start, and the plugin changes or removes only the ones it wrote. One you edit on your machine is kept as you left it.

A repository can make CodeKasten the home of all its skills: with "skills": { "sync": true } in .codekasten.json (and "ignore": [...] for any to leave out), the plugin sends the repository's own skills up at each start, in the background. A skill CodeKasten has not got is proposed; a change to one it has, made in the repository or in a ck- file, becomes a revision on the session's branch. You approve either by merging, as with any proposal. Nothing that looks like a secret is sent, and nothing is ever retired from the repository's side. Once a skill is approved and the same as the repository's copy, the plugin deletes the copy and tells you, so you can commit that. Without the setting, nothing is sent.

A project's page has two extra tabs. Briefing shows a preview of what the agent is told. Connect Claude Code has the .codekasten.json for the repository and the steps to connect it.

What the agent does ​

The agent keeps these current through the workspace's MCP server: get_briefing, search_knowledge, save_memory, save_fact, gap, forget_knowledge, list_skills, get_skill and propose_skill. It keeps your memory on its own; facts, gaps and skills it only proposes. In Claude Code the plugin adds /remember, /gap and /propose-skill.

A key that is read only can read all of this and change none of it.

Not there yet ​

A board for gaps (the list groups them by status), reports over facts and gaps, and mirroring Claude Code's own local memory folder.

Further reading ​

Every picture on this site was saved by a test that had just seen the feature work.