Skip to content

meistrari/clean-worktrees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clean-worktrees

CLI tool to clean up leftover agent worktrees (Codex, Claude Code, etc.)

AI coding agents like Codex create temporary worktrees that pile up over time, eating disk space (and messing with your git history). This tool finds and removes them.

Usage

# Preview what would be deleted
bunx clean-worktrees --codex --dry-run

# Clean with confirmation prompt
bunx clean-worktrees --codex

# Clean without confirmation
bunx clean-worktrees --codex --force

Flags

Flag Description
--codex Clean Codex worktrees (~/.codex/worktrees/)
--dry-run Preview what would be deleted without deleting
--force, -f Skip confirmation prompt

License

MIT

About

CLI tool to clean up leftover agent worktrees (Codex, Claude Code, etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors