Skip to content

Commit 1736146

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 6221ca8 commit 1736146

1 file changed

Lines changed: 36 additions & 3 deletions

File tree

‎.gitignore‎

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,40 @@ NativeScript/inspector/src/
8989
NativeScript/inspector/third_party/
9090
NativeScript/inspector/absl/
9191

92+
# ============================================
93+
# AI agents: local / personal / ephemeral state
94+
# ============================================
95+
# Keep committable: CLAUDE.md, AGENTS.md, GEMINI.md,
96+
# .github/copilot-instructions.md, .claude/settings.json,
97+
# .claude/commands/, .claude/agents/, .claude/skills/,
98+
# .cursor/rules/, .cursorignore, .aiderignore, .aider.conf.yml,
99+
# .mcp.json and .cursor/mcp.json (both expand env vars; keep tokens in env)
92100

93-
#AI agents
94-
.claude/*
95-
!.claude/settings.json
101+
# Claude Code
102+
.claude/settings.local.json
103+
.claude/worktrees/
104+
CLAUDE.local.md
105+
106+
# Aider (listed individually so .aider.conf.yml can still be committed)
107+
.aider.chat.history.md
108+
.aider.input.history
109+
.aider.llm.history
110+
.aider.tags.cache*/
111+
112+
# SpecStory (writes full chat transcripts into the repo)
113+
.specstory/
114+
115+
# Manually created worktrees
116+
.worktrees/
117+
118+
# Agent scratch space (tell agents in CLAUDE.md/AGENTS.md to write temp files here)
119+
.scratch/
120+
*.agent.log
121+
122+
# ============================================
123+
# Secrets
124+
# ============================================
125+
.env
126+
.env.local
127+
.env.*.local
128+
.envrc

0 commit comments

Comments
 (0)