Skip to content

v0.5.0 — Claude session continuation (--continue, --resume, --session-id)

Latest

Choose a tag to compare

@shreyas-lyzr shreyas-lyzr released this 02 Jul 21:15

opengap run: session continuation for the claude adapter

# Continue the most recent session in the working directory
opengap run -d ./my-agent -a claude -c -p "continue where we left off"

# Pin a session ID on first run, resume it later
opengap run -d ./my-agent --session-id 3f9f74a6-6b7c-4a3e-9e1d-2f1f0a9b8c7d -p "Start the audit"
opengap run -d ./my-agent --resume 3f9f74a6-6b7c-4a3e-9e1d-2f1f0a9b8c7d -p "Continue the audit"

New flags (claude adapter)

  • -c, --continue — continue the most recent Claude Code session in the working directory (pairs with --workspace)
  • --resume <sessionId> — reopen an exact session by ID
  • --session-id <uuid> — pin a new session to a known UUID for deterministic scripted resumes

Guards

  • --continue and --resume are mutually exclusive
  • --session-id must be a valid UUID
  • Session flags are rejected with a clear error on non-claude adapters instead of being silently ignored

Install: npm install -g @open-gitagent/opengap