.rooignore
.rooignore tells the Roo Code agent which files to exclude from its context and edits.
This week: 0% of 499 scanned repos had .rooignore.See Radar #4 →
What it is
.rooignore is a gitignore-style file used by the Roo Code VS Code agent to skip matching files when reading or modifying your project.
Why use it
As an autonomous agent, Roo benefits from an ignore file that keeps secrets out of context and prevents accidental changes to sensitive files.
How to set it up
Create .rooignore in your project root and add one glob pattern per line.
Example .rooignore
.env
.env.*
*.pem
*.key
secrets/What to exclude
Common sensitive categories worth adding to .rooignore:
FAQ
- Is .rooignore syntax the same as .gitignore?
- Yes, it uses familiar gitignore-style glob patterns.
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.