Agent Farm Cleanup — Development skill for Claude Code
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
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 RepositoryRelated Skills
Vulyk Gc
Memory garbage collection - consolidate learnings, prune stale pointers, clean snapshots
Ctx Cleanup
Clean up completed worktrees and branches
Clean Worktree
Clean stale worktrees (pruned, merged, or orphaned branches)
Clean Worktrees
Automatically clean all stale worktrees (pruned refs + merged branches)
Spaceguard
macOS menu-bar app that watches free disk space and cleans stale dev caches, simulator runtimes and coding-age
Unstick
Diagnose and fix a stuck card — clears stale state, labels, worktrees
Related Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and
Codex Orchestrator
CLI tool for delegating tasks to GPT Codex agents via tmux sessions. Designed for Claude Code orchestration wi