Sourcegraph Cody Missing Context or 'File Is Ignored'
Workaround available VS Code, JetBrains Updated November 14, 2026Based on 2 user reportsHow we research
Quick answer
Cody answers without your code when context filters exclude files, forks are not searched, or the repo is not indexed for the instance.
Most likely fix: Check what was included
How to fix it
Try these in order — the most common fix is first.
1. Check what was included
- Look at the Context row under your message
- Enable cody.debug.verbose and look for getEnhancedContext messages
Did this fix it?2. Ask your admin
- Ask which files contextFilters exclude
- If wrongly excluded, uninstall the extension, restart the IDE and reinstall the latest version
Did this fix it?3. Forked repos
- Add "search.includeForks": true to global settings
Did this fix it?
Symptoms
Cody ignores your repo, shows 'file is ignored (due to cody.contextFilters)', or does not include files in context.
Why it happens
- Admin contextFilters exclude the file
- Forked repos are not searchable as context by default
- Repo not indexed on the Enterprise instance
This guide also covers
- cody file is ignored
- cody context not working
- cody contextFilters
Still not working?
If Sourcegraph keeps failing, you're not alone. See every Sourcegraph problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther Sourcegraph errors
- Sourcegraph Cody Free and Pro Discontinued: What Happened and What to Do
- Sourcegraph Cody Not Working in VS Code
- Sourcegraph Cody Sign-In Error: Authentication Failed or Signed Out on Restart
- Sourcegraph Cody Not Working in JetBrains (IntelliJ, Android Studio)
- Sourcegraph Cody Rate Limit or Usage Limit Reached
- Sourcegraph Search Not Finding Results
- Sourcegraph Repository Not Cloning or Not Updating
- Sourcegraph Search Slow or Timing Out (Zoekt Crash Loop)