PanCode
All tutorials

Checks and records4 min read

See what a session cost and what a run did

Read session cost and stop reasons from local journals, verify a sealed record, and prepare an archive that uploads nothing.

Written for
v0.9.0
Works in
Terminal · Desktop alpha
Basis
Documented workflow
Updated
Terminal /usage dock after one gpt-6-luna turn through copilot: tabs for activity, accounts, session, models, workers and health; a 26 weeks activity bar with 1 session in this workspace; no file changes; the session at 34s so far, 0.3362 credits, 8,555 fresh and 138,471 cached tokens; 2 calls with no reasoning figure; no subscription window reported; and a receipt of 0.3362 credits.
/usage after one turn on gpt-6-luna: what the session cost in credits and tokens. Terminal · v0.9.1
On this pageBefore you start Read the cost and the record Control what is kept

PanCode records what each process, session, and worker run did in local journals, and every usage figure in every interface comes from those journals. This guide shows how to read a session's cost, find out why it stopped, check a run's record, and prepare an archive for the maintainers.

Before you start

  • PanCode installed, and at least one finished session in a repository.
  • The session id, which the exit summary prints. /resume also lists them.

Read the cost and the record

  1. Read it in the session

    /usage
    /context
    /usage health

    /usage covers session usage and supported subscription quotas. /context shows context use and the newest call's cache evidence. /usage health shows process health and route state.

  2. Read it from the shell

    Shell

    pancode telemetry inspect <session>
    pancode telemetry cost <session> --by model
    pancode telemetry calls <session> --limit 20
    pancode telemetry cache <session>

    Each takes --json and returns the same data the terminal, editors, and desktop app read. For a repository over time, use pancode telemetry cost --repo . --days 30 --by model.

  3. Ask why it stopped

    Shell

    pancode telemetry why-stopped <session>
    pancode telemetry timeline <session>
    pancode telemetry explain <ref>

    explain shows how a figure was derived. --run <run-id> points inspect and cost at one worker run instead of a session.

  4. Check a record

    Shell

    pancode telemetry verify <session>
    pancode telemetry verify --run <run-id>

    A sealed scope directory is self-contained, so you can copy it and verify it on another machine. verify checks journal segments, objects, and seals.

  5. Share it deliberately

    Shell

    pancode telemetry share --session <id> --profile content-free --dry-run
    pancode telemetry share --session <id> --profile content-free --out report.tar.gz

    Without --send, share writes an archive and uploads nothing. content-free is the default profile, with structural records and no objects or content. structural adds objects that hold structure, such as prompt manifests. Read the dry run before you send anything.

Terminal: telemetry why-stopped says the session closed after a normal last turn, with spend not measured over 147,026 tokens; telemetry verify reports the session sealed with 127 lines in 1 segment and 3 objects and its head hash; telemetry cost --by turn shows one turn with 10 calls and 147,026 tokens, cost not measured, and an economy line of 0.3362 credits.
The session's record: why it stopped, whether it verifies, and what each turn used. Terminal · v0.9.1

What you should see

Figures labelled by provenance, and a verify result that names any gap. A clean verify shows the journals are internally consistent. The chain is unsigned, so it does not show who wrote them, and it says nothing about whether the work was correct.

Control what is kept

telemetry.mode defaults to standard, which keeps accountability and operational records without prompt content. research mode, telemetry.research.content: true, and pancode telemetry consent for the workspace are all required before prompts and request bodies are kept. Consent is stored in your own state directory, keyed by the workspace's real path, so a file committed to a repository cannot grant it.

pancode telemetry prune is a dry run unless you pass --apply.

Boundaries

  • Figures depend on what the provider reports. Calls with unknown usage are counted separately.
  • Quota rows are what a provider account reports, shared across sessions, and are separate from session spend.
  • pancode usage report is experimental.

By Anthony Kougkas · PanCode

Continue with the documentation