archgate session-context
Read AI editor session transcripts for the project. Useful for auditing what an AI agent did during a coding session.
archgate session-context <subcommand> [options]Subcommands
Section titled “Subcommands”archgate session-context claude-code
Section titled “archgate session-context claude-code”Read the Claude Code session transcript for the project.
archgate session-context claude-code [options]| Option | Description |
|---|---|
--max-entries <n> | Maximum entries to return (default: 200) |
--skip <n> | Skip the N most recent sessions (useful when running as sub-agent) |
archgate session-context copilot
Section titled “archgate session-context copilot”Read the Copilot CLI session transcript for the project. Sessions are matched by their workspace cwd field.
archgate session-context copilot [options]| Option | Description |
|---|---|
--max-entries <n> | Maximum entries to return (default: 200) |
--skip <n> | Skip the N most recent sessions (useful when running as sub-agent) |
--session-id <id> | Specific session UUID to read |
archgate session-context cursor
Section titled “archgate session-context cursor”Read the Cursor agent session transcript for the project.
archgate session-context cursor [options]| Option | Description |
|---|---|
--max-entries <n> | Maximum entries to return (default: 200) |
--skip <n> | Skip the N most recent sessions (useful when running as sub-agent) |
--session-id <id> | Specific session UUID to read |
archgate session-context opencode
Section titled “archgate session-context opencode”Read the opencode session transcript for the project. Sessions are matched by the directory field in session metadata.
archgate session-context opencode [options]| Option | Description |
|---|---|
--max-entries <n> | Maximum entries to return (default: 200) |
--skip <n> | Skip the N most recent sessions (combine with --root to skip within root sessions only) |
--session-id <id> | Specific session ID to read |
--root | Read the top-level session (no parent) instead of guessing by recency — use this when running as a sub-agent or inline skill |
Opencode records real parent/child session links. A plain --skip 1 picks the second most-recently-updated session sharing this directory, which is only the parent when exactly one other session touched it — a fan-out of sibling sub-agents can land --skip 1 on an unrelated sibling instead. --root resolves the actual top-level session directly, regardless of how many sub-agent or inline-skill sessions exist underneath it.
Examples
Section titled “Examples”Read the latest Claude Code session:
archgate session-context claude-codeRead a specific Cursor session:
archgate session-context cursor --session-id abc123Read the latest Copilot CLI session:
archgate session-context copilotRead the latest opencode session:
archgate session-context opencodeRead the parent session (skip the sub-agent’s own session):
archgate session-context claude-code --skip 1Read the top-level opencode session from a sub-agent or inline skill:
archgate session-context opencode --root