.cody/ignore
Cody can be configured to ignore files so they are excluded from context used by Sourcegraph’s assistant.
This week: 0% of 499 scanned repos had .cody/ignore.See Radar #4 →
What it is
Cody ignore configuration lists files and paths that Sourcegraph Cody should not use as context for chat or completions.
Why use it
Excluding secrets and sensitive paths keeps them out of Cody’s context. Check your Cody version for the exact ignore mechanism, as it has evolved over time.
How to set it up
Configure Cody’s context filters or ignore file as documented for your version, listing the paths to exclude.
.env
*.pem
*.key
secrets/What to exclude
Common sensitive categories worth adding to .cody/ignore:
FAQ
- Has Cody’s ignore mechanism changed?
- Yes, it has evolved across versions. Consult the current Sourcegraph Cody docs for the exact configuration your version supports.
Check your own project
158 of 499 repos this week exposed sensitive paths to AI tools. Check yours in seconds:
Run the same local check with Offsend CLI:
brew install --cask offsend/tap/offsend-cli
offsend show
offsend prepare --dry-runEverything runs locally. No file contents are uploaded.