Inappropriate Tool Selection ONLY when supplying the prompt as CLI argument

Resolved 💬 2 comments Opened May 1, 2025 by AtiX Closed Nov 30, 2025

Bug Description

Only when using claude with a prompt on the CLI, the tool selection is reproducibly wrong.

Error case:

  1. Execute claude with claude 'Update the changelog to reflect the recent changes committed to this repository'
  2. BUG: instead of using the local git / file reader tools, Claude uses random other tools like installed MCPs such as brave_search and confluence. Tools are called with wrong arguments (e.g. brave search: "CHANGELOG.md contents")

Success case:

  1. Start claude with claude
  2. Type/Paste the same prompt: Update the changelog to reflect the recent changes committed to this repository
  3. Claude works as expected and uses local tools

The erroneous behavior, at least for me, is reliably reproducible.

Environment Info

  • Platform: macos
  • Terminal: intellij
  • Version: 0.2.94
  • Feedback ID: 893817e2-9ad7-4e1c-89d8-ca18f22b0c95

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗