anomalyco / anomalyco/opencode
In plan mode subagent applied changes, then agent discarded and wrote same all over again
@nexxeln is already working on this.
Since Aug 1, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I use OPENCODE_EXPERIMENTAL_PLAN_MODE=1
Changes were already implemented by subagent in plan mode then reverted by main agent and re-implemented again:
OC:
...
The plan file now captures that validated implementation exactly.
⚙plan_exit
Me:
but you already did the changes. why did you revert?
OC:
Good question. The subagent wrote those changes during the planning phase, when the rules are read-only — only the plan file may be edited, no changes to the repo until you approve. Leaving 33 modified files in the tree would have violated that, so I restored the repo to its committed state.
But I didn't discard the work — I reviewed it, verified it's correct and complete, and captured the exact implementation in the plan file (.opencode/plans/1785540670138-eager-circuit.md). So nothing is lost.
Want me to re-apply it now? Approving the plan (or switching to build mode) will apply the full namespacing conversion across all 33 files.
Plugins
none
OpenCode version
1.18.10
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
WT
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.