.zedignore
Zed can exclude files from its AI features so sensitive paths are not used as context.
This week: 0% of 499 scanned repos had .zedignore.See Radar #4 →
What it is
Zed’s file exclusion settings (and gitignore handling) control which files the editor’s AI assistant can read for context.
Why use it
Excluding secrets keeps them out of Zed’s assistant context. Configure exclusions so sensitive files are never sent to the model.
How to set it up
Use Zed’s settings to exclude sensitive paths from AI features, or rely on .gitignore plus explicit exclusions for files that must stay out of context.
.env
*.pem
*.key
secrets/What to exclude
Common sensitive categories worth adding to .zedignore:
FAQ
- Does Zed honor .gitignore for AI context?
- Zed respects gitignore for many features; add explicit exclusions for any sensitive file that is not gitignored.
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.