Back to list
aannoo

hcom

by aannoo

Realtime messaging and context sharing for AI coding agents (Claude Code, Gemini CLI, Codex)

44🍴 6📅 Jan 24, 2026

SKILL.md


name: hcom description: | multi-agent communication and coordination for Claude Code, Gemini CLI & Codex. Use this skill when the human user needs help, status, or reference about hcom - when user asks questions like "how to setup hcom", "hcom not working", "explain hcom", or any hcom troubleshooting.


hcom — realtime messaging + context sharing for AI coding agents

What is hcom?

Local message bus + event log. Agents message each other, share transcripts, get notified on events, and spawn new agents. Messages arive when agents are active and idle.

pip install hcom
hcom claude                     #launch
hcom codex
hcom gemini
hcom                            # TUI dashboard

Features

Messaging - send to all or @mention specific agents hcom send --help

Transcripts - read other agent's conversation history hcom transcript --help

Subscriptions - get notified when events match (real-time file collisions, agent idle, shell commands) hcom events --help

Spawn - launch agents into new terminals hcom 3 claude | HCOM_TAG=team hcom 2 gemini (group) | hcom claude -p "task" (headless)

Workflow Scripts - pre-built workflows (background reviewer, debate, clone, ensemble) hcom run --help

Cross-device - connect agents across machines via HuggingFace relay hcom relay --help

Config - terminal, tags, hints, timeouts hcom config | hcom config terminal --info (set any terminal)


Quick Setup

Check current state:

hcom status
OutputMeaningAction
[~] claudeTool exists, hooks not installedhcom hooks add then restart tool
[✓] claudeHooks installedReady - use hcom claude or hcom start
[✗] claudeTool not foundInstall the AI tool first

After hcom hooks add: You MUST restart your AI tool for hooks to activate.

Verify participation:

hcom list
Tool DisplayMeaning
[CLAUDE]Full features (launched via hcom claude)
[claude]Hooks-only mode (vanilla hcom start)
[claude*]Ad-hoc mode - restart AI tool for full features

Same pattern for [GEMINI]/[gemini]/[gemini*] and [CODEX]/[codex]/[codex*].

The asterisk * means hooks aren't active for this session. Close and reopen the AI tool.


Starting hcom

Option A - Launch with hcom (recommended):

hcom claude       # or: hcom gemini, hcom codex

Option B - Connect existing session:

Run hcom start

Using hcom

Send messages: Talk to agents naturally - "send a message to gemini saying check the tests"

TUI dashboard: hcom (no args) - event stream, broadcast, status, launch


Troubleshooting

"hcom not working"

hcom status          # Check installation
hcom hooks status    # Check hooks specifically

Hooks missing? hcom hooks add then restart tool.

Still broken?

hcom reset all && hcom hooks add
# Close all claude/codex/gemini/hcom windows
hcom claude          # Fresh start

"messages not arriving"

  1. Check recipient: hcom list - are they listening or active?
  2. Check message sent: hcom events --sql "type='message'" --last 5
  3. Check TUI - shows delivery blockers:
    • Agent processing (not listening)
    • User typing (delivery pauses)
    • Uncommitted text in prompt
    • Tool in submenu/not at prompt
  4. Recipient shows [claude*]? They need to restart their AI tool

"identity not found"

Run hcom start first, or use hcom claude to launch with automatic identity.

Sandbox / Permission Issues

export HCOM_DIR="$PWD/.hcom"     # Project-local mode
hcom hooks add                   # Installs to project dir

Fresh Start

hcom reset all # arhive db, reset config, remove hooks, stop all agents
pip uninstall hcom && pip install hcom
# Restart AI tool

Tool Support

ToolMessage DeliveryNotes
Claude Codeidle + mid-turnFull hooks, subagents work
Gemini CLI (v0.24.0+)idle + mid-turnFull hooks
Codexidle + hcom listen1 hook
Any AI toolmanualAd-hoc mode via hcom start

Files

WhatLocation
Database~/.hcom/hcom.db
Config~/.hcom/config.env
Logs~/.hcom/.tmp/logs/hcom.log

With HCOM_DIR set, uses that path instead of ~/.hcom.


Archives & Reset

hcom reset archives the database and starts fresh. Similar to /clear in AI tools.

  • Interactive agents get "stopped" but terminal stays open - can reclaim with hcom start --as NAME
  • Headless agents get killed

Query archives:

hcom archive            # List (lowest = most recent)
hcom archive 1          # Query most recent

Remove hcom

hcom hooks remove # Safely remove only hcom hooks/config from all tool settings files

More Info

hcom --help              # All commands
hcom <command> --help    # Command details
hcom run docs            # Full CLI + config + API reference

GitHub: https://github.com/aannoo/hcom

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon