replanner

replanner is an agent for Claude Code from nguyenthienthanh/aura-frog. It costs 57 tokens per session (1,128 once invoked), scanned A, original, MIT.

A planning agent that proposes one change to a software plan when a task or story fails. It can break work down again, discard a task, change priorities, or move a planning item to a different level.

In plain words
What is it for?
Use it after classified failures or when a story exceeds its limits to propose a revised plan for the master planner to apply.
Why use it?
It helps recover from failures by changing the plan instead of repeatedly retrying the same work.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Part of the aura-frog plugin — 43 skills, 24 commands, 15 agents, 10 hooks, 6 MCP servers 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/nguyenthienthanh/aura-frog/replanner
Clone the repo
git clone --depth 1 https://github.com/nguyenthienthanh/aura-frog

Made for: Claude Code.

Or install aura-frog, the plugin that ships this one along with the rest of its 43 skills, 24 commands, 15 agents, 10 hooks, 6 MCP servers.

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 replanner

README.md
[![agentmods](https://agentmods.dev/badge/agents/nguyenthienthanh/aura-frog/replanner.svg)](https://agentmods.dev/agents/nguyenthienthanh/aura-frog/replanner)
Your own site
<a href="https://agentmods.dev/agents/nguyenthienthanh/aura-frog/replanner"><img src="https://agentmods.dev/badge/agents/nguyenthienthanh/aura-frog/replanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 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,128 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.1 $0.00057 $0.01128
Opus 5 $0.00028 $0.00564
Sonnet 5 $0.00011 $0.00226
Haiku 4.5 $0.00006 $0.00113

Measured 6d ago against content hash d4d7179d6354, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

replanner 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 6d 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.

aura-frog/agents/replanner.md · 90 lines

How it starts

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

Agent: Replanner

STATUS — v3.7.0-alpha.2 (Milestone B). Pairs with failure-classifier skill.

Purpose

When execution fails and the failure-classifier returns class F2 (local-logic), F3 (local-design), or F4 (story-level), master-planner dispatches replanner to propose a plan-tree mutation. Replanner does not retry; it changes the plan.

The replanner is the only agent allowed to make LLM-mediated planning judgments (per Q1 decision: deterministic everywhere except here). All replanning decisions are persisted to history.jsonl with reasoning + confidence.

Constraints

  • MUST NOT write code, run tests, or edit application files
  • MUST NOT mutate the plan tree directly — emits a proposal; master-planner applies
  • MUST consult replan_budget from spec §11.3 before proposing — refuse if exhausted
  • MUST preserve discarded node IDs (status: discarded, never deleted)
  • MUST propose exactly one mutation per call (atomicity)

When invoked

  • failure-classifier returns class F2/F3/F4 with confidence ≥ 0.6
  • master-planner explicitly dispatches via /aura-frog:plan-replan <NODE_ID>
  • Token-overrun on a story (deviation_score ≥ 0.7 per spec §11.3)

Mutation vocabulary

mutations[5]{action,scope,when}:
  re_decompose,"T3 (Story)","F3 — design assumption broken; split Story into 2-3 new Stories"
  discard_task,"T4 (Task)","F2 — task no longer reachable; mark discarded, regenerate sibling"
  reprioritize,"T2/T3 children","F4 — sibling order broken by upstream change"
  promote,"T2 → T1","F4 escalation — Feature exceeded scope; promote to Initiative"
  freeze,"T2/T3","F4/F5 — needs human input; freeze branch (cascades to descendants per Q10)"

Process

  1. Read failed node + ancestors (up to T1) + history.jsonl tail (last 20 events for context)
  2. Read failure-classifier output: {class, confidence, evidence}
  3. Check replan_budget on the affected node and parent
  4. Generate 2-3 candidate mutations — apply self-consistency to vote between them
  5. Score each candidate on: scope_blast_radius, evidence_alignment, budget_fit, reversibility
  6. Emit proposal JSON to .claude/plans/proposals/{NODE_ID}.{ISO}.json:
    {
      "node_id": "STORY-0042",
      "mutation": "re_decompose",
      "reasoning": "Failure F3: original Story assumed JWT but team uses session cookies (evidence: src/auth/session.js)",
      "confidence": 0.82,
      "candidates_considered": 3,
      "blast_radius": "low (only descendants affected)",
      "replan_budget_remaining": 2
    }
    
  7. Append history.jsonlevent: replan_proposed
  8. master-planner reads proposal and applies (or surfaces to user if confidence < 0.7)

Read the full file on GitHub · 90 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. 6d ago First seen · 90 lines · 57 tokens per session scan A d4d7179d6354

Subscribe to this mod's changes

replanner is an agent published in the GitHub repository nguyenthienthanh/aura-frog (24 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 1,128 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

AgentReady Development

Specialized agent with deep knowledge of the AgentReady codebase for development, testing, and maintenance.

ambient-code/agentready · 23 tokens

thoughts-analyzer

Extracts decisions and actionable insights from project history documents. Plans in thoughts/ contain problems, solutions, and reasoning - but mixed with exploration noise. Returns: what was decided, why, constraints identified, and whether conclusions are still valid. Filters noise, returns only high-value…

hoblin/claude-ruby-marketplace · 0 tokens

documentation-researcher

Need to learn how to use a library, gem, or framework? This agent fetches up-to-date official documentation via Context7, understands your specific use case, and provides ready-to-use code examples. Great for setup guides, API usage, Rails methods, gem configuration, and implementation patterns.

hoblin/claude-ruby-marketplace · 64 tokens

alchemist

Code/data transmutation via four-stage alchemical process (nigredo/albedo/citrinitas/rubedo) with meditate/heal checkpoints.

pjt222/agent-almanac · 32 tokens

review-docs

Documentation reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-docs with artifact paths. Treats every comment as a claim to verify against code read in full — reasoning narration and stale references are its prey.

hoblin/claude-ruby-marketplace · 57 tokens

review-performance

Performance reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-performance with artifact paths. Hunts N+1s, missing indexes, memory bloat, and cross-tenant leakage by reading changed files and their query paths in full.

hoblin/claude-ruby-marketplace · 60 tokens