claude-code - 💡(How to fix) Fix claude-code-guide agent cannot use WebSearch despite being configured to [1 participants]

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…
GitHub stats
anthropics/claude-code#46250Fetched 2026-04-11 06:25:17
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3cross-referenced ×1

Root Cause

Meanwhile, WebFetch works fine because preapproved hosts (like code.claude.com) return { behavior: 'allow' } directly, bypassing the dontAsk conversion entirely.

RAW_BUFFERClick to expand / collapse

Bug

The built-in claude-code-guide agent is configured with permissionMode: 'dontAsk', but its tool list includes WebSearch and its system prompt explicitly instructs it to use WebSearch as a fallback:

  1. Use WebSearch if docs don't cover the topic

This combination guarantees WebSearch will always be denied:

  1. claude-code-guide defines permissionMode: 'dontAsk'
  2. WebSearch.checkPermissions() returns { behavior: 'passthrough' }
  3. The permission pipeline converts passthroughask
  4. dontAsk mode converts askdeny

Meanwhile, WebFetch works fine because preapproved hosts (like code.claude.com) return { behavior: 'allow' } directly, bypassing the dontAsk conversion entirely.

How to reproduce

  1. Ask Claude Code a question that triggers the claude-code-guide subagent
  2. Ask something the docs don't cover, so the agent tries WebSearch
  3. WebSearch is denied with: "Permission to use WebSearch has been denied because Claude Code is running in don't ask mode."

Expected behavior

Either:

  • The agent's permissionMode should allow WebSearch (e.g. add a permission rule for it), or
  • WebSearch should be removed from the agent's tool list and system prompt if it's intentionally disallowed

Versions

  • Claude Code VS Code extension 2.1.100

🤖 Generated with Claude Code

Bug found by reading the leaked source code. Consider publishing it officially — it would make debugging (and bug reports) a lot easier.

extent analysis

TL;DR

To fix the issue, update the permissionMode of the claude-code-guide agent to allow WebSearch or remove WebSearch from the agent's tool list and system prompt.

Guidance

  • Review the permissionMode configuration of the claude-code-guide agent and consider updating it to a mode that allows WebSearch, such as adding a permission rule for it.
  • Verify that the system prompt and tool list are consistent with the intended permission mode, ensuring that WebSearch is either allowed or removed.
  • Check the permission pipeline and conversion logic to ensure that the dontAsk mode is not inadvertently denying WebSearch.
  • Consider publishing the source code officially to facilitate easier debugging and bug reporting.

Example

No code snippet is provided as the issue does not contain sufficient code details.

Notes

The fix may require updating the claude-code-guide agent configuration or removing WebSearch from the tool list and system prompt. The exact steps may vary depending on the specific implementation and requirements.

Recommendation

Apply a workaround by updating the permissionMode of the claude-code-guide agent to allow WebSearch, as this is a more targeted solution than removing WebSearch from the tool list and system prompt.

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…

FAQ

Expected behavior

Either:

  • The agent's permissionMode should allow WebSearch (e.g. add a permission rule for it), or
  • WebSearch should be removed from the agent's tool list and system prompt if it's intentionally disallowed

Still need to ship something?

×6

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

Back to top recommendations

TRENDING