Table of Contents
- Installation
- What is Hive?
- Features
- Why Hive?
- Quick Start
- Connections - The Game Changer
- Screenshots
- Community & Support
- Roadmap
- Development
- Contributing
- License
Installation
๐ macOS only โ Windows and Linux support coming soon.
Via Homebrew (Recommended)
brew tap morapelker/hive brew install --cask hive
Direct Download
Download the latest .dmg from GitHub Releases.
That's it! Open Hive from your Applications folder and point it at a git repo.
What is Hive?
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.
Features
๐ณ Worktree-First Workflow
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.
๐ค Built-in AI Coding Sessions
Run AI coding agents directly inside Hive with OpenCode, Claude Code, and Codex support. Stream responses in real-time, watch tool calls execute, and approve permissions as needed. Full undo/redo support keeps you in control.
๐ Smart File Explorer
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.
๐ง Complete Git Integration
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.
๐ฆ Spaces for Organization
Group related projects and worktrees into logical workspaces. Pin your favorites for quick access. Keep your development environment organized as you scale.
โก Command Palette
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.
๐จ Beautiful Themes
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.
๐ฅ๏ธ Language Server Protocol
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.
๐ Worktree Connections
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.
Why Hive?
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 |
Quick Start
Get up and running in under 2 minutes:
1๏ธโฃ Add Your First Project
Open Hive โ Click "Add Project" โ Select any git repository on your machine
2๏ธโฃ Create a Worktree
Select your project โ Click "New Worktree" โ Choose a branch (or create a new one)
3๏ธโฃ Start Coding with AI
Open a worktree โ Click "New Session" โ Start coding with OpenCode, Claude, or Codex
๐ก Pro tip: Press
Cmd+Kanytime to open the command palette and navigate quickly!
๐ Read the full guide | โจ๏ธ Keyboard shortcuts
๐ Worktree Connections - The Game Changer
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.
What Are Worktree Connections?
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
How It Works
- 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
Connection Features
- โ 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
Example Use Cases
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.
See It In Action
More Screenshots
Community & Support
Get Help
- ๐ 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
Resources
- User Guide โ Getting started and tutorials
- FAQ โ Common questions and troubleshooting
- Keyboard Shortcuts โ Complete shortcuts reference
Roadmap
๐ Coming Soon
- Cross-platform support โ Windows and Linux builds
- Plugin system โ Extend Hive with custom integrations
- Cloud sync โ Sync settings, sessions, and connection templates across devices
- Team features โ Share worktrees and collaborate in real-time
- Git graph visualization โ Visual branch history and merges
- Performance profiling โ Built-in tools for optimization
๐ฏ Future Vision
- 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
Prerequisites
- Node.js 20+
- pnpm 9+
- Git 2.20+ (worktree support)
Setup
git clone https://github.com/anomalyco/hive.git
cd hive
pnpm install
pnpm devGhostty Terminal (Optional)
Hive 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.
Commands
| 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 |
Architecture
Hive uses Electron's three-process model with strict sandboxing:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Main Process โ
โ (Node.js + SQLite) โ
โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ โ
โ โ Database โ โ Git โ โ Agent SDK Mgr โ โ
โ โ Service โ โ Service โ โ (AI Sessions) โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโดโโโโโโโโ โ
โ โ IPC Handlers โ โ
โ โโโโโโโโโฌโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Typed IPC
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โโโโโโโโโดโโโโโโโโ โ
โ โ Preload โ โ
โ โ (Bridge) โ โ
โ โโโโโโโโโฌโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ window.* APIs
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Renderer Process โ
โ (React + Tailwind) โ
โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ โ
โ โ Zustand โ โ shadcn/ โ โ Components โ โ
โ โ Stores โ โ ui โ โ (14 domains) โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Project Structure
src/
โโโ main/ # Electron main process (Node.js)
โ โโโ db/ # SQLite database + schema + migrations
โ โโโ ipc/ # IPC handler modules
โ โโโ services/ # Git, AI agents, 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
Tech Stack
| 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, Claude Code, Codex |
| Git | simple-git |
| Build | electron-vite |
Documentation
Detailed docs live in docs/:
- PRDs -- Product requirements
- Implementation -- Technical guides
- Specs -- Feature specifications
- Plans -- Active implementation plans
Contributing
We love contributions! Hive is built by developers, for developers, and we welcome improvements of all kinds.
Ways to Contribute
- ๐ 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.
Quick Contribution Guide
- 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.
License
MIT ยฉ 2024 morapelker
Hive is open source software licensed under the MIT License. See the LICENSE file for full details.




