Claude Code's runtime files stop showing up as untracked in git status.
What's wrong with this entry?
Claude Code writes its own runtime paths into the repository's local git exclude list, so scheduled tasks, routines state, worktrees, checkpoints, mailbox and the agent registry stop appearing as untracked files. Scheduled tasks also take a lock file at .claude/scheduled_tasks.lock so two runs cannot process the same schedule at once.
- The lock records the session id, process id, process start time and acquisition time, so a stale lock from a dead process can be told apart from a live one.
- Writing the exclude entries is wrapped in error handling and only logged on failure, so a read-only or unusual repo does not break startup.
**/.claude/scheduled_tasks.lock
Strings lifted out of the shipped bundle, so the claim above can be checked against them.