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.