Skip to content

Worktree-per-agent automation — question on merge conflict UX #86

@vdalhambra

Description

@vdalhambra

Giving every coding agent its own git branch + worktree automatically is the cleanest answer I've seen to "how do I run 3 agents without them stomping each other's edits" — most multi-agent orchestrators try to share a workspace and end up rewriting half the file each turn. The Direct Mode (work on main when you want to) escape hatch is also the right pragmatic choice; sometimes you just want speed.

For context: I just open-sourced axiom-reflex — 7 PreToolUse hooks + 6 skills + 6 subagents for Claude Code. Apache 2.0: github.com/vdalhambra/axiom-reflex. Single-agent setup; I've been hand-rolling worktrees with the superpowers:using-git-worktrees skill but considering whether to graduate to something Parallel-Code-shaped.

Question: when two agents finish their tasks and both produce mergeable-but-overlapping diffs, what's the merge UX? Manual rebase in the host editor, automated 3-way merge inside the app, or do you just sequence them and let one block? The first time I tried this on my own I got a 4-way conflict that took longer to resolve than just doing the work serially.

No marketing intent — comparing notes between adjacent solo builders. Show HN Tuesday.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions