Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 12, 2026·2 min de lecture

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.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Asset
Commande d'installation directe
npx -y tokrepo@latest install 8fc2a9d7-93f4-48bf-9460-b591f1d988f6 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

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 et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires