.gitignore for AI Coding Agents
9 ignore rules for AI Coding Agents, ready to copy into your repository.
Local files of AI coding assistants (Aider, Claude Code, Gemini CLI)
The complete .gitignore for AI Coding Agents
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 18:11:13 UTC
# Technologies: AI Coding Agents
### AI Coding Agents ###
.aider.input.history
.aider.chat.history.md
.aider.llm.history
.aider.tags.cache.v*
# Claude Code local settings
.claude/*.local.json
.claude/**/*.log
# Claude Code personal project instructions
CLAUDE.local.md
gemini-debug.log
.gemini-clipboard/
What these AI Coding Agents rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Aider
| Pattern | What it ignores |
|---|---|
.aider.input.history |
Aider |
.aider.chat.history.md |
Aider |
.aider.llm.history |
Aider |
.aider.tags.cache.v* |
Aider |
Claude Code
| Pattern | What it ignores |
|---|---|
.claude/*.local.json |
Claude Code local settings |
.claude/**/*.log |
Claude Code |
CLAUDE.local.md |
Claude Code personal project instructions |
Gemini CLI
| Pattern | What it ignores |
|---|---|
gemini-debug.log |
Gemini CLI |
.gemini-clipboard/ |
Gemini CLI |
How to use this .gitignore for AI Coding Agents
- Copy the AI Coding Agents rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.