Project memory for coding agents
Stop re-explainingyour repoevery new chat.
Leftoff keeps a short memory in the repo. Cursor and Claude Code read it when a session starts and write it back when the session ends, so the next chat picks up the work instead of the tour.
npx leftoff-ai init
No account. No API key. Nothing to configure. It works offline after init. leftoff-ai on npm
After a point I'm not coding anymore, I'm doing context maintenance.
Agent learns my codebase during a session, session ends, next session it's back to square one.
What goes missing
The agent learns the repo, then forgets it on purpose.
A long session teaches the model your stack, the decision you already made, and the bug you are in the middle of. Close the chat and that judgment is gone. The files are still there. The reason you touched them is not.
People cope by keeping DECISIONS.md and session notes by hand. Then the work becomes maintaining those notes. Leftoff is that notebook, with the wiring so Cursor and Claude Code actually open it.
Three steps
A memory the next session can trust.
-
01
Init
npx leftoff-ai initadds a small.handofffolder and points both agents at it. Run it again whenever you want. Notes you already wrote stay put. -
02
Start
A new session reads what to do next, what the project is, which decisions are settled, and the last few sessions. It does not get the archive, and it does not get a novel.
-
03
Leave
When the task is done, or when the context is about to be compacted, the agent writes the memory back. You can also run
/leftoff, ornode .handoff/leftoff.mjs save,status, andtidy.
Four short files
Small enough to reread every session.
Old sessions and decisions roll into .handoff/archive. The archive stays in the repo and stays out of the prompt.
-
NEXT.mdStart here. The current plan, what is blocked, and what not to redo.
40 lines -
BRIEF.mdWhat this repo is, the stack, the layout, how to run it.
100 lines -
DECISIONS.mdChoices that would be costly to reverse, with the option you rejected.
15 entries -
SESSIONS.mdThe last few sessions, a handful of lines each. Then they compress.
8 entries
Later
The CLI stays free. Pro is for the part git is bad at.
Sync notes across machines without a commit. Search the archive ("why did we drop Prisma?"). Merge two sessions that end at the same time. Keep a private layer out of the repo.
The CLI stays free. This list is only a note for when Pro exists.