claude-code - 💡(How to fix) Fix Claude Opus over-engineers simple tasks in agentic/CLI mode, wasting tokens [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When using Claude Code with the Opus model, simple tasks trigger excessive tool calls. Asking Opus to rename a string across 3 files resulted in 15+ tool calls including reading files multiple times after writing them, creating temp files in /tmp to store grep results, and running redundant validation loops before and after every step. The same task on Sonnet completes in 2-3 tool calls.

What Should Happen?

Renaming a string across 3 files should take 5-6 tool calls: read, replace, write, validate. Opus should match tool usage to task complexity the same way Sonnet does.

Error Messages/Logs

Steps to Reproduce

Open Claude Code with Opus (/model opus) Create any 3 text files that share a common string Ask: "Rename the string foo to bar across these 3 files" Observe Opus running 15+ tool calls with redundant checks, temp files, and re-reading files it just wrote Repeat with Sonnet (/model sonnet) — same task completes in 2-3 tool calls

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Opus 4.8

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

Just try different light tasks with opus, you will see it overcomplicating things.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Claude Opus over-engineers simple tasks in agentic/CLI mode, wasting tokens [1 pull requests]