AgentHub Branch Merger

0•

Merges winning multi-agent branches into base repository branches while archiving alternative attempts and cleaning up worktrees.

The AgentHub Branch Merger skill automates the finalization of multi-agent coding sessions by landing the best-performing agent branch into the main codebase. It executes safe, non-fast-forward git merges for the selected or top-evaluated agent, archives losing implementations via Git tags to preserve experiment history, prunes temporary worktrees, and posts structured merge summaries to keep project history organized and clean.

Key Features

01Identifies and merges the top-ranked agent implementation into the base branch
02Generates detailed Markdown merge summaries and session state updates
03Supports explicit winner overrides and diff confirmations prior to merge execution
04Automatically cleans up orphaned agent worktree directories from local storage
050 GitHub stars
06Safely preserves losing agent branches as Git tags for long-term auditability

Use Cases

01Preserving alternative AI-generated solutions as Git tags before branch cleanup
02Landing the winning implementation from competing multi-agent development sessions
03Tidying workspace directories and updating repository session metadata after automated agent runs