Overview
Thehcom config command manages global and per-agent settings stored in ~/.hcom/config.toml and environment variables.
Basic Usage
Get and Set Keys
Configuration Keys
HCOM_TAG
Group tag for launched instances.HCOM_HINTS
Text appended to every message received by agents.- Persistent instructions
- Team coordination guidelines
- Output format requirements
HCOM_NOTES
One-time text added to agent bootstrap (not repeated per-message).HCOM_TIMEOUT
Idle timeout for headless/vanilla Claude (seconds). Default: 86400 (24 hours).- Headless Claude:
hcom N claude -p - Vanilla Claude:
claude+hcom start
- Interactive PTY:
hcom N claude - Gemini or Codex
HCOM_SUBAGENT_TIMEOUT
Timeout for Claude subagents (Task tool). Default: 30 seconds.Tool Args
Default arguments passed to tools on launch.System Prompts
HCOM_TERMINAL
Terminal preset for spawning agent windows.kitty,kitty-window,kitty-tab,kitty-splitwezterm,wezterm-window,wezterm-tab,wezterm-splittmux,tmux-split
Terminal.app,iTerm,Ghostty,alacritty,ttab
HCOM_AUTO_APPROVE
Auto-approve safe hcom commands (true/false). Default: false.- send, start, list, events, listen, relay, config, transcript, archive, status, help, —help, —version
- reset, stop, launches
HCOM_AUTO_SUBSCRIBE
Auto-subscribe event presets for new instances. Default: collisioncollision- File edit conflictscreated- New instances joinstopped- Instances leaveblocked- Approval needed
HCOM_NAME_EXPORT
Export instance name to custom env var.Relay Settings
hcom relay commands over direct config editing.
Per-Instance Config
Override settings for specific agents.tag- Changes display name (luna → api-luna)timeout- Instance-specific idle timeouthints- Instance-specific message hintssubagent_timeout- Instance-specific subagent timeout
Precedence
Settings are resolved in order:- Runtime - Per-instance DB values
- Environment -
HCOM_*variables - TOML -
~/.hcom/config.toml - Default - Built-in defaults
[runtime]- Per-instance override[env]- Environment variable[toml]- Config file[default]- Built-in default
Configuration Files
Location:~/.hcom/config.toml
Override: HCOM_DIR=/path/.hcom changes location to /path/.hcom/config.toml
Format: TOML with nested sections
JSON Output
Examples
Team Setup
Development Workflow
Role Specialization
Sandbox Mode
Tips
- Use
--infoto see detailed help for any key - Quote multi-word values:
hcom config hints "check status" - Use instance config for role specialization
- Terminal presets marked
✓are available on your system - Relay settings managed via
hcom relaycommands - Config changes apply to new launches (not existing agents)
- Use
--editfor bulk changes
See Also
- hcom relay - Cross-device sync
- hcom hooks - Tool integration
- hcom status - View effective config