Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 12, 2026·2 min de lectura

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.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
Asset
Comando de instalación directa
npx -y tokrepo@latest install 8fc2a9d7-93f4-48bf-9460-b591f1d988f6 --target codex

Ejecutar después de confirmar el plan con dry-run.

Introducción

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.

🙏

Fuente y agradecimientos

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

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados