# Worktree

WorktreeService reads and removes the worktrees komrad created.

`komrad.worktree.v1.WorktreeService`

-   [`list_worktrees`](https://komrad.dev/latest/api/worktree/list-worktrees.md)
    
    List every worktree with its repository, branch, agents and last measured size.
    
-   [`get_worktree`](https://komrad.dev/latest/api/worktree/get-worktree.md)
    
    Read one worktree: its size and largest entries, its uncommitted changes, and how it compares with the base branch.
    
-   [`remove_unowned_worktrees`](https://komrad.dev/latest/api/worktree/remove-unowned-worktrees.md)
    
    Remove worktrees that no agent or task owns, such as those \`list\_worktrees\` marks unowned.
    
-   [`delete_worktrees`](https://komrad.dev/latest/api/worktree/delete-worktrees.md)
    
    Queue worktrees for deletion in the background, each as its fate says.
    
-   [`shrink_worktrees`](https://komrad.dev/latest/api/worktree/shrink-worktrees.md)
    
    Queue worktrees to be shrunk in the background.
