Overview
Launch one or more AI agents (Claude, Gemini, Codex, OpenCode) with automatic hcom integration, message delivery, and event tracking.Syntax
Number of agents to launch (default: 1)
- Maximum for Claude: 100
- Maximum for others: 10
AI tool to launch:
claude, gemini, codex, or opencodehcom Flags
These flags configure hcom behavior and are processed before being passed to the tool.Group tag - launched agents get names like
tag-*Terminal preset for new windowsOptions:
kitty, wezterm, tmux, iTerm, Terminal.app, ghostty, alacritty, or customLaunch in background without terminal window (Claude only)Equivalent to
claude -p modeInitial prompt to send after launch
Custom system prompt appended to agent bootstrapAlias:
--systemCustom batch ID for grouping launches (auto-generated if not provided)
Run in current terminal instead of spawning new window (when N=1)
Global Flags
Skip confirmation preview when launching from inside an AI toolRequired when launching with args or large batches from Claude/Gemini/Codex/OpenCode
Launcher identity (for tracking who initiated the launch)
Tool-Specific Arguments
Any arguments not recognized as hcom flags are passed directly to the tool CLI.Environment Variables
Default group tag (overridden by
--tag flag)Default terminal preset (overridden by
--terminal flag)Default: default (auto-detect current terminal)Text appended to all messages received by launched agents
One-time bootstrap notes shown at startup
Seconds subagents stay alive after task completionDefault: 30
Default args merged with CLI args for Claude launchesExample:
--model opus --verboseDefault args for Gemini launches
Default args for Codex launches
Default args for OpenCode launches
Examples
Basic Launch
Launch with Tag
Headless Launch
Launch with Specific Terminal
Launch with Custom Args
Environment-Based Launch
Output
Successful launch prints:Exit Codes
All agents launched successfully
One or more launches failedCheck output for error details
Notes
Confirmation Gate: When launching from inside an AI tool with arguments or large batches (N > 5), hcom shows a preview and requires
--go flag to proceed. This prevents accidental resource-heavy launches.Hooks Installation: Hooks are automatically installed in
~/ (or $HCOM_DIR) on first launch. Remove with hcom hooks remove.Terminal Detection: When
HCOM_TERMINAL=default, hcom auto-detects kitty, wezterm, or tmux and uses appropriate spawn commands. For other terminals, set explicitly.Argument Merging: Environment args (
HCOM_*_ARGS) are merged with CLI args. CLI args take precedence for conflicting flags.Max Count: Claude allows up to 100 simultaneous agents due to its stability in PTY mode. Other tools are limited to 10 to prevent resource exhaustion.