SkillsMay 12, 2026·2 min read

Weave — Entity-Level Git Merge Driver

Weave is an entity-level Git merge driver that merges code by function/class (not lines) to reduce false conflicts in parallel branches and agent edits.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
Asset
Direct install command
npx -y tokrepo@latest install 8fc2a9d7-93f4-48bf-9460-b591f1d988f6 --target codex

Run after dry-run confirms the install plan.

Intro

Weave is an entity-level Git merge driver that merges code by function/class (not lines) to reduce false conflicts in parallel branches and agent edits.

  • Best for: teams running parallel branches (humans or agents) who want fewer merge-conflict interruptions
  • Works with: Git (merge driver), Homebrew or Rust toolchain; common code file types (TS/Python/Go/Rust, etc.)
  • Setup time: 5 minutes

Practical Notes

  • Setup time ~5 minutes: install + weave setup in one repo
  • Works across many languages; falls back to normal line-level merge for unsupported file types
  • GitHub stars/forks (verified) for adoption signal: see Source & Thanks

Weave is most useful when your conflicts are structural, not truly overlapping:

  • Two agents edit different functions in the same file.
  • One branch adds imports while another refactors a nearby block.
  • A class gets new methods on both sides, but Git still panics because the line context overlaps.

A practical rollout pattern:

  1. Enable it in one repo first and keep it as a team convention (so merges behave the same in CI and locally).
  2. If you don't want to touch .gitattributes, start with the per-user setup using .git/info/attributes.
  3. Keep a “safe revert” habit: weave unsetup restores normal Git merging if you hit an edge case.

Treat it like a merge accelerator for multi-branch work: it doesn't replace code review, but it reduces the mechanical time spent resolving conflicts that were never real.

FAQ

Q: What is Weave in one sentence? A: An entity-level Git merge driver that merges code by function/class instead of line diffs.

Q: Is it free? A: Yes — it's open-source and licensed under an SPDX license listed below.

Q: How do I remove it from a repo? A: Run weave unsetup to revert the merge-driver configuration.

🙏

Source & Thanks

Source: https://github.com/Ataraxy-Labs/weave > License: Apache-2.0 > GitHub stars: 999 · forks: 28

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets