komrad

Worktree

WorktreeService reads and removes the worktrees komrad created.

komrad.worktree.v1.WorktreeService

  • list_worktrees#

    List every worktree with its repository, branch, agents and last measured size.

  • get_worktree#

    Read one worktree: its size and largest entries, its uncommitted changes, and how it compares with the base branch.

  • remove_unowned_worktrees#

    Remove worktrees that no agent or task owns, such as those `list_worktrees` marks unowned.

  • delete_worktrees#

    Queue worktrees for deletion in the background, each as its fate says.

  • shrink_worktrees#

    Queue worktrees to be shrunk in the background.