/openltm:Ltmfrom openltm
OpenLTM long-term memory skill: recall, learn, context, graph, relate, forget, proposals, and collection tools.
Ships in openltm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The one memory skill. Tool names, ritual, and categories live here so every caller stays consistent. Curation (pending proposals, stale flags, duplicates) is the MemoryReview skill; mining git history is GitLearn.
Plugin openltm, MCP server key memory: in Claude Code each tool is mcp__plugin_openltm_memory__<name>.
| Tool | Call when |
|---|---|
recall | Before non-trivial work — natural-language query; surfaces decisions, gotchas, patterns. |
learn | After a durable insight. Always pass a short title; add files to anchor it to code, or project for knowledge that only holds in this repo. With neither it is global (project_scope: null in the reply). Pass origin: owner-statement only when the user said it directly; otherwise leave the default agent-observation, or external-source for docs and tool output. |
context | Session start / project switch — the goal, decisions, gotchas and recent progress, plus high-importance global (≥ 4) and project memories. |
context_items | List the project's goal / decision / progress / gotcha rows. |
context_add | {type: goal|decision|gotcha|progress, content, project?} — record project state (a new goal replaces the old one). |
graph | Trace decision chains — pass memory_ids from recall. |
relate | Link two memories (supports, contradicts, refines, depends_on, related_to, supersedes). |
stale | {project?} — memories a commit flagged stale, with the reason. |
revalidate | Clear a stale flag — code changed but the memory is still true. |
forget | Delete a wrong or obsolete memory. Irreversible — confirm with the user first. |
proposals | {action: list|accept|reject, session_id?, index?} — memories proposed at session end. |
admin_audit | A memory's provenance / write history. |
stats | {project?} — counts by status, category and importance, plus stale, private, embedded and pending totals. embedded: 0 means recall is full-text only. |
collection | {action: list|describe|define|evolve|archive} — structured types (servers, releases, endpoints…). list before define; reuse or evolve (additive only) an existing type instead of a near-duplicate. |
record | {action: put|get|query|archive, collection} — store one validated record per thing (put upserts by the key field, merge: true changes only given fields); query by field (where: [{field, op, value}]) or text. |
project is optional on context, context_items, and context_add — it defaults to the current project. ltm_* / openltm_* tool names belong to the OpenCode, Pi, OpenClaw, and Hermes adapters; on Claude Code use the names above.
recall with a natural-language question ("how do we handle auth tokens"), not bare keywords. Skip it for trivial one-liners.graph from the top recall hits.<recalled-memory> block for this reason.learn genuinely new, durable insights (structured facts go to record, not prose — see Where it goes); relate them to what they build on. Skip facts derivable from the code or git log. Write every memory and context item in English, even when the conversation is in another language.| It is… | Store with |
|---|---|
| A reusable rule, gotcha, pattern, or decision worth keeping across sessions | learn |
| A must-never-forget rule (injected every session, never decays) | learn with importance: 5 |
| This project's current goal, or a project-local decision / gotcha | context_add |
| Facts with a fixed shape you will look up by field (hosts and ports, releases and their status, endpoints) | record put into a collection. Check collection list first; define a new type only when none fits. One record per thing; link the explaining memory with memory_id |
| A session work log | nothing — the Stop hook records progress |
learn takes one: preference (conventions/style) · architecture (design decisions) · gotcha (pitfalls) · pattern (reusable solutions) · workflow (process) · constraint (must-follow rules). Importance 1–5, default 3; gotchas usually 4.
You do not need to repeat these by hand:
recall and prompt recall. If that block is present, skip a redundant context call.recall for a deeper or explicit dig (a different query, a category, a past decision the prompt did not name).progress row. SessionEnd proposes memories (never auto-writes) — review them with proposals.git commit flags memories anchored to the touched files as stale; recall downranks them until revalidated.| Phase | Before | During | After |
|---|---|---|---|
| Spec | recall · context | explore code | learn · relate |
| Plan | recall · graph · context (the ltm-planner agent runs these read-only itself) | design steps | learn the decision · relate to the spec |
If the main thread already ran recall, it may pass the results to ltm-planner as a ### Pre-Plan Context block; the agent uses that first.
/openltm:* slash commands.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rohirik/openltm --plugin openltm4 skills in this plugin
/GitLearnMines durable LTM memories from past git commits through the git-learner agent (no API key needed). Use when the user says 'learn from our git history', 'mine the last N commits', 'backfill memories since <date>', 'onboard this repo into LTM', or wants to harvest patterns after a sprint./MemoryReviewCuration pass over OpenLTM memory: triage pending session-end proposals, stale-flagged memories, conflicting or superseded entries, and low-value duplicates, then accept, revalidate, relate, or forget them with the user's approval. Use when the user says 'review memories', 'clean up memory', 'curate LTM', 'what's pending', 'any memory proposals', 'prune stale memories', or after a refactor that may have invalidated what LTM knows./SpecWrites a grounded spec: recalls prior decisions from LTM, explores the affected code, then writes testable acceptance criteria to specs/<feature>.md. Use when the user asks to 'spec this', 'write a spec', 'define what to build', or 'write requirements / acceptance criteria' before planning or implementing a feature or bug fix.Other plugins' skills for the same job