Git worktree manager for AI agents

Spin up isolated worktrees, each with its own branch and AI coding agent, so you can work on multiple features at once without stashing or switching.

$ npm install -g @priyashpatil/rift

Run rift config, restart your terminal, then rift init in your project. See the Getting Started guide.

Rift - Git worktree manager for AI agents | Product Hunt

Features

Work on everything at once

Every task gets its own isolated worktree and branch, so you never stash, switch, or wait again.

Bring any agent

Codex, Amp, Claude Code, OpenCode, or any CLI command — just plug it in.

Zero port conflicts

Deterministic hash-based port mapping means every worktree runs services simultaneously without collisions.

Hooks that handle the busywork

Auto-install deps, seed databases, assign ports — all triggered by worktree lifecycle events.

Launch and go

rift open creates the branch, sets up the worktree, and drops you in with your agent running.

Supported agents

Any CLI agent works — just set the command in rift.yaml. Common agents include Codex, Amp, Claude Code, OpenCode, Copilot, Gemini, Kiro, and Continue, but you can use any command (e.g. codex, amp, claude --model opus, or a custom script).