A deny-list .gitignore to keep AI agent instructions out of repositories.
This project provides a strict .gitignore that prevents AI coding agents and editors
from adding repository-scoped instruction files, rules, or configuration artifacts
to version control.
- Copy the contents of
.gitignorefrom this repository into your own.gitignore(merge or replace as needed). - If any of these files are already tracked by git,
.gitignorewill not remove them. You must untrack them manually, for example:
git rm --cached AGENTS.md CLAUDE.md GEMINI.md opencode.json
git rm --cached -r .github/agents .cursor .continue .windsurf .roo .junie .amazonqThis deny-list covers instruction and configuration files used by common AI agents, including but not limited to:
- GitHub Copilot
- GitHub Copilot (Path-scoped instructions)
- GitHub Copilot Coding Agent
- OpenAI Codex
- Claude Code
- Cursor
- Windsurf
- Cline
- Continue
- Roo Code
- Amazon Q Developer
- Gemini CLI
- JetBrains Junie
- OpenCode
- aider
The Unlicense