[Bug] Model prefers shell commands over file editing tools despite instructions

Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 0 comments · opened Aug 2, 2026

Bug Description
Opus 5 keeps using sed and text replace via python scripts to update files. It constantly needs corrections. I have embedded strong instructions in claude.md and it's memory, still it keeps moving towards shell executions to update files, and not the available file tools.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.220
  • Feedback ID: 155f047f-e985-4054-9d1d-3f932d3b543e

View original on GitHub ↗