Skip to content
codeband is pre-release. These docs describe its first release, and some of what they describe is still being built.

Agent transcript

An agent transcript is the complete record of what happened inside an agent step: the text that the agent wrote, the tools that it called and what each call gave back. The harness writes it in its own format, and codeband reads it in one normalized form for every harness.

The step output says what the agent produced. The agent transcript says how it got there: which file it read, which command failed and what it did next. You read it to follow an agent step while it runs, and to find out why an agent step went wrong.

For each attempt of an agent step, the engine keeps what the harness writes as the raw agent transcript, such as the stream-json lines of Claude Code. When the attempt ends, the raw agent transcript goes into the blob store, and the run journal entry of the attempt names it by its content ID. An agent step that needed three attempts has three agent transcripts.

The adapter of each harness reads the raw agent transcript as the normalized agent transcript, a list of entries in the order the harness wrote them:

Entry Holds
Agent text Text that the agent wrote
Tool call The name of the tool, such as Bash, its input as JSON and the ID of the call
Tool result What the call gave back, as text, the ID of the call, and whether the call failed
API retry A failed request to the model API that the harness sent again, with the reason, such as overloaded

The entries of a subagent name the tool call that started the subagent, so every view shows them under that call. A tool result of Claude Code that holds more than text, such as an image, has the name of each other block in brackets, such as [image]. The thinking of the agent is not in the normalized agent transcript.

While an attempt runs, the daemon sends each new entry of its normalized agent transcript to every daemon client that watches the run, such as codeband attach and the page for the run in the web interface. A daemon client that starts to watch in the middle of an attempt gets the entries from the start of the attempt, and each entry once. The entries are not in the run journal, so a daemon client that watches an ended run gets none of them from the stream.

An agent step of an agent that lists the files with Bash and then reads a file that does not exist prints these lines in codeband attach -v:

Output
Attached to run 51qgj5cs40
▸ tool_user#0 agent step of tool_user
tool_user#0: looking
tool_user#0 → Bash {"command":"ls"}
tool_user#0 ← hello.txt
tool_user#0 → Read {"file_path":"gone.txt"}
tool_user#0 ← failed: File does not exist.
✓ tool_user#0 finished after 2.3s, $0.00

A line with → is a tool call, and the line with ← after it is its tool result. failed: marks the tool result of a call that failed.

The daemon sends at most the first 16 KiB of a tool result and marks a longer one as cut. The raw agent transcript in the blob store keeps all of it.

Daemon client Shows a tool result as
codeband run, codeband attach, codeband show The line STEP ← CONTENT with the first line of the tool result, cut at 100 characters. With --verbose, the first 20 lines and how many it left out
codeband web A line under the tool call, marked Returned or Failed. A click shows all of the tool result that arrived, and a cut one ends with a note such as Cut at 16 KiB of 244 KiB

The page for a run in the web interface shows the agent transcript of each attempt of an agent step that ended, in the same form as the live output. The daemon reads it from the raw agent transcript in the blob store, with the same adapter that reads the live output, so the entries are the ones that the live output had, in the same order. It cuts no tool result. The page loads the agent transcript of an attempt when you open it, and it offers the raw agent transcript, as the harness wrote it, to open or download.

  • Agent step explains the attempts of an agent step and the step output.
  • Run explains the run store, where the blob store keeps the raw agent transcripts.
  • The CLI reference lists every line that codeband run prints for an agent step.
  • The Python SDK reference shows how a fake attempt scripts tool calls and their tool results.