Skip to content

Commit f92cebb

Browse files
purinkleclaude
andcommitted
Add Claude Code's working files to gitignore
Claude Code keeps notes to itself while it runs. It puts them in a `.claude` folder inside whatever project it is working in. The notes track things like which jobs are waiting, which helpers are running, and where its spare copies of the project sit. They belong to one run on one machine, so they mean nothing to anyone else. Nothing in this repo covers these names yet. A sweep of one developer's projects found two of them sitting untracked. That is not many, but the cost of missing one is a commit full of somebody else's local state. The names come from watching what the tool writes, not from a manual, so a later version of the tool may rename them. If that happens these lines do no harm, because git quietly skips a pattern that matches nothing. The `settings.local.json` file is covered on its own in #787. That one is written up in the tool's manual and turns up far more often, so it is worth keeping the two changes apart. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 3c80686 commit f92cebb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,14 @@ log/*.log
1414
rerun.txt
1515
tmp/**/*
1616
/tags
17+
18+
**/.claude/scheduled_tasks.lock
19+
**/.claude/scheduled_tasks.json
20+
**/.claude/routines/.state/
21+
**/.claude/worktrees/
22+
**/.claude/checkpoints/
23+
**/.claude/mailbox/
24+
**/.claude/agent-registry.json
25+
**/.claude/agent-memory-local
26+
**/.claude/first-run
27+
**/.claude/assistant-daemon-state.json

0 commit comments

Comments
 (0)