opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Feature: Seamless Plan-to-Build handoff with context retention

Open lout33 opened this issue 2 weeks ago • 3 comments

Problem

When using Plan mode to design an implementation, switching to Build mode requires:

  1. Pressing Tab to switch agents
  2. Re-explaining what to build (e.g., "go ahead and implement it")

This creates friction and redundancy since the plan context is already established.

Proposed Solution

After completing a plan, the Plan agent should:

  1. Suggest switching to Build mode (e.g., "Ready to build? Press Tab to switch and I'll start implementing.")
  2. When user presses Tab, Build agent should automatically continue with the plan without requiring the user to re-prompt

Essentially: Plan agent hands off context to Build agent seamlessly.

Expected Behavior

User (Plan mode): "Plan how to add dark mode toggle"
Agent: [Creates detailed plan]
Agent: "Plan complete. Press Tab to switch to Build mode and start implementing."
User: [Presses Tab]
Agent (Build mode): [Immediately starts implementing based on the plan - no re-prompting needed]

Current Behavior

User (Plan mode): "Plan how to add dark mode toggle"  
Agent: [Creates detailed plan]
User: [Presses Tab]
Agent (Build mode): [Waits for user input]
User: "Go ahead and implement the plan" <-- redundant step

Additional Context

This would make the Plan/Build workflow much more fluid, especially for complex multi-step implementations where the plan context is critical.

lout33 avatar Jan 03 '26 22:01 lout33

This issue might be a duplicate of existing issues. Please check:

  • #4536: [FEATURE]: QOL improvement of plan -> build

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 03 '26 22:01 github-actions[bot]

Hey @lout33, you could create a new primary agent to achieve this, without changing the behavior of the default agents for the rest of us.

justfortheloveof avatar Jan 03 '26 23:01 justfortheloveof

this can just be a plugin tbh

airtonix avatar Jan 04 '26 01:01 airtonix