claude-code - 💡(How to fix) Fix [MODEL] Claude Code + Opus 4.8 frequently echos hello world during planning

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…

Code Example



---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues for similar behavior reports
  • This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Other unexpected behavior

What You Asked Claude to Do

I asked Claude to plan out migration operations

What Claude Actually Did

I have noticed very frequently that Claude will stop to "echo" hello-world-like things, as if its testing whether the Bash tool works correctly. This happens very often, and it seems like it is just burning tokens for fun:

<img width="544" height="130" alt="Image" src="https://github.com/user-attachments/assets/d2764d89-12be-4769-b360-99526b18a1e9" /> <img width="328" height="106" alt="Image" src="https://github.com/user-attachments/assets/532584cd-5176-4475-b3ce-6b365f96b1e0" /> <img width="180" height="52" alt="Image" src="https://github.com/user-attachments/assets/5355f3fc-4d9f-4c81-8fdd-2402da422e2d" /> <img width="299" height="109" alt="Image" src="https://github.com/user-attachments/assets/40a1c7e6-9751-49c2-8338-8b4e7c8f2a2c" />

Expected Behavior

Not to stop to verify that the shell works...

Files Affected

Permission Mode

Accept Edits was OFF (manual approval required)

Can You Reproduce This?

Yes, every time with the same prompt

Steps to Reproduce

  1. Switch to planning mode
  2. Ask it to plan any task

Claude Model

Opus

Relevant Conversation

Impact

Low - Minor inconvenience

Claude Code Version

2.1.158 (Claude Code)

Platform

Anthropic API

Additional Context

No response

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 [MODEL] Claude Code + Opus 4.8 frequently echos hello world during planning