Rift CLI: Manage Git Worktrees for Parallel AI Agent Workflows

Rift is a Git worktree manager built specifically for parallel AI agent workflows. It addresses the friction of having a single repository occupied by one agent while you want to start another task, eliminating issues with branch switching, stashing, and dependency conflicts.
How It Works
The basic workflow involves three commands:
rift init- Initialize in your projectrift open- Creates an isolated branch + worktree and launches Claude Code (or any agent) inside itrift close- Cleans up the worktree and branch when done
Each worktree is a full, independent copy of your repository on its own branch, allowing you to work on as many features simultaneously as you want.
Key Features for Multi-Agent Workflows
- Lifecycle hooks that let you auto-install dependencies, run migrations, and assign ports per worktree
- Deterministic port mapping - every worktree gets unique ports so you can run multiple development servers without collisions
rift codeopens all active worktrees in one VS Code/Cursor/Windsurf workspace- Works with any CLI agent - Claude Code, Copilot, Codex, Aider, or whatever you prefer
Technical Details
The project was built with Claude Code itself and is open source under the MIT license. It's built with Bun and available on npm:
npm install -g @priyashpatil/riftGitHub repository: https://github.com/priyashpatil/rift
Documentation: https://rift.priyashpatil.com
📖 Read the full source: r/ClaudeAI
👀 See Also

Printable Claude Code Cheat Sheet with Weekly Auto-Updates
A developer created a one-page printable cheat sheet for Claude Code using Claude itself, covering keyboard shortcuts, slash commands, workflows, skills system, memory/CLAUDE.md, MCP setup, CLI flags, and config files. The HTML file is auto-updated weekly via cron job with new features tagged as 'NEW'.

SpecLock: MCP Server for Enforcing AI Coding Constraints
SpecLock is an open-source MCP server that remembers project constraints across sessions and blocks AI coding agents from violating them. Claude independently tested it with 100 adversarial tests, scoring 100/100 with zero false positives and 15.7ms per check.

Claude Code Used to Simulate 4,000+ Blind Werewolf Games with LLMs
A developer used Claude Code to build a simulator where LLMs play blind one-night Werewolf, running ~4,600 games across OpenAI and xAI models. The experiment revealed consistent name-based voting patterns despite minimal game signals.

Replacing complex retrieval pipelines with simple git commands for AI agents
A developer replaced their 3GB Docker image with sentence-transformers, rank-bm25, and scikit-learn with a single tool that lets AI agents execute read-only shell commands like git log, grep, and git diff directly on their memory repository.