r/opencodeCLI • u/Few-Cartographer7156 • 17m ago
I made an OpenCode plugin that puts a diff in front of me before applying an edit
I built Mirage because I wanted a small review step for edits I care about. In OpenCode 2 CLI, I can ask the agent to send one edit through Mirage, look at the diff, then approve that proposal. A quick way to try it is to pick one tracked text file, ask for a small change through Mirage, and compare the approved preview with `git diff` afterward.
The plugin is opt-in. OpenCode’s native write tools are still there, so the review only covers edits sent through Mirage. If you use OpenCode, would you bother with this for config and migrations, or is reviewing the final Git diff enough for you?