ltm:compact

ltm:compact is a skill for Claude Code from LaserPhaser/claude-ltm. It costs 17 tokens per session (485 once invoked), scanned A, original, MIT.

A session review that records important technical decisions in a project's .memory/DECISIONS.md file. It can also update project status and link to longer decision notes.

In plain words
What is it for?
Capturing architecture choices, library selections, business rules, blockers, and changes made during a coding session.
Why use it?
It prevents decisions, rejected approaches, constraints, and open questions from being lost when work is handed to another developer.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-ltm plugin — 3 skills shipped together

Good fit Capturing architecture choices, library selections, business rules, blockers, and changes made during a coding session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laserphaser/claude-ltm/ltm-compact
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 LaserPhaser/claude-ltm --skill ltm-compact
Clone the repo
git clone --depth 1 https://github.com/LaserPhaser/claude-ltm

Made for: Claude Code.

Or install claude-ltm, the plugin that ships this one along with the rest of its 3 skills.

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 ltm:compact

README.md
[![agentmods](https://agentmods.dev/badge/skills/laserphaser/claude-ltm/ltm-compact/github.svg)](https://agentmods.dev/skills/laserphaser/claude-ltm/ltm-compact)
Your own site
<a href="https://agentmods.dev/skills/laserphaser/claude-ltm/ltm-compact"><img src="https://agentmods.dev/badge/skills/laserphaser/claude-ltm/ltm-compact/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 ltm:compact

Your own site · 80×15
<a href="https://agentmods.dev/skills/laserphaser/claude-ltm/ltm-compact"><img src="https://agentmods.dev/badge/skills/laserphaser/claude-ltm/ltm-compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 485 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.
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.00017 $0.00485
Opus 5.5 $0.00007 $0.00194
Sonnet 5.5 $0.00003 $0.00097
Haiku 4.5 $0.00002 $0.00049

Measured 3mo ago against content hash 12bfbecb62b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ltm:compact 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 3mo 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.

skills/ltm-compact/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Compact — Extract Decisions to Memory

Perform a compact pass: review everything that happened in this session and capture any significant decisions that aren't yet in .memory/DECISIONS.md.

What to do

  1. Read .memory/DECISIONS.md to understand what's already recorded.

  2. Review this session's work. Look for:

    • Architecture or design choices that were made
    • Technology or library selections
    • Approaches that were tried and rejected
    • Business logic decisions or constraints discovered
    • Changes to previously recorded decisions
    • Current project status (focus, blockers, open questions)
  3. For each unrecorded decision:

    • "Significant" = something a teammate joining next week would need to know.
    • Add a ### heading with today's date and up to ~10 lines of context.
    • If the decision is truly complex (>10 lines needed), create a detail file in .memory/details/YYYY-MM-DD-<topic>.md and link to it.
    • If a prior decision was superseded, update it in-place with what changed and why. Add a Changelog entry.
    • Check for duplicates — update existing entries rather than adding new ones.
  4. Update the ## Status section with current focus, blockers, and open questions.

  5. Update the > Auto-maintained by claude-ltm. Last updated: date.

  6. Report to the user what was captured (or that nothing new was found).

Detail file format

When creating a detail file in .memory/details/, use this structure:

---
decision: <title>
date: YYYY-MM-DD
status: ACTIVE
---

<!-- Valid status values: ACTIVE, SUPERSEDED -->

## Context
[Why this decision was needed — 2-3 sentences]

## Decision
[What was chosen and why — concise]

## Alternatives Considered
- Option B: [why rejected]

## Impact
- [Key consequence 1]

Guidelines

  • Keep entries concise. This is a decision log, not documentation.
  • Routine code changes are NOT decisions. Choosing a database IS.
  • When in doubt about significance, record it — pruning is easier than recreating.

Read the full file on GitHub · 69 lines

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. 3mo ago First seen · 69 lines · 17 tokens per session scan A 12bfbecb62b2

Subscribe to this mod's changes

ltm:compact is a skill published in the GitHub repository LaserPhaser/claude-ltm (4 stars, last pushed 7mo ago), licensed MIT. It adds 17 tokens to every session and 485 once invoked, about $0.0001 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-31.

Related

ltm:compact compared with skills from other repositories

ltm:compact next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ltm:compactLaserPhaser/claude-ltmSkill47mo agoMITA17Claude Code
memory-mapshandar/memory-mapSkill216d agoMITA195Claude Code
memory-pruneshandar/memory-mapSkill216d agoMITA147Claude Code
memory-recallshandar/memory-mapSkill216d agoMITA201Claude Code
gather-contextt1djani/servoSkill15mo agoMITA52Claude Code
mem0-climem0ai/mem0Skill70k2d agoApache-2.0A177Claude Code, Codex
mem0-vercel-ai-sdkmem0ai/mem0Skill70k2d agoApache-2.0A146Claude Code, Codex