> ## Documentation Index
> Fetch the complete documentation index at: https://docs.entire.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Inspect Sessions in CLI

> Inspect session metadata, transcript output, and token usage from the CLI.

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:

```bash theme={null}
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:

```bash theme={null}
entire session info SESSION_ID --json
```

## Inspect the current session

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

```bash theme={null}
entire session current
entire session current --json
```

## Export transcript data

Use `--transcript` when you need the raw agent transcript:

```bash theme={null}
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:

```bash theme={null}
entire session tokens
entire session tokens SESSION_ID
```

For compact guidance that an agent can act on:

```bash theme={null}
entire session tokens --agent-brief
```

## Continue with

<CardGroup cols={2}>
  <Card title="List Sessions" icon="list" href="/guides/sessions/list-sessions">
    Find the current session or copy a session ID.
  </Card>

  <Card title="sessions Command Reference" icon="terminal" href="/cli-reference/sessions">
    See session subcommands and flags.
  </Card>
</CardGroup>
