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 agentmods add skills/gug007/lpm/lpm-memorynpx 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.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00137 | $0.01001 |
| Opus 5 | $0.00068 | $0.00500 |
| Sonnet 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 4d 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.
- 4d ago First seen · 61 lines · 137 tokens per session scan A 1fa1e23d9f27
lpm-memory is a skill published in the GitHub repository gug007/lpm (158 stars, last pushed today), licensed MIT. It adds 137 tokens to every session and 1,001 once invoked, about $0.0007 per session on Opus 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
performance
CLI performance optimization - startup time, memory usage, token savings benchmarking.
context-fundamentals
This skill should be used when the user asks to "understand context", "explain context windows", "design agent architecture", "debug context issues", "optimize context usage", or discusses context components, attention mechanics, progressive disclosure, or context budgeting. Provides foundational understanding of…
moai-foundation-core
Provides MoAI-ADK foundational principles including TRUST 5 quality framework, SPEC-First DDD methodology, delegation patterns, progressive disclosure, agent catalog reference, and token budget management (absorbed from moai-foundation-context). Use when referencing TRUST 5 gates, SPEC workflow, or context window…
oma-orchestrator
Automated multi-agent orchestrator that spawns CLI subagents in parallel, coordinates via MCP Memory, and monitors progress. Use for orchestration, parallel execution, and automated multi-agent workflows.
moai-foundation-cc
Canonical Claude Code authoring kit covering Skills, sub-agents, plugins, slash commands, hooks, memory, settings, sandboxing, headless mode, and advanced agent patterns. Use when creating Claude Code extensions or configuring Claude Code features.
trellis-session-insight
Reach into past AI conversation history through the trellis mem CLI. Use whenever the user asks 'how did we solve X last time', 'have we discussed this before', 'what was the decision on X', 'remind me what we did in this task', '上次怎么解的', '之前讨论过吗', '想起一段对话', or when starting a brainstorm that overlaps prior work…