pub fn remove_subagent_worktree(
worktree_path: &Path,
safety_check: bool,
) -> Result<(), AgentError>Expand description
Clean up a subagent worktree.
Removes the worktree from disk (via git worktree remove --force) and
prunes stale worktree metadata. If safety_check is true, checks for
uncommitted changes before removing and returns an error if the worktree
is dirty.