optimize-plan

optimize-plan is a command for Claude Code from abossenbroek/abossenbroek-claude-plugins. It costs 0 tokens per session (544 once invoked), scanned A, original, BSD-3-Clause.

A command that finds a project plan file and sends it to a planning coordinator for review and optimization.

In plain words
What is it for?
Use it to optimize a specified plan or the newest Markdown plan in `.claude/plans/`. It returns the coordinator’s suggestions and revised plan comparison.
Why use it?
It helps reduce unnecessary context in the plan and makes information handoffs between agents clearer.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the context-engineering plugin — 1 skill, 4 commands shipped together

Good fit Use it to optimize a specified plan or the newest Markdown plan in .claude/plans/. It returns the coordinator’s suggestions and revised plan comparison.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/abossenbroek/abossenbroek-claude-plugins/optimize-plan
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/abossenbroek/abossenbroek-claude-plugins

Made for: Claude Code.

Or install context-engineering, the plugin that ships this one along with the rest of its 1 skill, 4 commands.

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 optimize-plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/abossenbroek/abossenbroek-claude-plugins/optimize-plan/github.svg)](https://agentmods.dev/commands/abossenbroek/abossenbroek-claude-plugins/optimize-plan)
Your own site
<a href="https://agentmods.dev/commands/abossenbroek/abossenbroek-claude-plugins/optimize-plan"><img src="https://agentmods.dev/badge/commands/abossenbroek/abossenbroek-claude-plugins/optimize-plan/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 optimize-plan

Your own site · 80×15
<a href="https://agentmods.dev/commands/abossenbroek/abossenbroek-claude-plugins/optimize-plan"><img src="https://agentmods.dev/badge/commands/abossenbroek/abossenbroek-claude-plugins/optimize-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 544 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.00000 $0.00544
Opus 5 $0.00000 $0.00272
Sonnet 5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00054

Measured 8d ago against content hash 39925e94237b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

optimize-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 8d 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.

context-engineering/commands/optimize-plan.md · 106 lines

How it starts

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

/optimize-plan Command

Optimize a plan file for efficient context management and agent handoffs.

Usage

/optimize-plan [path]

Arguments

path (optional):

  • Path to plan file (default: most recent plan in .claude/plans/)

Instructions

You are the MINIMAL entry point for plan optimization. Your ONLY job is to:

  1. Locate the plan file to optimize
  2. Launch the plan-coordinator agent
  3. Return the coordinator's output directly

Step 1: Locate Plan

If no path provided:

  1. Look in .claude/plans/ for recent .md files
  2. If multiple found, use most recently modified
  3. If none found, ask user to provide path

Verify the plan exists by attempting to read it.

Step 2: Launch Coordinator

Use the Task tool to launch the plan-coordinator agent:

Task: Optimize plan for context efficiency
Agent: agents/plan-coordinator.md
Prompt:
  plan_path: [resolved plan file path]

The coordinator will:

  1. Analyze plan structure and phases
  2. Map context flows between phases
  3. Identify optimization opportunities
  4. Present options for user selection
  5. Generate optimized version with comparison

Step 3: Return Output

Return the coordinator's output DIRECTLY to the user.

DO NOT:

  • Add commentary about the process
  • Explain what the coordinator did
  • Include intermediate analysis
  • Modify the output

ONLY return the final optimized plan and comparison.

Context Isolation Rules

This command is the FIREWALL between main session and optimization work:

  • Main session context stays CLEAN
  • Only plan path passes to coordinator
  • Only the final output returns to user
  • No intermediate analysis enters main context

Examples

/optimize-plan
# Optimizes most recent plan in .claude/plans/

/optimize-plan ~/.claude/plans/my-feature-plan.md
# Optimizes specific plan file

What Gets Optimized

Context Tiers

  • Assign appropriate context tiers to each phase
  • Identify phases using higher tier than needed
  • Add explicit tier specifications

Read the full file on GitHub · 106 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. 8d ago First seen · 106 lines · 0 tokens per session scan A 39925e94237b

Subscribe to this mod's changes

optimize-plan is a command published in the GitHub repository abossenbroek/abossenbroek-claude-plugins (2 stars, last pushed 4mo ago), licensed BSD-3-Clause. It costs nothing until one of its globs matches a file; then it loads 544 tokens. 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.