Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add gug007/lpm --skill lpm-memorygit clone --depth 1 https://github.com/gug007/lpmWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/gug007/lpm/lpm-memory)<a href="https://agentmods.dev/skills/gug007/lpm/lpm-memory"><img src="https://agentmods.dev/badge/skills/gug007/lpm/lpm-memory/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/gug007/lpm/lpm-memory"><img src="https://agentmods.dev/badge/skills/gug007/lpm/lpm-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00137 | $0.01001 |
| Opus 5.5 | $0.00055 | $0.00400 |
| Sonnet 5.5 | $0.00027 | $0.00200 |
| Haiku 4.5 | $0.00014 | $0.00100 |
Grade A, and why
lpm-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 61 lines · 137 tokens per session scan A 1fa1e23d9f27
lpm-memory is a skill published in the GitHub repository gug007/lpm (154 stars, last pushed today), licensed MIT. It adds 137 tokens to every session and 1,001 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
session-flow
Reorient in the current Claude Code session with an evidence-backed map of its goal, pivots, outcomes, current step, and open decisions.
wiki
LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model).
remember
Review reusable project knowledge and decide what belongs in project memory, notepad, or durable docs.
moai-foundation-context
Manages context window optimization, session state persistence, and token budget allocation for multi-agent workflows. Use for token budget management, context limits, or session handoff across agents.
forgetful-cli-setup
Set up the Forgetful CLI and connect from a terminal — install, local or remote mode, auth, and verification. Use when connecting a human or headless agent via shell, wiring CI with token auth, or operating a local server (serve, database selection, feature flags, re-embedding). Also covers the machine contract…
vsearch
You CAN search other sessions' conversations. This is a full-text search across every vlx-term session on this machine or within one specified session, so a past discussion is findable even when nobody remembers which session held it. Use it whenever the user gestures at earlier work — "last time", "we solved this…