Overview
Resume a stopped agent by relaunching it with full session history. Alias forhcom resume.
Syntax
Name of stopped instance to resumeMust exist in stopped events (
hcom list --stopped)Tool-specific arguments to override or merge with original launch args
Flags
Override original tag
Override terminal preset
Skip confirmation (when applicable)
Launcher identity (who initiated resume)
What Gets Restored
From Stopped Snapshot
- Session ID - Full conversation history
- Tool - Original tool (claude/gemini/codex/opencode)
- Launch Args - Original arguments (merged with new args)
- Tag - Original tag (unless overridden)
- Background Mode - Headless vs interactive
- Event Cursor -
last_event_idto deliver pending messages
What’s New
- Process ID - Fresh OS process
- Terminal Window - New pane/tab/window
- Bootstrap - Includes “YOUR SESSION HAS BEEN RESUMED!” message
Tool-Specific Behavior
Claude
Uses--resume <session-id> to restore conversation:
Gemini
Uses--resume <session-id>:
Codex
Usesresume subcommand:
OpenCode
Uses--session <session-id>:
Argument Merging
Original launch args are merged with new args. New args take precedence for conflicting flags.Error Cases
Instance Still Active
No Session ID
hcom start --orphan instead.
Not Found
Examples
Basic Resume
Resume with Model Override
Resume Headless Agent
Resume with Tag Override
Resume with Terminal Override
View Available Resumes
Exit Codes
Agent resumed successfully
- Instance still active (must stop first)
- No stopped snapshot found
- No session ID in snapshot
- Launch failed
Notes
Cursor Restoration: Resume restores
last_event_id cursor, so pending messages sent while stopped are delivered immediately.Session Continuity: The tool sees its full conversation history. hcom injects “YOUR SESSION HAS BEEN RESUMED!” in system prompt.
Active Check: Resume fails if instance is still active. Always stop first to avoid conflicts.
Headless Logs: If original was headless, new instance creates a fresh log file in
~/.hcom/.tmp/logs/.Argument Precedence: New CLI args override original args for the same flag. Non-conflicting args are merged.
Tag Override:
--tag changes the instance name. hcom r luna --tag team creates team-luna, not luna.Launcher Identity: Resume is attributed to the caller. View with
hcom list --stopped <name> to see who resumed.Related Commands
hcom f- Fork agent session (clone history)hcom list --stopped- View stopped instanceshcom stop- Stop active agentshcom start --as- Rebind identity without history