All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Weave: Semantic Merge Driver for Git Uses Tree-Sitter to Resolve Code Conflicts

By

rs545837

2mo ago· 5 min readenCode

Summary

Weave is a semantic merge driver for Git that resolves merge conflicts by understanding code structure using tree-sitter, rather than just comparing lines. It addresses the problem where Git creates false conflicts when multiple developers or AI agents add different functions to the same file, even though the changes are independent. The tool achieved 31/31 clean merges in testing compared to Git's 15/31, demonstrating significant improvement in handling complex merge scenarios.

Key quotes

· 5 pulled
Resolves merge conflicts that Git can't by understanding code structure via tree-sitter.
Git merges by comparing lines. When two branches both add code to the same file — even to completely different functions — Git sees overlapping line ranges and declares a conflict.
These are completely independent changes. There's no real conflict. But someone has to manually resolve it anyway.
This happens constantly when multiple AI agents work on the same codebase. Agent A adds a function, Agent B adds a different function to the same file, and Git halts everything.
31/31 clean merges vs git's 15/31.
Snippet from the RSS feed
Entity-level semantic merge driver for Git. Resolves conflicts that git can't by understanding code structure via tree-sitter. 31/31 clean merges vs git's 15/31. - Ataraxy-Labs/weave

You might also wanna read