lpm-memory

lpm-memory is a skill for Claude Code, Codex from gug007/lpm. It costs 137 tokens per session (1,001 once invoked), scanned A, original, MIT.

Shared project memory stored as Markdown files so different coding-agent tools or later sessions can continue earlier work.

In plain words
What is it for?
Use it to save or recall notes for a named workstream, such as an authentication refactor, across Claude Code, Codex, Gemini, or future sessions.
Why use it?
It prevents important work-session context from being lost when changing agents or returning to a project.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/gug007/lpm/lpm-memory
Any agent
npx skills add gug007/lpm --skill lpm-memory
Clone the repo
git clone --depth 1 https://github.com/gug007/lpm

Made for: Claude Code, Codex.

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

agentmods badge for lpm-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/gug007/lpm/lpm-memory.svg)](https://agentmods.dev/skills/gug007/lpm/lpm-memory)
Your own site
<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>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,001 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 1fa1e23d9f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

lpm-memory/SKILL.md · 61 lines

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:

  1. $LPM_MEMORY_DIR, which lpm sets for every terminal it opens — always use it when set.
  2. ~/.lpm/memory/<project> where <project> comes from lpm project --json: its parentName, or its name when parentName is empty.
  3. Without the lpm CLI, ~/.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 state after each milestone and when the user wraps up.

Remember (save / hand off)

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

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

  4. Rewrite ## Current state to match reality now.

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

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

Read the full file on GitHub · 61 lines

Files

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.

Changes

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.

  1. 4d ago First seen · 61 lines · 137 tokens per session scan A 1fa1e23d9f27

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

performance

CLI performance optimization - startup time, memory usage, token savings benchmarking.

rtk-ai/rtk · 13 tokens

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…

foryourhealth111-pixel/Vibe-Skills · 69 tokens

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…

modu-ai/moai-adk · 68 tokens

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.

first-fluke/oh-my-agent · 43 tokens

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.

modu-ai/moai-adk · 55 tokens

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…

mindfold-ai/Trellis · 140 tokens