Welcome to Hive! This guide will help you get the most out of Hive's powerful features for managing git worktrees and AI-powered coding sessions.
- Getting Started
- Core Concepts
- Working with Projects
- Managing Worktrees
- AI Coding Sessions
- Connections
- File Management
- Git Operations
- Using Spaces
- Keyboard Shortcuts
- Tips and Tricks
When you first open Hive, you'll see an empty project list. Let's add your first project!
- Click the "Add Project" button
- Navigate to any git repository on your machine
- Select the repository folder and click "Open"
Hive will analyze your repository and display it in the sidebar.
Hive's interface is divided into three main areas:
- Left Sidebar: Projects and worktrees navigation
- Main Pane: Active worktree content, file viewer, or AI session
- Right Panel: File tree, git status, and other contextual tools
- Project: A git repository on your machine
- Worktree: An isolated working copy of a specific branch
Think of worktrees as parallel universes for your code — each one can have different branches checked out simultaneously without affecting others.
Traditional git workflow:
git stash
git checkout feature-branch
# Work on feature
git stash
git checkout main
git stash popWith Hive worktrees:
- Click on the worktree for
feature-branch - Work on feature
- Click on the worktree for
main - Both remain exactly as you left them!
You can add projects in multiple ways:
- GUI Method: Click "Add Project" button
- Drag and Drop: Drag a git repository folder into Hive
- Command Palette: Press
Cmd+Kand type "Add Project"
Right-click on any project to:
- Open in Finder
- Open in Terminal
- Copy repository path
- Remove from Hive (doesn't delete files)
- View project settings
Projects can be organized into Spaces (see Using Spaces) and pinned for quick access.
- Select a project
- Click "New Worktree"
- Choose an existing branch or create a new one
- Hive automatically assigns a unique city-based name (e.g., "tokyo", "paris")
Hive uses a clever naming system:
- Each worktree gets a city name from a pool of 200+ cities
- If a city is taken, it adds a version suffix (-v1, -v2, etc.)
- You can rename worktrees after creation
- Open: Click to open the worktree in the main pane
- Archive: Safely remove the worktree while preserving the branch
- Unbranch: Remove the worktree and delete the branch
- Terminal: Open a terminal in the worktree directory
- Copy Path: Copy the worktree's file system path
Archived worktrees are moved to ~/.hive-archive and can be:
- Restored later if needed
- Permanently deleted to free up space
- Searched in session history
- Open a worktree
- Click "New Session"
- Choose your AI provider:
- OpenCode: Full-featured with undo/redo support
- Claude Code: Anthropic's coding assistant
Type your request in the chat input. Be specific about what you want:
- ✅ "Add a dark mode toggle to the settings page"
- ❌ "Make it better"
When the AI needs to perform actions, you'll see permission requests:
- Read files: Allow the AI to read specific files
- Write files: Allow modifications to files
- Run commands: Execute terminal commands
Always review what the AI wants to do before approving!
- OpenCode: Full undo/redo support with
Cmd+Z/Cmd+Shift+Z - Claude Code: Undo only (rewind to previous state)
- Pause: Temporarily stop the session
- Resume: Continue a paused session
- Archive: Save the session for later reference
- Export: Export chat history as markdown
- Be Specific: Clear instructions get better results
- Review Changes: Always review AI-generated code
- Test Incrementally: Test changes as you go
- Use Undo: Don't hesitate to undo if something goes wrong
- Save Context: Archive important sessions for reference
Hive's Worktree Connections feature allows you to link two worktrees together, creating powerful workflows for development across multiple branches.
Worktree connections create a bridge between two branches, allowing you to:
- View and reference code from another branch while working
- Share AI session context across branches
- Compare implementations side-by-side
- Maintain awareness of related changes
- Open a worktree (your "source")
- Click the Connections icon (🔌) in the toolbar
- Select "Connect to Worktree"
- Choose the target worktree from the list
- The connection is established immediately
Keep another branch visible for reference:
- Main branch while working on features
- Previous implementation during refactors
- Documentation branch while coding
Work on related features simultaneously:
- Frontend and backend branches
- API and client implementations
- Shared library and consumer branches
Compare different approaches:
- Performance optimizations
- Alternative implementations
- Before/after refactoring
When worktrees are connected, you'll see:
- File Browser - Browse files from the connected worktree
- Changes View - See what's different in the connected branch
- Quick Actions - Switch, diff, or copy between worktrees
- Status Bar - Connection health and sync status
- Click the connection indicator to switch
- Use
Cmd+Shift+Wto toggle between connected worktrees - Drag files from one worktree to another
- Open files from both worktrees side-by-side
Connected worktrees share:
- File references (read-only by default)
- AI session context (when enabled)
- Terminal output (optional)
- Git status information
Compare files between connected worktrees:
- Select a file in your current worktree
- Click "Compare with Connected"
- See a side-by-side diff
- Apply changes selectively
AI sessions can access both worktrees:
"Look at the implementation in the connected worktree and apply the same pattern here"
Connections are remembered:
- Survive Hive restarts
- Restore when worktrees are reopened
- Can be saved as connection profiles
Save common connection patterns:
- "Feature + Main" template
- "Frontend + Backend" template
- "Bug Fix + Production" template
- 🟢 Active - Both worktrees open and synced
- 🟡 Standby - One worktree closed but connection saved
- 🔴 Broken - Target worktree archived or deleted
- 🔄 Syncing - Updating file references
A worktree can connect to multiple others:
- Maximum of 3 connections per worktree
- Each connection has its own panel
- Switch between connections with tabs
To disconnect worktrees:
- Click the connection icon
- Select "Disconnect"
- Or use
Cmd+Shift+Dshortcut
- Connect Related Work - Link branches that share context
- Use for Reviews - Connect author and reviewer worktrees
- Maintain Main Connection - Keep main branch connected for reference
- Clean Up Stale Connections - Disconnect archived worktrees
- Name Connections - Give meaningful names to connection profiles
- Press
Cmd+KthenCto open connection dialog - Type partial worktree name
- Press Enter to connect
- Use
Cmd+Option+Wto switch
Cmd+K C- Connect worktrees (Cmd+K then C)Cmd+Option+W- Switch between connectedCmd+K D- Disconnect (Cmd+K then D)Cmd+Option+D- Diff with connected
Look for these connection indicators:
- 🔗 in the sidebar - Worktree has connections
- Badge number - Shows connection count
- Color coding - Active (green), standby (yellow)
- Animation - Pulsing when syncing
The file tree shows:
- 📁 Folders (expandable)
- 📄 Files (click to open)
- 🟢 New files (git status)
- 🟡 Modified files (git status)
- 🔴 Deleted files (git status)
- Open: Click any file to view it
- Edit: Double-click to open in the integrated editor
- Search:
Cmd+Pfor quick file search - Filter: Type in the filter box to narrow results
Hive includes a full Monaco editor (VS Code's editor):
- Syntax highlighting
- Code completion
- Go-to-definition
- Find and replace
- Multiple cursors
The git panel shows:
- Staged changes
- Unstaged changes
- Untracked files
Click any file to see its diff.
- Stage files by clicking the "+" icon
- Enter a commit message
- Click "Commit" or press
Cmd+Enter
- Create Branch: Right-click on worktree → "New Branch"
- Switch Branch: Not needed! Each worktree has its own branch
- Merge: Use the git panel or terminal
- Push/Pull: Available in the git panel
- Click "History" to see commit history
- Click any commit to see its changes
- Search history with
Cmd+F
Spaces help organize related projects and worktrees.
- Click "New Space" button
- Name your space (e.g., "Work", "Personal", "Open Source")
- Drag projects into the space
- Organization: Group related work
- Quick Switching:
Cmd+1-9to switch spaces - Isolation: Different spaces for different contexts
- Pinning: Pin important items within each space
| Shortcut | Action |
|---|---|
Cmd+K |
Open command palette |
Cmd+P |
Quick file search |
Cmd+Shift+P |
Quick project search |
Cmd+N |
New worktree |
Cmd+Shift+N |
New session |
Cmd+, |
Open settings |
Cmd+1-9 |
Switch to space 1-9 |
Cmd+0 |
Show all spaces |
| Shortcut | Action |
|---|---|
Cmd+S |
Save file |
Cmd+Z |
Undo |
Cmd+Shift+Z |
Redo |
Cmd+F |
Find in file |
Cmd+Shift+F |
Find in workspace |
Cmd+D |
Select next occurrence |
F12 |
Go to definition |
| Shortcut | Action |
|---|---|
Cmd+Enter |
Commit (when in message field) |
Cmd+Shift+S |
Stage all changes |
Cmd+Shift+U |
Unstage all changes |
- Use City Names: Remember worktrees by their city names instead of branch names
- Pin Favorites: Pin frequently used worktrees for quick access
- Keyboard Navigation: Master
Cmd+Kfor speed - Multiple Sessions: Run different AI sessions in different worktrees
- Quick Switch: Use
Cmd+Tabwithin Hive to switch worktrees
Create setup scripts that run when creating new worktrees:
- Settings → Scripts
- Add commands like
npm install,bundle install, etc. - Scripts run automatically for new worktrees
- Each worktree can have its own terminal session
- Terminals persist across Hive restarts
- Use
Cmd+Tto toggle terminal
Hive includes Language Server Protocol support:
- TypeScript, Python, Go, Rust, and more
- Automatic language server detection
- Per-worktree isolation
- Ensure you have git 2.20+ installed
- Check available disk space
- Verify repository isn't corrupted
- Check your internet connection
- Verify API keys in settings
- Try switching AI providers
- Limit open worktrees to 10-15
- Close unused file tabs
- Disable unused language servers
Now that you understand the basics:
- Set up your first project and create multiple worktrees
- Try an AI coding session with a simple task
- Organize your work with Spaces
- Customize settings to your preference
- Explore keyboard shortcuts for speed
Happy coding with Hive! 🐝