An open-source AI agent orchestrator for parallel coding across projects.
Run Claude Code, OpenCode, and Codex sessions in parallel. One window. Isolated branches. Zero tab chaos.
- What is Hive?
- Features
- Why Hive?
- Installation
- Quick Start
- Connections - The Game Changer
- Screenshots
- Community & Support
- Roadmap
- Development
- Contributing
- License
If you run multiple AI coding agents across different projects and branches, you know the pain -- six terminal tabs open, you can't remember which agent is working on what, and you're worried two of them are editing the same files.
Hive is an AI agent orchestrator. See all your running agents in one sidebar, click to switch between them, and each one runs on an isolated git worktree branch so they can't conflict. Connect multiple repositories together so a single agent session has context across your entire stack.
Work on multiple branches simultaneously without stashing or switching. Create, archive, and organize worktrees with one click. Each worktree gets a unique city-based name for easy identification.
Run AI coding agents directly inside Hive with both OpenCode and Claude Code support. Stream responses in real-time, watch tool calls execute, and approve permissions as needed. Full undo/redo support keeps you in control.
See what changed at a glance with live git status indicators. View diffs inline, browse file history, and navigate your codebase without leaving the app. Integrated Monaco editor provides a full VS Code experience.
Commit, push, pull, and manage branches visually. No terminal needed for common git operations. See pending changes, staged files, and commit history all in one place.
Group related projects and worktrees into logical workspaces. Pin your favorites for quick access. Keep your development environment organized as you scale.
Navigate and act fast with keyboard shortcuts. Press Cmd+K to access any feature instantly. Search sessions, switch worktrees, or run commands without touching the mouse.
Choose from 10 carefully crafted themes β 6 dark and 4 light. Switch instantly to match your preference or time of day. Follows system theme automatically if desired.
Full LSP integration with per-worktree language servers. Get intelligent code completion, go-to-definition, hover tooltips, and real-time diagnostics for TypeScript, Python, Go, Rust, and more.
Connect two worktrees together to share context, compare implementations, or collaborate in real-time. Perfect for reviewing changes between branches, sharing AI sessions across worktrees, or maintaining consistency when working on related features. See live updates as connected worktrees change.
See how Hive transforms your git workflow:
| Task | Traditional Workflow | With Hive |
|---|---|---|
| Switch branches | git stash β git checkout β git stash pop |
Click on worktree β Done |
| Work on multiple features | Constant stashing and context switching | Open multiple worktrees side-by-side |
| Create worktree | git worktree add ../project-feature origin/feature |
Click "New Worktree" β Select branch |
| AI coding assistance | Terminal + separate AI tool + copy/paste | Integrated AI sessions with full context |
| View file changes | git status β git diff file.ts |
Visual tree with inline diffs |
| Compare branches | Multiple terminal tabs, copy/paste between | Connect worktrees to share context |
| Find a worktree | cd ~/projects/... β remember directory names |
All worktrees in one sidebar |
| Clean up worktrees | git worktree remove β rm -rf directory |
Click "Archive" β Handles everything |
π macOS only β Windows and Linux support coming soon.
brew tap morapelker/hive
brew install --cask hiveDownload the latest .dmg from GitHub Releases.
That's it! Open Hive from your Applications folder and point it at a git repo.
Get up and running in under 2 minutes:
Open Hive β Click "Add Project" β Select any git repository on your machine
Select your project β Click "New Worktree" β Choose a branch (or create a new one)
Open a worktree β Click "New Session" β Start coding with OpenCode or Claude
π‘ Pro tip: Press
Cmd+Kanytime to open the command palette and navigate quickly!
π Read the full guide | β¨οΈ Keyboard shortcuts
Hive's Worktree Connections feature lets you link two worktrees together, creating a bridge between different branches or features. This is incredibly powerful for development workflows that require cross-branch awareness.
Connect any two worktrees to:
- π Share Context - Access files and changes from another branch instantly
- π€ Collaborate - Work on related features with live updates between worktrees
- π Compare - See differences between implementations side-by-side
- π― Reference - Keep your main branch visible while working on features
- π Link Features - Connect frontend and backend branches for full-stack development
- π¬ Share AI Sessions - Continue AI conversations across different worktrees
- Select Source Worktree - Choose the worktree you're working in
- Connect to Target - Click the connection icon and select another worktree
- Bidirectional Link - Both worktrees become aware of each other
- Real-time Updates - See changes in connected worktrees as they happen
- β Live Sync - File changes in one worktree appear in the connection panel
- β Quick Switch - Jump between connected worktrees with one click
- β Diff View - Compare files between connected worktrees
- β Shared Terminal - Run commands that affect both worktrees
- β AI Context Sharing - AI sessions can reference connected worktree code
- β Status Indicators - See build status, tests, and changes in connected worktrees
- β Connection History - Track which worktrees were connected and when
- β Smart Suggestions - Hive suggests relevant worktrees to connect based on your workflow
Feature Development: Connect your feature branch to main to ensure compatibility and see how your changes integrate.
Bug Fixes: Connect the bug fix worktree to the production branch to verify the fix works in context.
Code Reviews: Connect reviewer and author worktrees to discuss changes with full context on both sides.
Full-Stack Development: Connect frontend and backend worktrees to work on API and UI simultaneously with perfect coordination.
Refactoring: Connect old and new implementations to ensure feature parity during large refactors.
More Screenshots
- π Read the documentation for detailed guides
- π Report bugs with reproduction steps
- π‘ Request features you'd like to see
- π¬ Join discussions to connect with the community
- π Report security vulnerabilities responsibly
- User Guide β Getting started and tutorials
- FAQ β Common questions and troubleshooting
- Keyboard Shortcuts β Complete shortcuts reference
- Cross-platform support β Windows and Linux builds
- Plugin system β Extend Hive with custom integrations
- Enhanced Connections β Multi-way connections, connection groups, smart suggestions
- Cloud sync β Sync settings, sessions, and connection templates across devices
- Team features β Share worktrees and collaborate in real-time
- Custom AI models β Bring your own OpenAI/Anthropic API keys
- Terminal tabs β Multiple terminal sessions per worktree
- Git graph visualization β Visual branch history and merges
- Performance profiling β Built-in tools for optimization
- Connection Intelligence β AI-powered connection suggestions based on git history
- Connection Marketplace β Share and discover connection templates
- Remote development β SSH and container-based development
- Three-way connections β Connect and merge multiple branches visually
- CI/CD integration β GitHub Actions, GitLab CI, Jenkins monitoring
- Connection automation β Auto-connect related branches based on patterns
- Code review mode β Special connection type optimized for reviews
- Time tracking β Per-worktree and per-connection activity analytics
Want to influence the roadmap? Join the discussion or contribute!
Development
- Node.js 20+
- pnpm 9+
- Git 2.20+ (worktree support)
git clone https://github.com/anomalyco/hive.git
cd hive
pnpm install
pnpm devHive includes an optional native terminal powered by Ghostty's libghostty. This is only needed if you want to work on the embedded terminal feature.
Setup:
-
Build
libghosttyfrom the Ghostty source (build instructions):cd ~/Documents/dev git clone https://github.com/ghostty-org/ghostty.git cd ghostty zig build -Doptimize=ReleaseFast
This produces
macos/GhosttyKit.xcframework/macos-arm64_x86_64/libghostty.a. -
If your Ghostty repo is at
~/Documents/dev/ghostty/, the build will find it automatically. Otherwise, set the path:export GHOSTTY_LIB_PATH="/path/to/libghostty.a"
-
Rebuild the native addon:
cd src/native && npx node-gyp rebuild
If libghostty is not available, Hive still builds and runs -- the Ghostty terminal feature will just be disabled.
| Command | Description |
|---|---|
pnpm dev |
Start with hot reload |
pnpm build |
Production build |
pnpm lint |
ESLint check |
pnpm lint:fix |
ESLint auto-fix |
pnpm format |
Prettier format |
pnpm test |
Run all tests |
pnpm test:watch |
Watch mode |
pnpm test:e2e |
Playwright E2E tests |
pnpm build:mac |
Package for macOS |
Hive uses Electron's three-process model with strict sandboxing:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Main Process β
β (Node.js + SQLite) β
β β
β ββββββββββββ ββββββββββββ βββββββββββββββββββββ β
β β Database β β Git β β OpenCode Service β β
β β Service β β Service β β (AI Sessions) β β
β ββββββββββββ ββββββββββββ βββββββββββββββββββββ β
β β β
β βββββββββ΄ββββββββ β
β β IPC Handlers β β
β βββββββββ¬ββββββββ β
ββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ
β Typed IPC
ββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ
β βββββββββ΄ββββββββ β
β β Preload β β
β β (Bridge) β β
β βββββββββ¬ββββββββ β
ββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ
β window.* APIs
ββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ
β Renderer Process β
β (React + Tailwind) β
β β
β ββββββββββββ ββββββββββββ βββββββββββββββββββββ β
β β Zustand β β shadcn/ β β Components β β
β β Stores β β ui β β (14 domains) β β
β ββββββββββββ ββββββββββββ βββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
src/
βββ main/ # Electron main process (Node.js)
β βββ db/ # SQLite database + schema + migrations
β βββ ipc/ # IPC handler modules
β βββ services/ # Git, OpenCode, logger, file services
βββ preload/ # Bridge layer (typed window.* APIs)
βββ renderer/src/ # React SPA
βββ components/ # UI organized by domain
βββ hooks/ # Custom React hooks
βββ lib/ # Utilities, themes, helpers
βββ stores/ # Zustand state management
| Layer | Technology |
|---|---|
| Framework | Electron 33 |
| Frontend | React 19 |
| Language | TypeScript 5.7 |
| Styling | Tailwind CSS 4 + shadcn/ui |
| State | Zustand 5 |
| Database | better-sqlite3 (WAL mode) |
| AI | OpenCode SDK |
| Git | simple-git |
| Build | electron-vite |
Detailed docs live in docs/:
- PRDs -- Product requirements
- Implementation -- Technical guides
- Specs -- Feature specifications
- Plans -- Active implementation plans
We love contributions! Hive is built by developers, for developers, and we welcome improvements of all kinds.
- π Report bugs with clear reproduction steps
- π‘ Suggest features that would improve your workflow
- π Improve documentation to help others get started
- π¨ Submit UI/UX improvements for better usability
- π§ Fix bugs from our issue tracker
- β‘ Optimize performance in critical paths
- π§ͺ Add tests to improve coverage
- π Translate the app to your language
Before contributing, please read our Contributing Guidelines and Code of Conduct.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
pnpm test) and linting (pnpm lint) - Commit with a descriptive message
- Push to your fork
- Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
MIT Β© 2024 morapelker
Hive is open source software licensed under the MIT License. See the LICENSE file for full details.




