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.
r/cursor
Agent learns my codebase during a session, session ends, next session it's back to square one.
r/cursor

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.

  1. 01

    Init

    npx leftoff-ai init adds a small .handoff folder and points both agents at it. Run it again whenever you want. Notes you already wrote stay put.

  2. 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.

  3. 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, or node .handoff/leftoff.mjs save, status, and tidy.

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.

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.