Skip to main content
Use CLI inspection when you want session details in your terminal, need JSON for automation, or want to export raw transcript data.

Inspect session metadata

Inspect a specific session:
entire session info SESSION_ID
entire session info shows the agent, model, status, worktree, timing, token usage, checkpoint links, and files touched. For structured output:
entire session info SESSION_ID --json

Inspect the current session

If you do not know the session ID yet, start with the current worktree:
entire session current
entire session current --json

Export transcript data

Use --transcript when you need the raw agent transcript:
entire session current --transcript > session.jsonl
entire session info SESSION_ID --transcript > session.jsonl
Transcript format depends on the agent.

Review token usage

Use entire session tokens to inspect token usage and optimization recommendations:
entire session tokens
entire session tokens SESSION_ID
For compact guidance that an agent can act on:
entire session tokens --agent-brief

Continue with

List Sessions

Find the current session or copy a session ID.

sessions Command Reference

See session subcommands and flags.