Skip to content

Add the agent benchmark with the application-specific code ratio - #98

Merged
jimhoyd merged 3 commits into
mainfrom
claude/issue-73-agent-benchmark
Sep 18, 2026
Merged

jimhoyd merged 3 commits into
mainfrom
claude/issue-73-agent-benchmark

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

benchmarks/agent/ is the Phase 0 instrument from docs/NEXT-STEPS.md §0.1–0.2:

  • Ten tasks under tasks/<id>/ (redirect service, URL shortener, webhook receiver, small JSON API, static site plus API, authenticated endpoint, CRUD backend, admin backend, file and download service, contact form), each with a prompt, a required list, optional operator environment, and one acceptance/requests.json fixture shared by both arms plus a note on what it deliberately does not check. The OAuth app and API proxy tasks are named as the next two once they can run offline.
  • Two arms. Conventional: the harness starts the reported command on a free $PORT in its own process group and sends the fixture with the same pass rule urlcode test uses. URLCode: the fixture becomes tests/requests.json, the harness plays the operator by granting exactly what urlcode permissions requests (policy file outside the project) and runs urlcode test from this checkout.
  • count-lines.ts: the documented idea-vs-plumbing rule (functions/ and declared modules are the idea; urlcode.yaml, middleware, servers, auth, assets, tests and config are plumbing; dependencies and the harness-written fixture excluded). Pure, unit-tested.
  • run.ts / adapters.ts / harness.ts: pluggable ModelAdapter interface and a stub adapter that copies prepared answers from answers/ so the pipeline runs end to end with no API. Records capture tokens, turns, retries, generated files and lines, wall time, tests passed, harness failures, a regex security checklist, the exact prompt and its hash, harnessVersion, and evidence: stub|model.
  • Five authoring evals (evals/*.yaml) with the full eight-criterion rubric and an expect block that makes each criterion mechanically scoreable (schema load, handler kind, JavaScript presence, boundary patterns, fixture coverage, reported commands, portable subset). A criterion the harness cannot see fails rather than being skipped.
  • Run storage under benchmarks/agent/runs/<date>-<model>-<arm|evals>/; *-stub-* directories are git-ignored.
  • README states what the numbers are and are not, and that nothing is evidence until a stored model run exists (none ships).
  • "benchmark:agent" in package.json; CONTRIBUTING pointer. No new dependencies.

Validation

  • npm run verify green: lint, typecheck, check (including llms-full), build, and 464 tests (427 pass, 0 fail, 37 skipped, including the new test/agent-benchmark.test.ts with 10 tests covering the counting rule, task/eval loading and validation, the security checklist, the stub pipeline for both arms, failure reporting, and eval scoring of a good and a bad answer).
  • npm run benchmark:agent: all ten tasks pass their fixtures in both arms with the stub answers (redirect 9/9, shortener 14/14, webhook 10/10, JSON API 12/12, static site 10/10, authenticated 8/8, CRUD 13/13, admin 13/13, files 9/9, contact 9/9) and all five evals score 8/8.

Closes #73

🤖 Generated with Claude Code

https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E


Generated by Claude Code

benchmarks/agent/ is the instrument for Phase 0: ten tasks with one
acceptance fixture each, shared by a conventional arm and a URLCode arm;
a documented idea-versus-plumbing counting rule (count-lines.ts, no I/O,
unit-tested); a runner with a pluggable adapter interface and a stub
adapter that copies prepared answers so the whole pipeline runs with no
API; five authoring evals (docs/NEXT-STEPS.md §0.2) scored mechanically
against the eight-criterion rubric; JSON run records under
benchmarks/agent/runs/ marked stub or model; and a README that says what
the numbers are and are not. Stub runs are git-ignored and never evidence.

`npm run benchmark:agent` runs it. No new dependencies.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
The harness spawned /bin/sh unconditionally, which fails with ENOENT on
Windows runners. Use ComSpec there and stop the server with taskkill /t
so the whole tree goes away, keeping the POSIX process-group path as is.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
@jimhoyd
jimhoyd merged commit e288588 into main Sep 18, 2026
12 checks passed
@jimhoyd
jimhoyd deleted the claude/issue-73-agent-benchmark branch September 18, 2026 07:48
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.

Phase 0: agent benchmark with the application-specific code ratio

2 participants