Skip to content

Add thinktank clean command to manage worktree accumulation#98

Merged
that-github-user merged 1 commit into
mainfrom
issue-56-clean-command
Mar 28, 2026
Merged

Add thinktank clean command to manage worktree accumulation#98
that-github-user merged 1 commit into
mainfrom
issue-56-clean-command

Conversation

@that-github-user

Copy link
Copy Markdown
Owner

Summary

  • thinktank clean removes all thinktank worktrees, prunes orphans, deletes branches
  • thinktank clean --all also deletes .thinktank/ run history
  • Safely unlinks node_modules junctions before removing worktrees (Windows safety)
  • 5 tests for clean functionality

Generated by thinktank Opus — 5 agents (3 timed out, 2 succeeded). Agent #5 recommended. Both passing agents had similar test coverage.

Change type

  • New feature

Related issue

Closes #56

How to test

npm test  # 87 tests pass
thinktank clean  # removes leftover worktrees
thinktank clean --all  # also removes .thinktank/ history

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with thinktank (Opus)

- Lists and removes all thinktank worktrees (safely unlinks junctions first)
- Prunes orphaned worktrees, deletes thinktank/* branches
- --all flag to also delete .thinktank/ run history
- 5 tests for clean functionality

Generated by thinktank Opus (5 agents, 2 succeeded, Agent #5 recommended).

Closes #56

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user

Copy link
Copy Markdown
Owner Author

Self-review: Clean command tested live — removed 4 worktrees and 4 branches. Safely handles junctions. --all flag deletes history. 87 tests pass, CI green.

@that-github-user that-github-user merged commit 1285dc2 into main Mar 28, 2026
4 checks passed
@that-github-user that-github-user deleted the issue-56-clean-command branch March 28, 2026 20:31
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.

Add thinktank clean command to manage worktree accumulation

1 participant