Skip to content

Commit ac1706e

Browse files
authored
chore: ignore AI agent local state and secrets (#682)
Adds ignore rules for per-user AI coding agent files (Claude Code local settings and worktrees, Aider history, SpecStory transcripts, agent scratch space) and common secret files, while keeping shared agent configuration committable. [skip ci]
1 parent c3bf972 commit ac1706e

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,41 @@ packages/**/native-src/ios/**/project.xcworkspace/
6060
packages/**/native-src/ios/**/build
6161
.nx/cache
6262
.nx/workspace-data
63+
64+
# ============================================
65+
# AI agents: local / personal / ephemeral state
66+
# ============================================
67+
# Keep committable: CLAUDE.md, AGENTS.md, GEMINI.md,
68+
# .github/copilot-instructions.md, .claude/settings.json,
69+
# .claude/commands/, .claude/agents/, .claude/skills/,
70+
# .cursor/rules/, .cursorignore, .aiderignore, .aider.conf.yml,
71+
# .mcp.json and .cursor/mcp.json (both expand env vars; keep tokens in env)
72+
73+
# Claude Code
74+
.claude/settings.local.json
75+
.claude/worktrees/
76+
CLAUDE.local.md
77+
78+
# Aider (listed individually so .aider.conf.yml can still be committed)
79+
.aider.chat.history.md
80+
.aider.input.history
81+
.aider.llm.history
82+
.aider.tags.cache*/
83+
84+
# SpecStory (writes full chat transcripts into the repo)
85+
.specstory/
86+
87+
# Manually created worktrees
88+
.worktrees/
89+
90+
# Agent scratch space (tell agents in CLAUDE.md/AGENTS.md to write temp files here)
91+
.scratch/
92+
*.agent.log
93+
94+
# ============================================
95+
# Secrets
96+
# ============================================
97+
.env
98+
.env.local
99+
.env.*.local
100+
.envrc

0 commit comments

Comments
 (0)