[PR #4594] ref: improve and enable the multiedit tool with visuals and improved prompting #11030

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

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

State: closed
Merged: No


Summary

  • Enforce tool separation by disallowing multiedit calls within batch operations
  • Add user-focused documentation for multiedit tool in website docs
  • Improve agent understanding of multiedit tool functionality through better prompt instructions

These changes maintain the principle that batch and multiedit are separate concerns: batch handles parallel tool orchestration, while multiedit handles sequential edits to a single file.

Showcase

This is how it would look like when the agent edits these lines:

  • Line 1
  • Lines 5 to 9
  • Lines 15 and 16
  • Last line of the 20 lines file
image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4594 **State:** closed **Merged:** No --- ## Summary - Enforce tool separation by disallowing multiedit calls within batch operations - Add user-focused documentation for multiedit tool in website docs - Improve agent understanding of multiedit tool functionality through better prompt instructions These changes maintain the principle that batch and multiedit are separate concerns: batch handles parallel tool orchestration, while multiedit handles sequential edits to a single file. ## Showcase This is how it would look like when the agent edits these lines: - Line 1 - Lines 5 to 9 - Lines 15 and 16 - Last line of the 20 lines file <img width="734" height="200" alt="image" src="https://github.com/user-attachments/assets/e35364cc-ce9d-4ea6-82bf-6aa2a69300a9" />
yindo added the pull-request label 2026-02-16 18:15:48 -05:00
yindo closed this issue 2026-02-16 18:15:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11030