Skip to content

archgate session-context

Read AI editor session transcripts for the project. Useful for auditing what an AI agent did during a coding session.

Terminal window
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.

Read the current Claude Code session transcript for the project.

Terminal window
archgate session-context claude-code [options]
OptionDescription
--max-entries <n>Maximum entries to return (default: 200)

List available Claude Code sessions for the project as JSON (id + updatedAt), most recent first.

Terminal window
archgate session-context claude-code list

Read a specific session by ID (from list). Accepts --max-entries.

Terminal window
archgate session-context claude-code show <session-id>

Read the current Copilot CLI session transcript for the project. Sessions are matched by their workspace cwd field.

Terminal window
archgate session-context copilot [options]
OptionDescription
--max-entries <n>Maximum entries to return (default: 200)

List available Copilot CLI sessions for the project as JSON, most recent first.

Terminal window
archgate session-context copilot list

Read a specific session by UUID (from list). Accepts --max-entries.

Terminal window
archgate session-context copilot show <session-id>

Read the current Cursor agent session transcript for the project.

Terminal window
archgate session-context cursor [options]
OptionDescription
--max-entries <n>Maximum entries to return (default: 200)

List available Cursor agent sessions for the project as JSON, most recent first.

Terminal window
archgate session-context cursor list

Read a specific session by UUID (from list). Accepts --max-entries.

Terminal window
archgate session-context cursor show <session-id>

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.

Terminal window
archgate session-context opencode [options]
OptionDescription
--max-entries <n>Maximum entries to return (default: 200)

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).

Terminal window
archgate session-context opencode list

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).

Terminal window
archgate session-context opencode show <session-id> [--root]

Read the current Claude Code session:

Terminal window
archgate session-context claude-code

Read the current opencode session:

Terminal window
archgate session-context opencode

List the project’s Claude Code sessions:

Terminal window
archgate session-context claude-code list

Read a specific earlier session:

Terminal window
archgate session-context claude-code show 6ee6f0a5-1b2c-4d5e-8f90-a1b2c3d4e5f6

Resolve an opencode sub-agent child session to its top-level ancestor:

Terminal window
archgate session-context opencode show ses_child123 --root