HeadlinesBriefing favicon HeadlinesBriefing.com

Weave: Semantic Git Merge Driver

Hacker News •
×

Ataraxy-Labs has introduced Weave, a Git merge driver that resolves conflicts by understanding code structure rather than just comparing lines. Traditional Git fails when multiple developers add code to the same file, even if they work on completely different functions, causing false conflicts that demand manual resolution. Weave uses tree-sitter to parse code into semantic entities like functions and classes, enabling it to merge changes at the entity level rather than the line level.

Benchmark testing shows Weave resolved 31/31 merge conflicts successfully, compared to Git's 15/31 resolution rate across major open-source repositories. The tool handles different scenarios like independent function additions, modifications to adjacent code, and even identical additions—all without introducing errors. When real conflicts occur, Weave provides context Git lacks, showing exactly which entity conflicted and why.

Zero regressions were found across all repositories during testing, including Git/Flask/CPython/Go/TypeScript projects. Weave currently supports 10 programming languages including TypeScript, JavaScript, Python, Go, Rust, JSON, YAML, TOML, and Markdown files, with a fallback to standard line-level merging for unsupported types or large files. The solution represents a significant advancement in collaborative development workflows, especially for teams with multiple AI agents working on the same codebase.