OpenProgram Docs

Tool group summary

The one line above a folded run of tool calls, built on the client from calls already in the transcript. No model call, no backend change.

Settled
Read 3 files, searched for "tl-toggle", edited execution-strip.tsx +12 −4
Running
Read 2 files, running a command…
Failure
Edited app.tsx, ran 2 commands · 1 failed +3 −3

Phrases

Calls are bucketed by kind. Each bucket gives one phrase at the place of its first call, joined with ", " ("," in Chinese); the first is capitalised.

Kind (tools)OneSeveralRunning
Command bash terminal_use write_stdin execute_codeRan a commandRan 3 commandsRunning a command…
Created file write to a new path, apply_patch Add FileCreated pill-shadow.htmlCreated 2 filesCreating pill-shadow.html…
Edited file edit, write over a file, apply_patch UpdateEdited app.tsxEdited 4 filesEditing app.tsx…
Deleted file apply_patch Delete FileDeleted old.cssDeleted 2 filesDeleting old.css…
Read read pdfRead package.jsonRead 3 filesReading package.json…
List listListed a folderListed 2 foldersListing a folder…
Code search grep glob semble_* lsp_*Searched for "tl-toggle"Ran 3 searchesSearching for "tl-toggle"…
Web search web_searchSearched the webSearched the web 2 timesSearching the web…
Fetch web_fetchFetched docs.anthropic.comFetched 3 pagesFetching docs.anthropic.com…
Browser web_use, playwright_browser, browser_use, computer_use on the built-in browser of this computerOperated the browserOperated the browserOperating the browser…
GUI and computer computer_use on any other target, GUI toolsRan a GUI call; Operated Calculator; Operated the screen; Operated Chrome; Operated Lab VM's screenRan 2 GUI calls; Operated 2 apps; Operated Chrome and the screen; Operated Chrome and 2 moreRunning a GUI call…; Operating Calculator…
Sub-agent agent task send_message mixture_of_agentsRan sub-agent ReviewerRan 2 sub-agentsRunning sub-agent Reviewer…
Peer send_message to another conversationMessaged another conversationCounted once per conversationMessaging another conversation…
Image image_generate, image_analyzeGenerated an image; Analyzed an imageGenerated 2 images; Analyzed 2 imagesGenerating an image…; Analyzing an image…
Task task_start, task_step, task_listNo phraseNo phrase; a line holding only task calls is not drawnNone. The task block shows the task.
Stored todo calls todo_*Updated todos, when the list is not drawn as a blockUpdated todosNone
Question ask_user_questionAsked a questionAsked 2 questionsAsking a question…
Memory memory_*Accessed memoryAccessed memoryAccessing memory…
Program, skillRan program deploy; Used skill pdfRan 2 programsRunning program deploy…
Anything else (MCP, custom)Used linear_search; Used linear_search 2 timesUsed linear_search and jira_create; Used 3 toolsUsing linear_search…
RuleBehaviour
Thinking"Thought" or "Thinking…" only when the group has nothing else
NamesA bucket names its target only with exactly one distinct target; a computer bucket whose targets are not all applications names two, or the first and how many more. Repeated calls on one file count once. Files show the basename, search patterns are quoted and cut to 24 characters, fetches show the host, commands are never named.
NumbersEnglish: "a"/"an" for one, digits above. Chinese: always digits with a measure word.
FailuresMuted red "· N failed" after the label. A failed call counts in its bucket and adds nothing to the badge. A computer_use call stored without is_error has failed when its result starts with an error code (Error:, UNKNOWN_TARGET:).
RunningThe bucket of the call in progress moves to the end, in the present tense with "…"; the shimmer stays. When the call finishes it returns to past tense at its first position.
WidthOne 28px line. The label has min-width:0 and a CSS ellipsis; failure note, badge and chevron are flex:none. No character budget.
HoverNo tip: transcript content, and expanding shows every call
Stringstext(en, zh). Each bucket has a past and a present form, each with a one-target and a count variant.

Change badge

Shows when at least one file-writing call succeeded and every successful one has known counts. Sums them, shows zeros (+16 −0), reuses the .turn-files-diff pill.

ToolCounts
apply_patch+ and - lines of the patch body. Exact.
editLine diff of old_string against new_string, times the replacement count. Above 2,000 lines a side: plain line counts.
writecreate in turnFiles: +lines(content) −0. modify with every write to the path in this group: the turnFiles numbers. Otherwise unknown, and the badge waits for the turn to settle.

Before turnFiles exists, a write is "Created" only if the turn has not read or edited that path. modify makes it "Edited".

What each call carries
FieldSourceUse
toolblockCategory; falls back to presentTool(), as timeline rows do
inputblock, full JSONPaths, commands, patterns, URLs; old_string/new_string, content, the patch
result, is_error, outcomeblockSuccess; (N replacements); Added, Updated, Deleted
runningmsg.tools[].statusCall in progress
turnFilesassistant message, from the mutation journal at finalizePer-file op, added, removed for the whole turn. No tool-call id, so per-group stats derive from arguments and turnFiles fills gaps.
No turn-level summary line
VersionWhy not
DeterministicFree, but repeats the file card's totals and the group headers
Model-writtenAn extra call per turn through the title-model path: tokens, latency, only after the turn ends, content sent again, and likely says what the reply says

A surface that must collapse a turn to one line (minimap, hover preview) calls the deterministic aggregate.

Code
PathRole
assistant-bubble.tsxSplits ordered blocks: each run of thinking and tools becomes one ExecutionStrip. Passes the segment's and turn's blocks, msg.turnFiles, running ids and whether it is the live tail.
tool-group-summary.tsPure. summarizeToolGroup(blocks, options) returns {label, failed, added, removed}; counts are null with no badge. Owns SPAWNING_TOOL_NAMES; exports lineDiff() (LINE_DIFF_CAP = 2,000) and parsePatch().
execution-strip.tsxlabel: string | ToolGroupSummary. A plain string (workflow card, debugger) renders with no note or badge.
LegacyRuntimeTraceRecords without ordered blocks: each call becomes a block named after its function. Legacy sub-agent strips pass spawn labels.
execution-strip.css.tl-label, .tl-fail, .tl-diff, .tl-chev
tool-group-summary.test.mjsapps/web/tests/chat/messages/execution/: grammar, plurals, order, tense, failures, badge sources, patch parsing, capped diff

Implementation status

Implemented. Not built: tool-call ids on mutation-journal entries with per-call {path, op, added, removed}, which would give exact write counts while streaming and per group; a write over an existing file shows its badge once the turn settles.

Last updated · 2026-11-25