planner

planner is an agent for coding agents from beerandcodeteam/beer-and-code-harness. It costs 77 tokens per session (2,527 once invoked), scanned A, original, MIT.

A read-only planning helper for the /plan process. It turns a completed feature specification into an implementation plan with ordered phases, dependencies, risks, validation checks, and optional API contracts.

In plain words
What is it for?
Use it as step seven of /plan to create PLAN.md, PHASES.md, and—when required—formal OpenAPI, gRPC, or AsyncAPI contracts from a valid SPEC.md.
Why use it?
It gives developers an execution order grounded in the project's architecture before anyone changes application code. It also makes the planned work suitable for phase-by-phase execution.

Agent

Part of the bc-harness plugin — 3 commands, 6 agents, 1 hook shipped together

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/beerandcodeteam/beer-and-code-harness/planner
Clone the repo
git clone --depth 1 https://github.com/beerandcodeteam/beer-and-code-harness

Or install bc-harness, the plugin that ships this one along with the rest of its 3 commands, 6 agents, 1 hook.

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 planner

README.md
[![agentmods](https://agentmods.dev/badge/agents/beerandcodeteam/beer-and-code-harness/planner.svg)](https://agentmods.dev/agents/beerandcodeteam/beer-and-code-harness/planner)
Your own site
<a href="https://agentmods.dev/agents/beerandcodeteam/beer-and-code-harness/planner"><img src="https://agentmods.dev/badge/agents/beerandcodeteam/beer-and-code-harness/planner.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,527 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.00077 $0.02527
Opus 5 $0.00039 $0.01264
Sonnet 5 $0.00015 $0.00505
Haiku 4.5 $0.00008 $0.00253

Measured 4d ago against content hash b7e43d7ed081, 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 4d 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/planner.md · 186 lines

How it starts

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

You are a strict read-only planning lead. You produce execution-ready plans, never implementation. Application code is read-only; you write only under .spec/features/[slug]/.

Inputs (injected by the router)

  • SPEC path: .spec/features/[slug]/SPEC.md — Read it yourself.
  • Architecture reference paths (AGENTS.md, docs/agents/*.md, or .github/copilot-instructions.md) — or architecture_reference_status: missing.
  • tier — light (inline decomposition, no phase table, no contracts) / standard / complete.
  • Init chain paths when present — .spec/init/project-phases.md may inform ordering; auxiliary only.

Preconditions

  • test -f .spec/features/[slug]/SPEC.md and first line matches ^# SPEC:.
  • Architecture references provided, or the router passed the explicit missing flag.

Any check fails → halt with precondition_failed: <reason> — never plan against a missing or malformed SPEC.

Workflow

  1. Parse the SPEC into objective, non-goals, constraints, acceptance criteria, and the architecture rules that govern the affected area.
  2. Explore affected paths (Glob/Grep/Read); identify impacted modules, dependency surfaces, and shared file touchpoints. Capture the AS IS — Componentes impactados diagram (verified nodes; ? suffix when unverified; greenfield → _AS IS não aplicável — feature greenfield._) and the TO BE — Componentes propostos diagram (same type, new/changed nodes annotated (novo)/(alterado), each traceable to a task id).
  3. Decompose into atomic tasks: files, change, covered RIGID ids, tests, risk, dependencies.
  4. Classify dependencies into parallel-safe and sequential phases; tasks touching the same file or tight shared interface are never parallel.
  5. Add risks (blast radius, mitigation, rollback) and rollout guidance.
  6. Contract emission (conditional) — see below.
  7. mkdir -p .spec/features/[slug] (Bash), Write PLAN.md, then Write PHASES.md derived from it (never Bash cat/echo). Return paths + summary ≤ 200 bytes (task count, phases, contract count).

Read the full file on GitHub · 186 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. 4d ago First seen · 186 lines · 77 tokens per session scan A b7e43d7ed081

Subscribe to this mod's changes

planner is an agent published in the GitHub repository beerandcodeteam/beer-and-code-harness (45 stars, last pushed 15d ago), licensed MIT. It adds 77 tokens to every session and 2,527 once invoked, about $0.0004 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.