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 <subcommand> [options]

Read the 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)
--skip <n>Skip the N most recent sessions (useful when running as sub-agent)

Read the 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)
--skip <n>Skip the N most recent sessions (useful when running as sub-agent)
--session-id <id>Specific session UUID to read

Read the Cursor agent session transcript for the project.

Terminal window
archgate session-context cursor [options]
OptionDescription
--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

Read the 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. Use --session-id to read a specific session, including a sub-agent child 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), pass --session-id <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)
--skip <n>Skip the N most recent top-level sessions (sub-agent sessions always excluded)
--session-id <id>Specific session ID to read
--rootResolve to the top-level (root) session — with --session-id, walks up from a sub-agent child session

Read the latest Claude Code session:

Terminal window
archgate session-context claude-code

Read a specific Cursor session:

Terminal window
archgate session-context cursor --session-id abc123

Read the latest Copilot CLI session:

Terminal window
archgate session-context copilot

Read the latest opencode session:

Terminal window
archgate session-context opencode

Read the parent session (skip the sub-agent’s own session):

Terminal window
archgate session-context claude-code --skip 1

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

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