pinecallDocs
Running an agent / pinecall sessions

pinecall sessions

The agent's newest calls, and one call's log.

pinecall sessions [call] [--agent <slug>] [--limit <1-100>] [--json]
pinecall sessions log <call> [--after <seq>] [--limit <n>] [--types <a.b,c.d>] [--verbose] [--json]
Terminal
$ pinecall sessions --limit 3
clinica-norte · 3 calls
CALL                                   VIA          LASTED   ENDED           COST     LAST SAID
call_314b0306e2a64daba6b6dbab129540c0  web inbound  16m 27s  live            —
call_df5aaa81ac7142f5a2c6f9b77033d23e  web inbound  31s      caller hung up  $0.0000  Clínica Norte, good morning…
call_29d7c7b6cdd643de9c659984a0125c8c  web inbound  3s       caller hung up  $0.0205  Perfect. On Thursday we have…
  → pinecall sessions <call> reads one whole

On a terminal each row is cut at the terminal's width, so a call's last words never wrap a row in two; a pipe or a file gets every row whole. A row says live while somebody is on the call. A WhatsApp, SMS or email conversation waiting for its contact says open: it stays so for hours between two messages, with nobody on it, and is never live.

With a call id (sessions <call>): that call's outcome, how long it ran and why it ended, what it cost in US dollars with a line per priced row under it (the model, the ears, the voice, the memory model at hang-up, each phone leg in minutes begun) and a line for anything the platform has no rate for, and the score: how many judges broke of how many held or broke, then the ones that broke with their reason, the ones that held by name, a classification with what it answered, and the ones that did not apply on one line. The judging happens at hang-up, in the gateway; this verb reads it back and runs nothing. A call still running says so instead of reporting itself unjudged (live, or open for a written conversation waiting for its contact), and an id this gateway has no log for is refused by name: it does not print a summary of nothing.

Terminal
$ pinecall sessions call_5b1f0e9d2c7a4e8f9a1b3c5d7e9f1a2b
call_5b1f0e9d2c7a4e8f9a1b3c5d7e9f1a2b
  outcome  Understood, Ana. Your Thursday appointment at ten with Dr. Vidal stands for now.
  ended    caller hung up · 1m 24s · 4 turns
  cost     $0.0505
           claude-haiku-5-5        17,621 input tokens   $0.0018
           claude-haiku-5-5        312 output tokens     $0.0002
           sonic-3                 623 characters        $0.0312
           flux-general-multi      80.6 audio seconds    $0.0105
           twilio-inbound/+1       2 minutes             $0.0068
  score    ✗ 1 of 3 judges broke · $0.0031

  ✗ promises  promised a call back nobody will make  #47
  ✓ consent
  ✓ grounded
  – identified  did not apply
  → pinecall sessions log call_5b1f0e9d2c7a4e8f9a1b3c5d7e9f1a2b reads every entry

sessions log <call> is the call's log as the runtime keeps it, an entry a line under a head that says how many it shows: its seq, its time in UTC, its type, and what it says, in words rather than its JSON — the turns, each tool call with its arguments and what it answered or why it was refused, the agent's states, how the call opened (web · text · from web_2c0c…) and ended, which fields of the state moved and what moved them (takeMessage set stage done · message.name Ana), what the call cost, which prompt block changed and its size, which tools became visible, a metric's times in milliseconds and the model that took them, an error's code and sentence, the score's verdict in a word; a search's docs.sources is its query and where each chunk came from ("do you open on saturdays" → library-d/hours.md › Saturdays 0.91 · …), the excerpts in --json. Any other kind is its data in words, cut at 160 characters. The machinery is quiet: the agent's state moves (agent.state), its prompt's rewrites (prompt.changed) and its waits (agent.waiting) are left out and counted in the head, --verbose shows them, and --types shows whatever it names. A page reads 200 entries (--limit, 1 to 500), and while there is more after it, it ends with the line that reads on (--after <seq>): the last seq the gateway read, so --types turn.user,tool.call,tool.result, which keeps only those, never ends the reading early — a page it narrowed to a few entries, or to none, still says where to go on (<call> · nothing of these types in this page, after seq 40; the log goes on, then the → … --after <seq> reads on line); nothing kept after seq <n> is the end of a sealed log. --json prints the page whole, {call, entries, next, live, open}, as the MCP's call tool answers it. What the agent declared pii is in the log as ***, and so it is here: the tool's argument and the same value wherever the agent wrote it down — the state that took it, what a tool answered, a line it logged. What was said (turn.user, turn.agent) is not touched.

Terminal
$ pinecall sessions log call_5b1f0e9d2c7a4e8f9a1b3c5d7e9f1a2b --after 40
call_5b1f0e9d2c7a4e8f9a1b3c5d7e9f1a2b · 4 entries, 2 quiet left out
    41  09:14:02.310  turn.user    Thursday at ten, if Dr. Vidal has it.
    44  09:14:02.902  tool.call    free_slots(day=2026-10-15, doctor=vidal)
    45  09:14:03.120  tool.result  free_slots → slots 10:00, 11:30
    47  09:14:03.840  turn.agent   Dr. Vidal has ten o'clock free on Thursday. Shall I book it?
  → --verbose shows every entry

A call id the gateway has no log for is refused by name, as sessions <call> refuses it; no call, a --limit outside 1 to 500 or an --after that is not a seq is refused here with exit 2.