hcom

Connect independent coding agents across terminals and machines. They can message each other, monitor activity, react to events, and launch more agents. Start an agent with hcom in front, then prompt normally.
Use it to coordinate multi-agent pipelines, run different AI CLIs as each other's subagents, or just to avoid copy-pasting.
Works with claude codex opencode grok hermes pi omp agy copilot qoder cursor kimi kilo gemini
https://github.com/user-attachments/assets/1ce23ed9-f529-4be0-8124-816aa4c2fd43
Install
macOS, Linux, Windows:
uv tool install hcom
or: brew install aannoo/hcom/hcom
or install script
macOS, Linux, Android:
curl -fsSL https://github.com/aannoo/hcom/releases/latest/download/hcom-installer.sh | sh
Windows:
irm https://github.com/aannoo/hcom/releases/latest/download/hcom-installer.ps1 | iex
Quickstart
|
Terminal 1:
hcom claude
|
Terminal 2:
hcom codex
|
Prompt:
ask the other agent their favorite cake
-
review what claude did and send it fixes
-
spawn 3x opencode, split work, collect results
-
fork yourself to investigate the bug and report back
-
when codex goes idle, send it the next task
-
find the agent that worked on that feature, resume it and ask it why it's bad
Open the TUI dashboard:
hcom
What agents can do
-
Message each other in real time. Messages arrive mid-turn (after tool calls) or wake idle agents immediately.
-
Observe who's running and what they're doing: status, transcripts, tool results, file edits, commands, live terminal screens, context/token usage. Search past conversations.
-
Subscribe to status changes, commands, file edits, collisions, and session events, then react automatically.
-
Control: spawn, fork, resume, kill agents in any terminal emulator or headless.
How it works
Hooks record activity to a local SQLite database and deliver messages from it.
agent → hooks → db → hooks → other agent
Hooks activate only when an agent is launched with hcom in front. Normal usage is unaffected.
Any other AI tool without hooks can join by running hcom start
In any CLI tool, prompt:
> run: `hcom start --help` follow what it says and stay connected
Any process can wake agents with hcom send
Send messages from any process/script:
hcom send -b @luna -- "wake up and do this task"
Chain with hcom events:
hcom events --idle luna --wait 600 && hcom send -b @nova -- "luna is done, review it"
Terminals
Every agent runs in a real terminal you can see, scroll, and interrupt. Any emulator works for spawning (hcom auto-detects). kitty, wezterm, tmux, zellij, waveterm, cmux, herdr also support closing panes from hcom kill.
To configure a custom terminal open/close setup, tell an agent to run:
hcom config terminal --info
Cross-device
Connect agents across machines via MQTT relay.
hcom relay new # get token
hcom relay connect <token> # on each device
Check with hcom relay status, toggle with hcom relay off / on.
Treat the token like an API/SSH key. See SECURITY.md
Reference
Full reference: hcom run docs
Tools
Supported tools
| Tool | Message delivery | Connect |
|---|
| Claude Code | automatic | hcom claude |
| Gemini CLI | automatic | hcom gemini |
| Codex CLI | automatic | hcom codex |
| Antigravity CLI | automatic | hcom agy |
| OpenCode | automatic | hcom opencode |
| Kilo Code | automatic | hcom kilo |
| Pi | automatic | hcom pi |
| Oh My Pi | automatic | hcom omp |
| Cursor CLI | automatic | hcom cursor-agent |
| Kimi | automatic | hcom kimi |
| Copilot CLI | automatic | hcom copilot |
| Qoder CLI | automatic | hcom qoder |
| Grok Build | automatic | hcom grok |
| Hermes Agent | automatic | hcom hermes |
| Anything else | manual via hcom listen | hcom start (run inside tool) |
hcom r <session_id> # Resume a session started outside hcom
hcom f <session_id> # Fork a session in hcom
Claude Code headless and subagents