How to avoid unnecessary modifications? #4271

Closed
opened 2026-02-16 17:43:14 -05:00 by yindo · 4 comments
Owner

Originally created by @felixzsh on GitHub (Jan 5, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

whenever i ask something that involves multiple steps, the llm just decices to perform completly uneeded modifications like these:

Image

i mean, removing white-spaces, adding multi-line params to all of my function calls, etc, for me this just spends time and tokens in useless tasks, could this be effectively avoided ?

edit: these are not specific planned tasks, these are modifications that occur in the middle of an apparently normal plan implementation

Originally created by @felixzsh on GitHub (Jan 5, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question whenever i ask something that involves multiple steps, the llm just decices to perform completly uneeded modifications like these: <img width="1760" height="814" alt="Image" src="https://github.com/user-attachments/assets/9cff5bbb-7704-4ead-80d4-6c9c21e294f9" /> i mean, removing white-spaces, adding multi-line params to all of my function calls, etc, for me this just spends time and tokens in useless tasks, could this be effectively avoided ? edit: these are not specific planned tasks, these are modifications that occur in the middle of an apparently normal plan implementation
yindo added the zen label 2026-02-16 17:43:14 -05:00
yindo closed this issue 2026-02-16 17:43:14 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 5, 2026):

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

  • #3205: Agent should request permission before reading or editing files (notes that the agent sometimes edits unnecessary files without being explicitly instructed)
  • #3858: [FEATURE]: EDIT PLAN mode or allow editing of only certain files - requests ability to limit agent edits to specific file types and mentions agents going haywire with unnecessary edits
  • #2540: Edits often corrupt files and agents have to restart all work - related to unnecessary and problematic modifications
  • #4391: Plan mode refuses to provide file edit instructions - discusses mode restrictions and agent understanding of edit permissions

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

@github-actions[bot] commented on GitHub (Jan 5, 2026): This issue might be a duplicate of existing issues. Please check: - #3205: Agent should request permission before reading or editing files (notes that the agent sometimes edits unnecessary files without being explicitly instructed) - #3858: [FEATURE]: EDIT PLAN mode or allow editing of only certain files - requests ability to limit agent edits to specific file types and mentions agents going haywire with unnecessary edits - #2540: Edits often corrupt files and agents have to restart all work - related to unnecessary and problematic modifications - #4391: Plan mode refuses to provide file edit instructions - discusses mode restrictions and agent understanding of edit permissions Feel free to ignore if none of these address your specific case.
Author
Owner

@felixzsh commented on GitHub (Jan 5, 2026):

its like the llm true passion is to actually be a formatter instead an useful agent

@felixzsh commented on GitHub (Jan 5, 2026): its like the llm true passion is to actually be a formatter instead an useful agent
Author
Owner

@rekram1-node commented on GitHub (Jan 5, 2026):

That's not the llm haha that's a formatter, whenever the llm makes edits it uses whatever formatter u may have configured / available for the file, to disable all formatters in ur config just do:

"formatter": false

in your opencode.json file

@rekram1-node commented on GitHub (Jan 5, 2026): That's not the llm haha that's a formatter, whenever the llm makes edits it uses whatever formatter u may have configured / available for the file, to disable all formatters in ur config just do: "formatter": false in your opencode.json file
Author
Owner

@felixzsh commented on GitHub (Jan 6, 2026):

that makes a lot of sense, thanks!

@felixzsh commented on GitHub (Jan 6, 2026): that makes a lot of sense, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4271