Add packages/bench: single-task CUA model runner#39
Draft
jarugupj wants to merge 4 commits into
Draft
Conversation
Introduce a private @onkernel/cua-bench workspace that runs one task on one model against a fresh Kernel browser via CuaAgentHarness, capturing wall-clock, turn count, and token totals. Accuracy scoring and cost conversion are left unscored for follow-up work. Includes a spike entrypoint for a manual run.
Pin @onkernel/cua-agent and @onkernel/cua-ai to "*" so the private bench package keeps resolving the workspace siblings across version bumps, and regenerate package-lock.json against the current tree.
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.
Summary
@onkernel/cua-benchworkspace — the first slice of a benchmark that runs CUA models on Kernel browsers and reports accuracy / cost / speed.runTask(modelRef, task)provisions a fresh Kernel browser, builds aCuaAgentHarnesson the given model, runs the prompt, and tears the browser down. It captures wall-clock, turn count, and token totals (summed across every model call via harness events).spike.tsis a runnable one-shot: one HN task onanthropic:claude-opus-4-6.Scope / what's deliberately left for follow-up
successreturnsnull— the accuracy judge (adopting an existing benchmark's scorer, e.g. Online-Mind2Web's) is the next step.costUsdis populated only when the provider reports a cost; the token×price conversion comes with the model price table.How to run locally
Prints a
TaskResultJSON with timing + token totals.Test plan
tsc -btypechecks cleanKERNEL_API_KEYclaude-opus-4-6produces wall-clock + token numbers