/hive:configfrom hive
Configures hive for development workflows with rules, windows, keybindings, and tmux integration. Guides users through YAML config setup, regex-based repo matching, and template variables.
Ships in hive. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Set up and customize hive to match development workflows with rules, windows, keybindings, and terminal integration.
Location: ~/.config/hive/config.yaml
Current version: 0.2.5
cat ~/.config/hive/config.yaml # View config
$EDITOR ~/.config/hive/config.yaml # Edit config
hive doc migrate # Check version and migrate
version: 0.2.5
rules:
- pattern: "" # Matches all repos
windows:
- name: claude
command: "claude{{- if .Prompt }} {{ .Prompt | shq }}{{ end }}"
focus: true
- name: shell
Rules match repository URLs with regex patterns and define behavior.
rules:
- pattern: ".*github\\.com/org-name/.*" # Regex pattern
max_recycled: 3 # Max recycled sessions
windows: # Declarative tmux windows (recommended)
- name: claude
command: "claude{{- if .Prompt }} {{ .Prompt | shq }}{{ end }}"
focus: true
- name: shell
recycle: [] # Commands when recycling
commands: [] # Setup commands after clone
copy: [] # Files to copy from original
Rule precedence: Last matching rule with spawn/windows config wins.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | Window name (supports templates) |
command | string | no | Command to run (empty = default shell) |
dir | string | no | Working directory override |
focus | bool | no | Select this window after creation |
If no matching rule sets windows, the default layout (agent window + shell) is used. Hive ignores the old spawn and batch_spawn keys and logs a warning.
- pattern: "" # Match all repos
- pattern: ".*github\\.com/my-org/.*" # Match specific org
- pattern: ".*github\\.com/my-org/my-repo" # Match specific repo
- pattern: ".*(my-org|other-org)/.*" # Match multiple orgs
Commands support Go templates with {{ .Variable }} syntax.
| Context | Variables |
|---|---|
windows | .Path, .Name, .Slug, .ContextDir, .Owner, .Repo |
windows (batch) | .Prompt |
recycle | .DefaultBranch |
usercommands.*.sh | .Path, .Name, .Remote, .ID, .Tool, .TmuxWindow, .Args, .Form.* |
Use {{ .Variable | shq }} for safe shell quoting.
tmux:
poll_interval: 1.5s
preview_window_matcher: ["claude", "aider", "codex"]
Status indicators:
[●] Green - Agent actively working[!] Yellow - Agent needs approval[>] Cyan - Agent ready for input[?] Dim - Terminal not found[○] Gray - Session recycledDefine custom commands accessible via : command palette or keybindings.
usercommands:
name:
sh: "command template" # Shell command
help: "Description" # Help text
confirm: "Are you sure?" # Optional confirmation
silent: true # Skip loading popup
exit: "true" # Exit TUI after command
usercommands:
tidy:
sh: "{{ agentSend }} {{ .Name | shq }}:{{ agentWindow }} /tidy"
help: "Run /tidy in Claude session"
confirm: "Commit and push changes?"
silent: true
vscode:
sh: "code {{ .Path | shq }}"
help: "Open session in VS Code"
silent: true
exit: "true"
msg:
sh: 'hive msg pub -t agent.{{ .ID }}.inbox {{ join .Args " " | shq }}'
help: "Send message to session inbox"
Map keys to user commands in the TUI.
keybindings:
r:
cmd: Recycle
confirm: "Recycle this session?"
d:
cmd: Delete
o:
cmd: vscode
enter:
cmd: attach
Reserved keys: ?, :, v, j/k/↑/↓, /, n
For detailed configuration examples, spawn command patterns for different terminals, and migration guides, see:
references/spawn-patterns.md - Terminal-specific spawn command examples (tmux, WezTerm, Kitty, iTerm2, Alacritty)references/workflow-examples.md - Complete workflow configurations for common setupsreferences/troubleshooting.md - Common configuration issues and solutions/hive:inbox - Check inter-agent messages/hive:publish - Send messages between sessions/hive:session-info - Get current session detailsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/hcUse `hive hc` commands to track tasks and epics for agent workflows.
Like GitHub Issues but scoped to a repository and designed for machine consumption.
Use when:
- Creating work items (epics, tasks)
- Checking item status or listing open work
- Recording progress via comments
- Claiming the next actionable task for a session
- Querying epic context as a structured summary
/inboxThis skill should be used when the user asks to "check my inbox", "read my messages", "any unread messages?", "check for new messages", "see my inbox", or needs to read inter-agent messages from other hive sessions. Provides guidance on reading, filtering, and managing inbox messages./publishThis skill should be used when the user asks to "send message to agent X", "publish to topic", "broadcast to all agents", "notify other sessions", "tell agent Y that...", or needs to send inter-agent messages, hand off work, or broadcast notifications across hive sessions.npx claudepluginhub colonyops/hive --plugin hiveOther plugins' skills for the same job