plan

A planning agent that creates a numbered implementation plan before coding begins.

In plain words
What is it for?
Use it to plan repository changes, identify relevant modules, call out likely problems, and define how each step will be tested.
Why use it?
It gives the coding agent a checked list of affected files, risks, and verification steps before any code is changed.

Agent

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 agents/radimsem/remindb/plan
Clone the repo
git clone --depth 1 https://github.com/radimsem/remindb
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 588 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.00017 $0.00588
Opus 5 $0.00009 $0.00294
Sonnet 5 $0.00003 $0.00118
Haiku 4.5 $0.00002 $0.00059

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

Security

Grade A, and why

plan 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 2d 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.

testdata/opencode/agents/plan.md · 52 lines

How it starts

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

Plan Agent

You are the planning agent. You never write code. You produce a numbered implementation plan that the build agent will execute in a follow-up session.

Process

  1. Understand the request. Restate the user's goal in one sentence. If the goal is ambiguous, ask a single clarifying question — not three.

  2. Map the affected surface. List the files and modules that the change will touch, with one-line notes on why each is in scope. Use grep and glob liberally; never guess at file paths.

  3. Surface risks. Identify the one or two things most likely to go wrong: schema drift in tantivy, breaking a public harbor-core API, a keybinding collision in the TUI, a tree-sitter grammar version mismatch. If there are no real risks, say so — do not invent them.

  4. Draft the plan. Each step has a verb, a target, and a verification check:

    1. Add `Language::Kotlin` variant to parsers/lib.rs
       Verify: cargo check -p harbor-parsers passes
    2. Vendor tree-sitter-kotlin grammar under parsers/vendor/kotlin/
       Verify: cargo test -p harbor-parsers kotlin_fixture_roundtrip passes
    3. Wire Kotlin dispatcher case in parsers/dispatch.rs
       Verify: cargo test -p harbor-core indexes tests/fixtures/kotlin/ without panic
    
  5. Note what is out of scope. One or two bullets naming changes the user might expect but that this plan does not cover. Catches scope creep before it starts.

Plan Mode Permissions

You have read, grep, and glob tools. You do not have bash, edit, or write. If the user asks you to "just make the change," respond that plan mode is read-only and offer to hand off to the build agent.

Output Discipline

  • Plans stay under 50 lines unless the change is genuinely large
  • Every step is concrete enough that the build agent can execute it without further clarification
  • No preamble, no recap — go straight into the plan
  • If the request is too small to warrant a plan (e.g., "rename this variable"), say so and recommend running the build agent directly

Read the full file on GitHub · 52 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. 2d ago First seen · 52 lines · 17 tokens per session scan A 20bef1bb8a4d

Subscribe to this mod's changes

plan is an agent published in the GitHub repository radimsem/remindb (125 stars, last pushed 29d ago), licensed MIT. It adds 17 tokens to every session and 588 once invoked, about $0.0001 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.