Ignore .agents/settings.local.json (Claude Code personal settings and permission approvals).
Ignore .agents/worktrees/ (temporary git worktrees Claude Code creates).
.claude is a tracked symlink to .agents/, and git does not follow symlinks when matching ignore rules. Claude Code writes .claude/settings.local.json, but git sees .agents/settings.local.json, so the rules have to name the .agents/ paths.
Shared files such as .agents/settings.json and .agents/skills/ stay trackable.
Verification
git check-ignore -v --no-index matches .agents/settings.local.json and .agents/worktrees/x/file, and does not match .agents/settings.json.
## Summary
- Ignore `.agents/settings.local.json` (Claude Code personal settings and permission approvals).
- Ignore `.agents/worktrees/` (temporary git worktrees Claude Code creates).
`.claude` is a tracked symlink to `.agents/`, and git does not follow symlinks when matching ignore rules. Claude Code writes `.claude/settings.local.json`, but git sees `.agents/settings.local.json`, so the rules have to name the `.agents/` paths.
Shared files such as `.agents/settings.json` and `.agents/skills/` stay trackable.
## Verification
`git check-ignore -v --no-index` matches `.agents/settings.local.json` and `.agents/worktrees/x/file`, and does not match `.agents/settings.json`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
nessar
scheduled this pull request to auto merge when all checks succeed 2026-10-19 01:36:34 +02:00
.claude is a symlink to .agents/, so Claude Code's personal settings
and temporary worktrees land under .agents/. Ignore those paths while
keeping shared settings and skills trackable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
.agents/settings.local.json(Claude Code personal settings and permission approvals)..agents/worktrees/(temporary git worktrees Claude Code creates)..claudeis a tracked symlink to.agents/, and git does not follow symlinks when matching ignore rules. Claude Code writes.claude/settings.local.json, but git sees.agents/settings.local.json, so the rules have to name the.agents/paths.Shared files such as
.agents/settings.jsonand.agents/skills/stay trackable.Verification
git check-ignore -v --no-indexmatches.agents/settings.local.jsonand.agents/worktrees/x/file, and does not match.agents/settings.json.🤖 Generated with Claude Code
ee11371f41to8414c02e10