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

Written for Claude Code and Codex: argument-hint in frontmatter, but also agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to save or recall notes for a named workstream, such as an authentication refactor, across Claude Code, Codex, Gemini, or future sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gug007/lpm/lpm-memory
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.

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/github.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/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.

agentmods 80×15 button for lpm-memory

Your own site · 80×15
<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>
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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.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

Measured 1mo ago against content hash 1fa1e23d9f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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

Related

Other skills, from other repositories