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.
git clone --depth 1 https://github.com/primeline-ai/universal-planning-frameworkWrote 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.
[](https://agentmods.dev/commands/primeline-ai/universal-planning-framework/plan-refine)<a href="https://agentmods.dev/commands/primeline-ai/universal-planning-framework/plan-refine"><img src="https://agentmods.dev/badge/commands/primeline-ai/universal-planning-framework/plan-refine/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.
<a href="https://agentmods.dev/commands/primeline-ai/universal-planning-framework/plan-refine"><img src="https://agentmods.dev/badge/commands/primeline-ai/universal-planning-framework/plan-refine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01667 |
| Opus 5.5 | $0.00000 | $0.00667 |
| Sonnet 5.5 | $0.00000 | $0.00333 |
| Haiku 4.5 | $0.00000 | $0.00167 |
Grade A, and why
plan-refine 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Autonomous Plan Hardening (Stage 1.5)
You are hardening this plan: $ARGUMENTS
Read the plan file and stress-test it from 6 adversarial perspectives. Fix what you can, flag what needs user input. Do NOT ask the user any questions - work autonomously.
Pre-Flight Checks
- Read the plan file using the Read tool
- Check idempotency: If a "Hardening Log" section already exists, inform the user and stop (plan already hardened)
- Count phases: If < 3 phases, inform the user that hardening is designed for complex plans and offer to proceed anyway
- Detect domain: Determine which of the 8 domains apply:
- Software Development, Multi-Agent / AI System, Business / Strategy, Content / Marketing
- Infrastructure / DevOps, Data & Analytics, Research / Exploration, Multi-Domain
Mode Selection
Simple mode (default): Single-agent, sequential. You role-switch through all 6 perspectives yourself.
Team mode (--team flag): Only when CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set:
- Spawn 6 agents (one per perspective), each reads the ORIGINAL plan in parallel
- Collect findings, deduplicate, resolve conflicts
- Conservative fix wins. Pedantic Lawyer takes priority on gates.
- Apply fixes, run consolidation check, append Hardening Log
If --team is in the arguments but the env var is not set, fall back to simple mode with a note.
6 Perspectives (Simple Mode - Sequential)
For each perspective, read the plan through that lens. Record findings and fixes.
Perspective 1: Outside Observer
"I'm reading this plan for the first time with no context."
- Can I summarize the goal in 15 words or fewer?
- Are success metrics unambiguous? Would two people measure them the same way?
- Is there an End State paragraph? Can I picture what success looks like?
- Are all abbreviations and jargon defined?
- Does Context & Why explain WHY, not just WHAT?
Perspective 2: Pessimistic Risk Assessor
"Everything that can go wrong, will go wrong."
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.
- 3mo ago First seen · 190 lines · 0 tokens per session scan A cbb092cb6508
plan-refine is a command published in the GitHub repository primeline-ai/universal-planning-framework (46 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,667 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-30.
plan-refine compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| plan-refineprimeline-ai/universal-planning-framework | Command | 46 | 1mo ago | MIT | A | 0 | Claude Code |
| local-leadsHasData/google-maps-mcp | Command | 10 | yesterday | MIT | A | 16 | Claude Code, Cursor |
| autotaskTechNickAI/ai-coding-config | Command | 23 | 2mo ago | MIT | A | 21 | Claude Code |
| generate-AGENTS-fileTechNickAI/ai-coding-config | Command | 23 | 2mo ago | MIT | A | 24 | Claude Code |
| product-intelTechNickAI/ai-coding-config | Command | 23 | 2mo ago | MIT | A | 16 | Claude Code |
| validatevenikman/fpf-memory | Command | 11 | 4d ago | none | A | 24 | Claude Code |
| ai-coding-configTechNickAI/ai-coding-config | Command | 23 | 2mo ago | MIT | C | 21 | Claude Code |