Skip to content

Commit 12f3339

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 3802129 commit 12f3339

1 file changed

Lines changed: 34 additions & 5 deletions

File tree

‎.gitignore‎

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,41 @@ config/test-deps-versions-generated.json
9393
# build output
9494
/dist
9595

96+
# ============================================
97+
# AI agents: local / personal / ephemeral state
98+
# ============================================
99+
# Keep committable: CLAUDE.md, AGENTS.md, GEMINI.md,
100+
# .github/copilot-instructions.md, .claude/settings.json,
101+
# .claude/commands/, .claude/agents/, .claude/skills/,
102+
# .cursor/rules/, .cursorignore, .aiderignore, .aider.conf.yml,
103+
# .mcp.json and .cursor/mcp.json (both expand env vars; keep tokens in env)
104+
105+
# Claude Code
106+
.claude/settings.local.json
107+
.claude/worktrees/
108+
CLAUDE.local.md
109+
110+
# Aider (listed individually so .aider.conf.yml can still be committed)
111+
.aider.chat.history.md
112+
.aider.input.history
113+
.aider.llm.history
114+
.aider.tags.cache*/
115+
116+
# SpecStory (writes full chat transcripts into the repo)
117+
.specstory/
118+
119+
# Manually created worktrees
120+
.worktrees/
121+
122+
# Agent scratch space (tell agents in CLAUDE.md/AGENTS.md to write temp files here)
123+
.scratch/
124+
*.agent.log
125+
126+
# ============================================
127+
# Secrets
128+
# ============================================
96129
# local secrets, filled in from .env.example
97130
.env
98131
.env.*
99132
!.env.example
100-
101-
# Claude Code local state - worktrees and per-user settings. Ignoring the
102-
# contents rather than the directory keeps shared settings.json committable.
103-
.claude/*
104-
!.claude/settings.json
133+
.envrc

0 commit comments

Comments
 (0)