Collaboration

Merge Commands

Need User Feedback

All distributed workflow operations are slash commands executed by the AI agent. There are no CLI commands for merge — the AI agent is essential for genome conflict resolution and source merge guidance.

Primary Commands

/reap.pull <branch>

The one-stop command for distributed merging. Fetches the remote, detects new generations on the target branch, creates a merge generation, and runs the full merge lifecycle. This is the distributed equivalent of /reap.evolve.

/reap.merge <branch>

Run a full merge generation for a local branch. No fetch — ideal for worktree-based parallel development. The local equivalent of /reap.pull.

/reap.push

Validates REAP state (warns if a generation is in progress) and pushes the current branch. Use after completing a generation.

Stage Commands (Fine-Grained Control)

/reap.merge.start

Create a merge generation for a target branch. Runs detect and generates 01-detect.md.

/reap.merge.detect

Review the divergence report. Re-run if needed.

/reap.merge.mate

Resolve genome conflicts interactively with the human.

/reap.merge.merge

Run git merge --no-commit and resolve source conflicts.

/reap.merge.reconcile

Verify genome-source consistency. AI compares genome and source, user confirms inconsistencies.

/reap.merge.validation

Run mechanical testing (bun test, tsc, build). Regress on failure.

/reap.merge.completion

Commit and archive the merge generation.

/reap.merge.evolve

Run the merge lifecycle from the current stage to completion.

Merge Hooks

EventWhen it fires
onMergeStartedAfter /reap.merge.start creates a merge generation
onMergeDetectedAfter detect stage completes
onMergeMatedAfter mate stage completes (genome resolved)
onMergeMergedAfter merge stage completes (source merged)
onMergeReconciledAfter reconcile stage completes (genome-source consistency verified)
onMergeValidatedAfter merge validation completes
onMergeCompletedAfter merge completion + archiving
onMergeTransitedAfter any merge stage transition (generic)

onMergeTransited fires on every merge stage transition, similar to onLifeTransited for normal lifecycle.