frapercan

Agent Farm Cleanup — Development skill for Claude Code

Development community

Garbage-collect stale tmux sessions and worktrees.

How to install Agent Farm Cleanup

Installs to ~/.claude/skills/frapercan-agent-farm-agent-farm-cleanup/SKILL.md

Terminal
mkdir -p ~/.claude/skills/frapercan-agent-farm-agent-farm-cleanup && curl -fsSL https://raw.githubusercontent.com/frapercan/agent-farm/HEAD/commands/agent-farm-cleanup.md -o ~/.claude/skills/frapercan-agent-farm-agent-farm-cleanup/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Agent Farm Cleanup does


description: Garbage-collect stale tmux sessions and worktrees

Run `bash ~/Thesis2/agent-farm/scripts/cleanup.sh` to scan for orphaned tmux windows and worktrees left behind by crashed or killed agents, and report what would be removed. To actually delete them, add `--apply`. Report the cleanup summary.

Alternatives in Development

  • Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
  • Worktree Cleanup — Remove worktrees and branches that have been merged: $ARGUMENTS 23.4k ★
  • Claude Code Agent Farm — A powerful orchestration framework that runs multiple Claude Code (cc) sessions in parallel to systematically 704 ★

Full documentation available on GitHub

View Source Repository