Skip to content

Commit d0824c9

Browse files
committed
chore: ignore AI agent local state and secrets
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.
1 parent 0ffff1b commit d0824c9

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
@@ -45,3 +45,41 @@ test-app/runtime/src/main/cpp/include/**
4545
test-app/runtime/src/main/cpp/v8_inspector/src/
4646
test-app/runtime/src/main/cpp/v8_inspector/third_party/
4747
test-app/runtime/src/main/cpp/v8_inspector/absl/
48+
49+
# ============================================
50+
# AI agents: local / personal / ephemeral state
51+
# ============================================
52+
# Keep committable: CLAUDE.md, AGENTS.md, GEMINI.md,
53+
# .github/copilot-instructions.md, .claude/settings.json,
54+
# .claude/commands/, .claude/agents/, .claude/skills/,
55+
# .cursor/rules/, .cursorignore, .aiderignore, .aider.conf.yml,
56+
# .mcp.json and .cursor/mcp.json (both expand env vars; keep tokens in env)
57+
58+
# Claude Code
59+
.claude/settings.local.json
60+
.claude/worktrees/
61+
CLAUDE.local.md
62+
63+
# Aider (listed individually so .aider.conf.yml can still be committed)
64+
.aider.chat.history.md
65+
.aider.input.history
66+
.aider.llm.history
67+
.aider.tags.cache*/
68+
69+
# SpecStory (writes full chat transcripts into the repo)
70+
.specstory/
71+
72+
# Manually created worktrees
73+
.worktrees/
74+
75+
# Agent scratch space (tell agents in CLAUDE.md/AGENTS.md to write temp files here)
76+
.scratch/
77+
*.agent.log
78+
79+
# ============================================
80+
# Secrets
81+
# ============================================
82+
.env
83+
.env.local
84+
.env.*.local
85+
.envrc

0 commit comments

Comments
 (0)