[PR #8105] feat(plan): plan review #12622

Closed
opened 2026-02-16 18:17:31 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8105

State: closed
Merged: No


What does this PR do?

This PR adds two one new feature:

  • Iterative Planning, something which for example Claude Code and I believe Cursor as well which will keep iterating on one and the same plan document instead of writing it to the conversation history, losing context between iteration, etc...

  • Plan Review / Summary, after iterating on the plan, it will request to exit planning mode. When it does this it'll let you approve/reject the plan, give an optional reason, or dismiss it entirely and interrupt the flow. Gives you an easy way of looking through the entire plan before executing on it.

* Iterative Planning was added by Dax shortly after this PR, so for that reason I'm adopting those features but with some additional improvements

This PR includes an improved plan reviewing flow where when exit plan mode is called it'll show you the full plan file in the chat and gives you some quick key binds to approve/reject it with an optional comment.

image image

This PR initially included an iterative planning mode but I adopted the new planning tools by @thdxr. Due to this, the PR has a lot of commits adding / removing those features.

How did you verify your code works?

Basic tests in plan mode via TUI and Web interface by planning new features, smaller changes and more in real projects

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8105 **State:** closed **Merged:** No --- ### What does this PR do? ~~This PR adds two one new feature:~~ - ~~**Iterative Planning**, something which for example Claude Code and I believe Cursor as well which will keep iterating on one and the same plan document instead of writing it to the conversation history, losing context between iteration, etc...~~ - ~~**Plan Review / Summary**, after iterating on the plan, it will request to exit planning mode. When it does this it'll let you approve/reject the plan, give an optional reason, or dismiss it entirely and interrupt the flow. Gives you an easy way of looking through the entire plan before executing on it.~~ \* Iterative Planning was added by Dax shortly after this PR, so for that reason I'm adopting those features but with some additional improvements This PR includes an improved plan reviewing flow where when exit plan mode is called it'll show you the full plan file in the chat and gives you some quick key binds to approve/reject it with an optional comment. <img width="1512" height="949" alt="image" src="https://github.com/user-attachments/assets/d1d6437f-a996-40a0-a3be-bf6e9f9ecfbb" /> <img width="1512" height="949" alt="image" src="https://github.com/user-attachments/assets/8519ddbe-8cdf-4e4c-b1ce-04bd9f7d2c6f" /> This PR initially included an iterative planning mode but I adopted the new planning tools by @thdxr. Due to this, the PR has a lot of commits adding / removing those features. ### How did you verify your code works? Basic tests in plan mode via TUI and Web interface by planning new features, smaller changes and more in real projects
yindo added the pull-request label 2026-02-16 18:17:31 -05:00
yindo closed this issue 2026-02-16 18:17:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12622