Files
dotfiles/pi/.pi/agent/prompts/plan.md
2026-04-10 09:01:25 +02:00

24 lines
999 B
Markdown

---
description: "Scout + plan + plan review — no implementation"
---
Use the subagent tool with a chain to plan (but NOT implement) the following:
```
{ chain: [
{ agent: "scout", task: "Find all code relevant to: $@" },
{ agent: "planner", task: "Create a detailed implementation plan for: $@\n\nContext from scout:\n\n{previous}" },
{ agent: "plan-reviewer", task: "Review this implementation plan. Verify file paths and line numbers against the actual codebase.\n\n{previous}" }
]}
```
Present the plan and the review to me. Do NOT proceed to implementation.
## Agent Failure and Fallback
If any agent returns empty output or an error (rate limit, credit exhaustion, connection failure):
1. Retry once with the same agent.
2. If still failing, retry with the cross-family fallback using the `model` override. See the fallback table in the `subagent-plan` SKILL.md for the current mapping.
3. If the fallback also fails, do the work yourself and tell me which agent failed and why.