Agent repeatedly searches GitHub (issues, PRs, gists) instead of grepping local repo
Resolved 💬 2 comments Opened Feb 12, 2026 by hoagdoag Closed Mar 13, 2026
Bug
When asked to find information "on GitHub," the agent fixates on GitHub-hosted metadata (issues, PRs, wikis, gists, discussions) and ignores the local codebase — even when the user is clearly referring to a file committed to the repo.
Reproduction
- Ask: "I'd like to hear more about my account info for polling accounts"
- Agent queries Firestore (wrong source entirely)
- Ask: "I wanted to know about my account info that's in GitHub"
- Agent searches GitHub issues, PRs, gists, wiki, discussions — 5+ API calls, all misses
- Ask: "I have a bunch of info about my resy account... name, phone number, etc."
- Agent still searches GitHub issues
- Ask: "Can you look for phone numbers somewhere?"
- Only now does the agent grep the local repo — finds
docs/accounts.mdimmediately
Expected behavior
When the user says their info is "on GitHub" (or "in the repo"), the agent should search the local codebase first (grep/glob), not GitHub's issue tracker. A simple grep for phone numbers or glob for **/accounts* would have found it in one shot.
Impact
Wasted ~6 turns and multiple minutes on a lookup that should have taken seconds. Erodes user trust.
Environment
- Claude Code CLI
- Model: claude-opus-4-6
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗