You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a mandatory plan-before-execute step for all agent tasks that modify state, ensuring users can see and approve the agent's intended approach before execution begins.
Problem statement
Currently, the agent executes tasks immediately without presenting a clear plan first:
src/agent/agent.rs: Modify turn() to detect first write iteration and generate plan
src/agent/prompt.rs: May need plan generation prompt template
src/channels/: No changes, plan displayed as normal assistant message
AGENTS.md: Update documentation for plan behavior
Risk and rollback
Main risk: User experience friction from additional step Rollback: Remove plan check from agent loop or add config to disable Quick disable: Set env var ZEROBUILD_SKIP_PLAN=1
Breaking change?
No - adds new behavior, doesn't change existing API
Summary
Implement a mandatory plan-before-execute step for all agent tasks that modify state, ensuring users can see and approve the agent's intended approach before execution begins.
Problem statement
Currently, the agent executes tasks immediately without presenting a clear plan first:
This creates:
Proposed solution
Add a mandatory plan step that works like this:
Implementation approach:
Non-goals / out of scope
Alternatives considered
Show tools only (current approach): Just list tools that will run
Post-execution summary: Show what was done after completion
Always require explicit yes: Block every tool call
Size-based planning: Only plan for "large" tasks
Acceptance criteria
Architecture impact
Risk and rollback
Main risk: User experience friction from additional step
Rollback: Remove plan check from agent loop or add config to disable
Quick disable: Set env var ZEROBUILD_SKIP_PLAN=1
Breaking change?
No - adds new behavior, doesn't change existing API
Data hygiene checks