Skip to content

Normalized events from Claude, Grok and Codex #983

Closed

Description

@JacobStephens2

Parent

#700

What to build

Each Harness's decoder gives, beside the progress lines it gives today, one normalized event type that says what happened in terms that don't depend on the Harness:

  • a model call starting and ending, with its Model, token usage (input, output, cache read and cache write) and cost where the Harness reports one;
  • a tool call starting and ending, with its tool, input, result and whether it failed or was denied;
  • a message, with its role and text;
  • an error, including usage-limit and rate-limit events;
  • killed or interrupted work, and a sub-agent starting and ending.

This Ticket covers Claude Code and Grok Build, which share one stream decoder, and Codex. Ticket #984 covers the other three. Today's consumers keep their behavior: progress lines, Model evidence, usage-limit diagnostics, Resume detection and the final message.

Acceptance criteria

  • For recorded streams of each of the three Harnesses, the normalized events list every model call and tool call with its start and end, in order, and with usage where the Harness reports it.
  • Errors, usage-limit events, killed work and sub-agents appear as normalized events.
  • Progress lines, Model evidence, usage-limit diagnostics, Resume detection and final messages are unchanged, and their existing tests pass as they are.
  • Each Harness's stream quirks have a decoder test of their own.

Activity

  1. added
    ready-for-agent
    on Oct 21, 2026
  2. JacobStephens2 commented on Oct 22, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1046, merged into issue-700 by a thirdshift Merge run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions