lpm-memory
Skill150 starsChanged 5 days agoMITView on GitHub
Shared project memory for AI coding agents: save or recall work-session logs in `~/.lpm/memory/<project>/<session>.md` so another agent CLI (Claude Code, Codex, Gemini) or a future session can continue the work by session name. Invoke with a session id (e.g. `/lpm-memory auth-refactor`) to continue that session. Use when the user asks to remember or save the session or progress, hand off work, record what was done, or recall/continue/resume/join a named work session. This is per-project memory shared between agent CLIs — distinct from any CLI's own built-in memory.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- mobile/AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- mobile/CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- android-cliSkill
- app-review-videoSkill
- app-store-releaseSkill
- app-store-screenshotsSkill
- edge-to-edgeSkill
- lesson-publishSkill
- lessonSkill
- navigation-3Skill
- short-dailySkill
- short-gameSkill
- short-publishSkill
- short-raceSkill
- shortSkill
- lpm-cliSkill
- lpm-configSkill
- lpmSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
No argument — Remember work already done in this conversation.
- Distinctive: line 25
Create the folder if missing.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project memory lives in one folder per project, shared by every agent CLI. Resolve that folder in this order:
$LPM_MEMORY_DIR, which lpm sets for every terminal it opens — always use it when set.~/.lpm/memory/<project>where<project>comes fromlpm project --json: itsparentName, or itsnamewhenparentNameis empty.- Without the
lpmCLI,~/.lpm/memory/<project>where<project>is$LPM_PROJECT_NAME, else the main checkout's folder name (basename "$(dirname "$(cd "$(git rev-parse --git-common-dir)" && pwd)")", so a Git worktree resolves to the repository it belongs to), else the working directory's folder name.
A duplicate of a project shares the original's memory — same codebase, and the copy is disposable — so never derive a folder of its own from a copy's name or path. <session> is a kebab-case slug for one workstream (e.g. auth-refactor); each file is both the current handoff state and the work history.
Invocation:
/lpm-memory <session-id>— Recall that session and continue it. Unknown id: offer close matches, or create it.- No argument — Remember work already done in this conversation; at the very start of one, pick or create the session instead.
- Either way, keep the memory current from then on without being asked: append a timeline entry and refresh
## Current stateafter each milestone and when the user wraps up.
Remember (save / hand off)
- Session slug: the user's name for it, else the one existing file that matches the work, else derive one and confirm it before writing.
Create the folder if missing. Seed a new file with:
# <Work title> ## Goal <one or two lines> ## Current state <where things stand, next steps, blockers> ## Timeline- Re-read the file right before writing — another agent may have saved meanwhile. If it changed since you last read it, keep their changes: append your timeline entry after theirs and fold both realities into
## Current state. - Rewrite
## Current stateto match reality now. Append a new entry at the end of
## Timeline. The timeline is strictly append-only: never edit or delete an existing entry — not even your own from earlier in the same conversation. Each entry covers only what happened since the previous save:### <YYYY-MM-DD HH:MM> — <agent> - Done: what shipped or changed, in outcome terms - Decided: choices made and why, including approaches tried and dropped - Learned: surprises and gotchas the next agent must know - Open: unresolved questions / blockers - Next: unfinished work / immediate next step<agent>= your CLI name (claude, codex, ...), local time. Drop empty lines; keep it brief.- Compaction — the one exception to append-only: when the timeline exceeds ten entries, condense the oldest into a single digest entry
### Archived through <YYYY-MM-DD>kept first in## Timeline; keep the newest five entries verbatim. Condense only — preserve every decision and gotcha that still matters, never reinterpret, and fold into the existing digest on later compactions.
Recall (continue / join)
- List the project memory folder's
*.md; read the named session, or show the list (name, last modified, goal line) and ask which one. ## Current stateis the source of truth; the newest timeline entries carry the freshest detail. Read those first — reach for older entries and the archive digest only when the work needs that history.- State the next step you inferred, confirm direction, then continue — and Remember at the next stopping point.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

