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 <editor> [subcommand] [options]Each editor subcommand reads the current conversation — the most recent session for the project. Every editor also has two nested subcommands: list to discover earlier sessions and show <session-id> to read a specific one.
Subcommands
Section titled “Subcommands”archgate session-context claude-code
Section titled “archgate session-context claude-code”Read the current Claude Code session transcript for the project.
archgate session-context claude-code [options]| Option | Description |
|---|---|
--max-entries <n> | Maximum entries to return (default: 200) |
archgate session-context claude-code list
Section titled “archgate session-context claude-code list”List available Claude Code sessions for the project as JSON (id + updatedAt), most recent first.
archgate session-context claude-code listarchgate session-context claude-code show
Section titled “archgate session-context claude-code show”Read a specific session by ID (from list). Accepts --max-entries.
archgate session-context claude-code show <session-id>archgate session-context copilot
Section titled “archgate session-context copilot”Read the current 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) |
archgate session-context copilot list
Section titled “archgate session-context copilot list”List available Copilot CLI sessions for the project as JSON, most recent first.
archgate session-context copilot listarchgate session-context copilot show
Section titled “archgate session-context copilot show”Read a specific session by UUID (from list). Accepts --max-entries.
archgate session-context copilot show <session-id>archgate session-context cursor
Section titled “archgate session-context cursor”Read the current Cursor agent session transcript for the project.
archgate session-context cursor [options]| Option | Description |
|---|---|
--max-entries <n> | Maximum entries to return (default: 200) |
archgate session-context cursor list
Section titled “archgate session-context cursor list”List available Cursor agent sessions for the project as JSON, most recent first.
archgate session-context cursor listarchgate session-context cursor show
Section titled “archgate session-context cursor show”Read a specific session by UUID (from list). Accepts --max-entries.
archgate session-context cursor show <session-id>archgate session-context opencode
Section titled “archgate session-context opencode”Read the current opencode session transcript for the project. Sessions are matched by comparing the session directory field to the project root. opencode records sub-agent runs as child sessions that share the parent’s directory — these are excluded from recency selection, so the most recent top-level session is always the main development session.
When several top-level sessions exist for the same directory, recency selection picks the most recently updated one — which may not be the conversation you are part of. If you know a session ID inside the right conversation tree (for example, a sub-agent knows its own child session ID), use show <session-id> --root to resolve its top-level ancestor deterministically instead of relying on recency.
archgate session-context opencode [options]| Option | Description |
|---|---|
--max-entries <n> | Maximum entries to return (default: 200) |
archgate session-context opencode list
Section titled “archgate session-context opencode list”List available top-level opencode sessions for the project as JSON (id, title, updatedAt), most recent first. Sub-agent child sessions are excluded (they can still be read via show).
archgate session-context opencode listarchgate session-context opencode show
Section titled “archgate session-context opencode show”Read a specific session by ID (from list), including sub-agent child sessions. Accepts --max-entries and --root (resolve a sub-agent child session up to its top-level ancestor).
archgate session-context opencode show <session-id> [--root]Examples
Section titled “Examples”Read the current Claude Code session:
archgate session-context claude-codeRead the current opencode session:
archgate session-context opencodeList the project’s Claude Code sessions:
archgate session-context claude-code listRead a specific earlier session:
archgate session-context claude-code show 6ee6f0a5-1b2c-4d5e-8f90-a1b2c3d4e5f6Resolve an opencode sub-agent child session to its top-level ancestor:
archgate session-context opencode show ses_child123 --root