Show HN: Git extension for controlling Git worktree mess
9 hours ago
- Zit is a git extension designed for multiple developers and coding agents working on the same repository simultaneously.
- It uses copy-on-write workspaces instead of git worktrees, saving disk space and sharing dependencies.
- A claims system allows users to reserve files, symbols, or sections before editing, preventing collisions.
- The 'accept' command composes changes, runs checks against current state, and rejects changes that break constraints.
- Zit records the reason and cost (tokens, dollars) for each change, preserving context from agent sessions.
- It integrates with agents like Claude Code, Codex, Pi, and Autohand Code via CLI or MCP server.
- Measured results show reduced merge conflicts, significant disk savings (e.g., 327 MB vs 1,619 MB for npm dependencies), and lower cost per landed change.
- The tool provides a web view for live monitoring and supports plain git workflows without affecting teammates who don't use Zit.
- Evidence and automated tests validate key behaviors such as collision handling, compositional correctness, and safe parallel accepts.
- Zit is open source, available on crates.io, with prebuilt binaries for macOS and Linux.