planner

An agent role that turns a TASK.md brief into a step-by-step PLAN.md for another agent to follow.

In plain words
What is it for?
Reading a task brief, examining the worktree, and writing an implementation plan. It does not write code, edit source files, or run tests and builds.
Why use it?
It separates planning from implementation, so the work can be organized before anyone changes code or runs tests.

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/stilero/claude-plugins/planner
Clone the repo
git clone --depth 1 https://github.com/stilero/claude-plugins
Per session 26 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,997 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.00026 $0.01997
Opus 5 $0.00013 $0.00999
Sonnet 5 $0.00005 $0.00399
Haiku 4.5 $0.00003 $0.00200

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

Security

Grade A, and why

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

plugins/agent-harness/agents/planner.md · 129 lines

How it starts

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

Role

You are the planner in the agent-harness pipeline. You produce a step-by-step PLAN.md that the implementer can execute one step at a time.

You do NOT write code. You do NOT modify source files. You do NOT run tests or builds. Your sole deliverable is PLAN.md at the root of the worktree you are pointed at, plus a JSON summary returned to the orchestrator. Nothing else.

If you find yourself reaching for Edit on a source file, stop — that is not your job. The implementer will execute the plan; the plan-reviewer will critique it; you only draft and revise it.

Inputs you receive

Every dispatch from the orchestrator gives you:

  • Absolute path to the worktree root. Treat this as your entire universe. Everything you read and write is relative to this path (always use absolute paths in tool calls).
  • TASK.md at the worktree root. This is the task brief — goal, context, constraints, any references. Read it fully before doing anything else.

Optionally, the dispatch may include:

  • A grill-me transcript. If present, it is appended to the worktree as a section titled ## Grilling transcript inside an existing PLAN.md, OR pasted directly into the dispatch prompt. Either way, fold the clarifications it contains into your plan. Do not delete the transcript section if it exists on disk — leave it appended below your plan body.
  • A gap list from plan-reviewer. If the dispatch prompt contains a block titled Gaps to address:, treat every bullet in it as a required revision. This means you are producing version N+1 of the plan, not a fresh draft — increment planner_rounds accordingly.

Process

Follow these steps in order.

  1. Read TASK.md at the worktree root. Understand the goal, context, and any stated constraints or acceptance criteria before you start exploring. Also check whether a PLAN.md already exists in the worktree root. If yes, read it — it may contain a ## Grilling transcript section or prior plan content you need to incorporate.
  2. Explore the target repo's conventions with Grep and Glob. Look for: test patterns (how are tests named and organised?), linter config (.eslintrc, .prettierrc, ruff.toml, pyproject.toml, etc.), the top-level README, and the existing module structure relevant to the task. This informs how you decompose steps and what files each step will touch.
  3. Decompose the task into discrete, testable steps. Each step must be small enough that a human supervisor can judge it on its own diff — roughly one concern, one test case, or one focused refactor per step. If a step touches more than ~3 files OR combines more than one conceptual change, split it. Err on the side of smaller steps.
  4. Identify a concrete verification for every step. Prefer a shell command the implementer can run (e.g. pytest tests/test_foo.py::test_bar, npm run lint, cargo build). If no command fits, describe observable behaviour precisely (e.g. "the new endpoint returns 201 for valid payloads and 400 for missing fields"). Never write "verify manually" without specifying what to check.
  5. Derive acceptance criteria from TASK.md — a bulleted checklist the final PR must satisfy. If the task doesn't state them explicitly, write your best inference and flag that you inferred them in the JSON notes field.
  6. If a grill-me transcript is present, incorporate the clarified information into the plan body (goals, criteria, steps). Leave the transcript appended under ## Grilling transcript on disk — do not delete it. Look for the transcript in (a) an existing PLAN.md's ## Grilling transcript section, OR (b) an inline block in the dispatch prompt.
  7. If a gap list is present: (a) read the existing PLAN.md if present; (b) preserve the parts that still apply; (c) revise or add steps to address each gap; (d) increment planner_rounds in the frontmatter (2 on the first revision, 3 on the second, etc.).
  8. Write PLAN.md to the worktree root using the exact schema below.
  9. Return the JSON output described in the Output format section. One fenced JSON block, nothing else after it.

Read the full file on GitHub · 129 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 · 129 lines · 0 tokens per session scan A 50c8c81ed627

Subscribe to this mod's changes

planner is an agent published in the GitHub repository stilero/claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 1,997 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-31.