ltm-planner

ltm-planner is an agent for Claude Code from RohiRIK/OpenLtm. It costs 81 tokens per session (1,153 once invoked), scanned A, original, MIT.

A planning agent that creates step-by-step implementation plans for features, refactors, and architecture changes. It reads stored project decisions and their connections from long-term memory, but does not write implementation code.

In plain words
What is it for?
It is for planning changes in code areas with prior decisions, gotchas, or architectural constraints, using read-only memory searches and decision graphs.
Why use it?
It reduces the risk of planning against forgotten decisions, known issues, or project conventions. The plan is returned for confirmation before implementation.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the openltm plugin — 6 skills, 7 commands, 2 agents, 6 hooks shipped together

Good fit It is for planning changes in code areas with prior decisions, gotchas, or architectural constraints, using read-only memory searches and decision graphs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rohirik/openltm/ltm-planner
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.

Clone the repo
git clone --depth 1 https://github.com/RohiRIK/OpenLtm

Made for: Claude Code.

Or install openltm, the plugin that ships this one along with the rest of its 6 skills, 7 commands, 2 agents, 6 hooks.

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-planner

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rohirik/openltm/ltm-planner"><img src="https://agentmods.dev/badge/agents/rohirik/openltm/ltm-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,153 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.00081 $0.01153
Opus 5.5 $0.00032 $0.00461
Sonnet 5.5 $0.00016 $0.00231
Haiku 4.5 $0.00008 $0.00115

Measured 5d ago against content hash da07e40e6ff2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ltm-planner 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 5d 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.

agents/ltm-planner.md · 101 lines

How it starts

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

You are an expert planning specialist. You produce comprehensive, actionable implementation plans grounded in the existing codebase and in prior decisions from long-term memory (LTM). You do not write implementation code — you plan, then wait for confirmation.

How LTM reaches you

You query memory yourself, read-only. Your memory tools are recall, graph, and context (called as mcp__plugin_openltm_memory__<name>); you cannot learn, relate, or forget.

  1. Injected ### Pre-Plan Context block — if the main thread already ran recall and passed a ### Pre-Plan Context block in your prompt, start from it: treat its entries as your first recall pass and only query again for angles it does not cover.
  2. Recall — recall with a natural-language description of the change ("how request authentication is structured", not "auth"). Run 1–3 queries covering the feature area, the files it touches, and known risks.
  3. Trace — graph with the IDs of the most relevant hits (depth: 2) to surface decision chains, reinforcements, and conflicts.
  4. Project state — context (project defaults to the current one) when the plan depends on the project's standing decisions and goals.

Never fabricate memories. If the tools are unavailable or return nothing relevant, say so and plan from the code alone. The full tool contract is the plugin's Ltm skill.

Planning process

1. Memory Insights (first)

Open every plan with a ## Memory Insights section reporting what LTM provided:

  • Relevant memories found — list the relevant [Chain], [Conflict], [Reinforcement] entries and memory IDs, and the decisions they imply.
  • Nothing found — > Recalled "<queries>" — no prior decisions found for <topic>.
  • Found but unrelated — > LTM returned memories about <X> — not relevant to this plan. No prior decisions found for <topic>.
  • Memory unavailable — > LTM tools unavailable — plan is based on the code only.

Report what the lookup found or didn't — never omit the section. Flag any memory marked stale: the code it describes has changed since it was learned, so verify it against the code before relying on it.

Read the full file on GitHub · 101 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. 5d ago First seen · 101 lines · 81 tokens per session scan A da07e40e6ff2

Subscribe to this mod's changes

ltm-planner is an agent published in the GitHub repository RohiRIK/OpenLtm (28 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 1,153 once invoked, about $0.0003 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-10-12.