AgentKit
ReferenceCLI commands

CLI commands

ak sessions show

Show paginated session messages

ak sessions show

Show paginated session messages

Synopsis

What it does: Reads one Claude Code session JSONL file through the same runtime used by desktop and dashboard.

Who it's for: Reviewers, scripts, and AI agents that need inspectable session details in headless mode.

When to use it: Use after ak sessions list to inspect one transcript page.

Examples: ak sessions show myapp session-abc --json ak sessions show myapp session-abc --limit 50 --cursor 100 --json

What changes on disk: Read-only. Reads ~/.agentkit/projects.json and the selected ~/.claude session JSONL file.

Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)

Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel)

ak sessions show <project> <session-id> [flags]

Options

      --cursor int       0-based line cursor
  -h, --help             help for show
      --json             Emit machine-readable JSON (implies --no-interactive)
      --limit int        Maximum messages to return (default 200)
      --no-interactive   Disable interactive prompts (CI-safe)
  -q, --quiet            Suppress non-error output on stderr
  -V, --verbose          Extra diagnostic output on stderr (loses to --quiet)
  -y, --yes              Assume yes for all prompts

SEE ALSO

  • ak sessions - Inspect and maintain local coding-agent sessions

On this page