Skip to content

Ignore the agent worktrees under .claude - #44

Merged
MihaiBojin merged 1 commit into
mainfrom
ignore-agent-worktrees
Sep 11, 2026
Merged

Ignore the agent worktrees under .claude#44
MihaiBojin merged 1 commit into
mainfrom
ignore-agent-worktrees

Conversation

@MihaiBojin

Copy link
Copy Markdown
Contributor

.claude became a tracked directory when .claude/settings.json landed in #42, so Claude Code's per-agent worktrees under .claude/worktrees/ now show as untracked. Anything that asks for a clean working tree refuses:

$ rt release::prechecks 0.1.0 --branch main
?? .claude/worktrees/
ERROR: the working tree is dirty; commit or stash first.

That is the new command from #40 catching a consequence of #42 on its first real use, which is the outcome it was written for.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lp5si1kwiFK1w52a6usA33

.claude became a tracked directory when .claude/settings.json landed in #42,
which made Claude Code's per-agent worktrees show up as untracked. Anything
that asks for a clean working tree then refuses, which release::prechecks did
while cutting 0.1.0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lp5si1kwiFK1w52a6usA33
@MihaiBojin
MihaiBojin merged commit 2dd1471 into main Sep 11, 2026
3 checks passed
@MihaiBojin
MihaiBojin deleted the ignore-agent-worktrees branch September 11, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant