agent-ignore
v0.2.1
Published
Add AI agent folders to .gitignore
Maintainers
Readme
agent-ignore
Add AI agent folders to your .gitignore with a single command.
Usage
npx agent-ignoreOr install globally:
npm install -g agent-ignore
agent-ignoreWhat it Does
Scans your repository for AI coding agent folders and adds them to your .gitignore. The script is idempotent - running it multiple times will update the section if needed.
Works with monorepos - patterns match at any directory depth.
How it Works
- Fetches the latest agent list from vercel-labs/skills
- Falls back to a bundled static list if offline
- Checks which agent folders actually exist in your repository
- Adds only the existing folders to
.gitignore
Supported Agents
The script recognizes folders from 30+ AI coding agents including:
- Claude Code (
.claude/) - Cursor (
.cursor/) - GitHub Copilot (
.github/skills/) - Windsurf (
.windsurf/) - Cline (
.cline/) - And many more...
License
MIT
