Skip to content

Semantic merge driver for parallel task worktree merges #11710

@rs545837

Description

@rs545837

When running parallel tasks in separate worktrees or branches, merging results back hits git's line-level merge conflicts whenever two tasks touch the same file, even if they edited different functions.

weave is a semantic merge driver that merges at the function/class level using tree-sitter. Registers via .gitattributes so every git merge and git rebase uses it automatically. On benchmarks: 31/31 clean merges vs git's 15/31.

Also ships as an MCP server with 14 tools for agent coordination:

  • weave_claim_entity / weave_release_entity for advisory locks on specific functions/classes
  • weave_potential_conflicts for detecting overlapping changes between worktrees before merge
  • weave_preview_merge for simulating merge outcomes
  • weave_who_is_editing to check what other agents are touching

brew install ataraxy-labs/tap/weave

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions