Skip to content

feat: a lane shows its agents' sessions in time, from their transcripts when switched on (ADR-0099) - #488

Merged
7schmiede merged 2 commits into
mainfrom
idea/tool-call-tokens
Nov 9, 2026
Merged

7schmiede merged 2 commits into
mainfrom
idea/tool-call-tokens

Conversation

@7schmiede

Copy link
Copy Markdown
Member

A lane's Activity gets a second view, Timeline: per agent session the prompts (when, never what), the model's turns, every tool call by where it went (devstack, an upstream, another MCP server, the agent's own tools, sub-agents) with its duration, what changed the lane and the hooks given; below, the context per turn and the tokens summed up (cache read, written, input, output). Pauses longer than two minutes are pushed together; hovering a call says the tokens used until then.

The turns, tokens and the agent's own tools come from the agent's transcript (path from the hooks' transcript_path), which the hub reads only once Read transcripts is switched on (off by default), with a reader per agent (Claude Code, Codex), taking only times, counts and names. A running session's transcript is read on from where it was left. The activity list of the Skills page moved here.

Review card

Approved by the owner in the conversation on 2026-11-09, all five points (point 1 after the question whether it works across agents: a reader per agent, Claude Code and Codex first).

# Category Point Beats Reversing costs
1 trust For each agent a reader of its own reads that agent's transcript, Claude Code and Codex first; it takes only times, the model's name, token counts, tool names and durations, never a prompt, a text or an argument, and keeps nothing. A PostToolUse hook that records each call Low
2 trust Reading transcripts is a setting per machine, off by default. On by default Low
3 concept A session gets a timeline of tool calls (the agent's own too) and tokens summed up, from the transcript, not from the activity's files. Token counts on devstack's MCP records (which have none) Medium
4 contract GET /hub/activity/timeline?session=&agent=; GET/PUT /hub/activity/transcripts. Parsing the transcript in the browser Low
5 term The timeline is a view of a lane's Activity (Journal, Timeline), with a choice of session; the activity list moves there from the Skills page, the flow stays. A third tab on the Skills page Low

Decided on my own: the token chart starts with cache read hidden (it dwarfs the rest; a click on the legend shows it); clicking a hook on the Skills page no longer narrows a list; GET /hub/activity?tree= takes any case and separator and narrows the sessions too; the readers are incremental (whole lines only, a shorter file is read anew); sessions started before this build show "transcript not found" (owner: leave it so).

Verified

  • Readers against real files: a Claude Code transcript of 47 MB (1684 turns, 1681 calls, 64 prompts, 2 compactions) in ~130 ms release; a Codex rollout (50 turns after removing its doubled token_count, 73 calls, prompts from task_started).
  • The view against the mock hub (light and dark).
  • Not yet seen: whether Codex's hook input names transcript_path, and Codex's MCP call names in a current version.

ADR-0099, addendum to ADR-0098, docs/dashboard-api.md, CHANGELOG.

🤖 Generated with Claude Code

7schmiede and others added 2 commits November 9, 2026 14:53
…ts when switched on (ADR-0099)

The lane's Activity gets a view Timeline: per agent session the prompts
(when, never what), the model's turns, every tool call by where it went
with its duration, what changed the lane and the hooks given; below, the
context per turn and the tokens summed up. Pauses are pushed together;
hovering a call says the tokens used until then.

The hub reads the agent's transcript (path from the hooks' input) only
when "Read transcripts" is switched on, off by default, with a reader per
agent (Claude Code, Codex), taking only times, counts and names.
`GET /hub/activity/timeline`, `GET/PUT /hub/activity/transcripts`.
The activity list of the Skills page moved to the timeline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t, not again

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 067aa30 into main Nov 9, 2026
@7schmiede
7schmiede deleted the idea/tool-call-tokens branch November 9, 2026 14:26
@7schmiede 7schmiede mentioned this pull request Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant