chore: ignore .claude/worktrees agent dispatch residue#94
Open
Goosterhof wants to merge 1 commit into
Open
Conversation
Deploying fs-packages with
|
| Latest commit: |
1c7a981
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cfcb7659.fs-packages.pages.dev |
| Branch Preview URL: | https://chore-ignore-claude-worktree.fs-packages.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.claude/worktrees/to.gitignoreto stop agent-dispatch worktree directories from surfacing as untracked content ingit status. Four stale agent worktrees (agent-a549...,agent-a5e3...,agent-acdd...,agent-ade6...) from May 8 + May 15 dispatches were also removed from disk.Why
When a war-room agent (spy or soldier) is dispatched with
isolation: "worktree", the Claude Code harness creates a worktree at.claude/worktrees/agent-{id}/. These accumulate over time and cluttergit statuson every workstation that's run dispatches. The directory is ephemeral session state and should never be tracked.Scoped narrowly to
.claude/worktrees/rather than the whole.claude/directory — leaves room for tracked agent config (settings.json, agents, skills) later if fs-packages decides to ship one.Test plan
git statusclean on a fresh clone with no dispatches run.claude/worktrees/agent-*/does not appear as untracked🤖 Generated with Claude Code