Cook with AI Enrollment closed
AI & LLMs Runs locally

AI Ignore File Generator

Generate .cursorignore, .aiexclude, and Copilot content-exclusion files from stack presets and privacy toggles.

ELI5

It writes the list of files your AI tools should never read.

A little more detail

What this tool does

AI coding tools index your codebase, which can include secrets, generated files, and vendored code you never want in a prompt. Each tool has its own ignore format. This generator combines stack presets with your custom paths and emits the right file for each tool.

Use it to
  • Keep .env files, keys, and credentials out of AI context
  • Exclude build output, lockfiles, and vendored dependencies
  • Generate matching ignore files for Cursor, Gemini, and Copilot
Interactive workspace Results update as you type
Stack presets

Select every stack in the repo. Paths merge into the output.

Categories

Toggle pattern groups. Most are on by default.

One gitignore-style pattern per line. Added verbatim.

Ignore files reduce accidental exposure in AI context, but they are not a security boundary. Secrets should not be in the repo at all.

Output format

Paste this YAML in repository or organization Settings > Copilot > Content exclusion. It is not a file in the repo.

 

Generation runs entirely in your browser. Stack choices, custom paths, and output never leave your device.

.cursorignore tells Cursor which paths to skip when indexing and attaching context. .aiexclude does the same for Gemini Code Assist and Firebase Studio. Both use gitignore-style patterns.

GitHub Copilot content exclusion uses YAML globs in repo or org settings, not a dotfile in the tree. Start from presets, then trim patterns your agents actually need and add repo-specific paths the defaults miss.