Twig
Git worktrees for agents with native copy-on-write
Developer ToolsOpen sourceOpen source · verified#git#cli#copy-on-write
Listed by the ProductPerch team from GitHub · not launched here yet
What is Twig?
Twig is a command line tool that creates ordinary linked Git worktrees using native copy-on-write technology. It allows developers and AI agents to maintain multiple branches simultaneously while significantly reducing disk space consumption. The tool replaces the standard git worktree add command and integrates directly into existing Git workflows.
Native cloning support requires macOS with APFS or Linux systems using Btrfs or reflink-enabled XFS file systems. For other environments, it falls back to standard Git checkout methods. The project is currently marked as a prototype rather than a production sandbox.
Installation is available through Cargo for Rust environments or via a Homebrew tap. Users must have Git version 2.40 or newer installed. The package includes a bundled skill designed specifically for AI agent onboarding and management tasks.
Twig features
- Creates linked Git worktrees with native copy-on-write
- Reduces disk space usage across multiple branches
- Compatible with macOS APFS and Linux Btrfs/XFS reflink
- Provides a full CLI interface for managing worktrees
- Includes a bundled skill for AI agent integration
- Supports locking, pruning, and repairing worktree registrations
Who uses Twig and for what
- Managing isolated development branches without duplicating repository data
- Enabling AI coding agents to work on separate branches simultaneously
- Testing experimental features in lightweight, independent checkouts
- Maintaining multiple project versions side-by-side on limited storage
Twig FAQ
Is Twig free?
The website does not say.
Is Twig open source?
Yes, installation instructions reference a GitHub repository at github.com/leostera/git-twig, indicating it is open source.
What is Twig used for?
It creates ordinary linked Git worktrees using native copy-on-write to manage multiple branches while reducing disk usage.
Does Twig work on Mac?
Yes, it supports macOS with APFS for native copy-on-write cloning, though it requires Git 2.40 or newer.
How do I install Twig?
You can install it via Rust using cargo install git-twig --locked, or through Homebrew by tapping leostera/git-twig and running brew install.
Comments (0)
Comments and upvotes open when this product launches on ProductPerch.
More Developer Tools launches
Monitor Laravel scheduled tasks and queues
Convert Cursor rules to AGENTS.md in the browser. No upload.

Feel iOS haptic patterns on a real iPhone, copy the code
Deploy anywhere from your AI tool.
Python code quality analyzer for developers
eBay listing data for apps and agents