Repository navigation
feat: record step and tool call counts for eval runs - #278
Merged
mattrossman merged 5 commits intoSep 9, 2026
Merged
mattrossman merged 5 commits into
mattrossman merged 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This reverts commit ec1d25d.
mattrossman
marked this pull request as ready for review
September 9, 2026 21:04
gregnr
approved these changes
Sep 9, 2026
Collaborator
Author
|
Renamed turns -> steps as mentioned here, also removed the legacy / unused |
NickLittman
added a commit
that referenced
this pull request
Sep 18, 2026
## What's inside Adds Grok Build, xAI's coding agent, as a fourth CLI harness alongside Claude Code, Codex and OpenCode. - ~640 lines of runner + parser, the only files needing real review (packages/core/src/agents/grok/) - ~400 lines of parser tests, skimmable - ~95 lines of experiments and plumbing: grok-4.6, grok-4.6-no-skills, XAI_API_KEY through the workflow, the registry entry, the web label - ~17k lines of results data, committed by the bot from two workflow runs Grok Build is xAI's coding agent. It calls the xAI API directly, so it needs XAI_API_KEY rather than the gateway key the other harnesses share. - GROK_HOME goes in the shell command, not the sandbox env map. docker exec --env passes values verbatim, so a $HOME in an env value reaches the CLI unexpanded. The CLI resolves it against the cwd, writes its config, sessions and binary into a directory named $HOME inside the scored workspace, and never reads the config.toml we stage. MCP servers silently fail to connect, and the run scores 0 with an empty report that looks like a model failure. - Grok reads .claude/skills natively, but the skills CLI has no grok agent id and rejects the whole install when one is named. SKILLS_PATH_BY_AGENT gives grok null, and the claude-code entry populates the directory it reads. Drop claude-code from that map and grok loses its skills with nothing failing. Follow-up below. ## Results - with skills (64/69 - 93%) - without (58/69 - 84%) 23 benchmark evals × 3 runs on Vercel Sandboxes. Not comparable to the other rows yet: they were last refreshed on 2026-09-09 (d462078), so they predate #278, #240 and #241, including the system-prompt removal that #241 calls a scoring change. ## How to review Needs XAI_API_KEY in .env. Use --concurrency 1 locally; Docker drops containers under load and reports it as a timeout with a 0 score. pnpm eval -- --experiment grok-4.6 --eval resolve-dataapi-001-empty-results ## Follow up tasks - Split "scope a harness reads" from "--agent ids the CLI accepts" in SKILLS_PATH_BY_AGENT, so grok declares .claude/skills and a missing install fails loudly instead of silently. - Refresh the other five benchmark experiments. Every non-Grok row predates #278/#240/#241, so the published table currently compares across harness versions. - The Grok CLI is pinned to 1.0.13; xAI shipped 12 releases in the following 12 days. The streaming-json schema is undocumented and its embedded docs already describe a stream it doesn't emit, so bump deliberately and re-check the parser against a real transcript. Ref AI-1143 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Rossman <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Records
stepCountandtoolCallCounton each result next tousageanddurationMs, so we can compare how many model round trips a harness needs to finish a task. One step is one model response, however many tool calls it carries. See discussion thread for why these are tracked.Where
stepCountcomes from:num_turnson the finalresulteventstep_finishrecords in the streamtoken_countevents in the session rollout under$CODEX_HOME/sessions, sinceexec --jsonhas no per-response boundary (one per model response)toolCallCountis the length of thetoolCallslist we already parse."Step" over "turn" because Codex uses turn for the whole agent response to a prompt, while step is the unit within it in AI SDK and OpenCode.
Sanity checked one eval per harness via the refresh workflow, snapshot here (reverted to keep results out of this PR).
Closes AI-1199