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 shows the agent, model, status, worktree, timing, token usage, checkpoint links, and files touched. For structured output:

Inspect the Current Session

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

Export Transcript Data

Use --transcript when you need the raw agent transcript:
Transcript format depends on the agent.

Review Token Usage

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

Continue With

List Sessions

Find the current session or copy a session ID.

sessions Command Reference

See session subcommands and flags.