A local-first multi-agent app development platform, built on PenguinHarness
The Evaluation Center creates and optimizes Benchmarks
- Date: 2026-09-02
- Type: feature
- Scope:
core,server,web,skills,docs - PR: #596
A Benchmark became a peer of an agent rather than something an agent owns: it moved to the Project level, one Benchmark can evaluate several agents, and the agent under test is recorded on each evaluation. The Evaluation Center was rebuilt around that and around the loop a first-timer needs — create a Benchmark, read its scores, hand it to an optimizer — each step one click away, with the prompts written for the person.
Details
- Benchmarks moved from
agents/<agent>/benchmarks/<id>/to the Project'sbenchmarks/<id>/, a sibling ofagents/.benchmark_config.toml(title, description, runs) records no agent; everyscoreboard.yamlevaluation carries the agent it tested asagent_id, written right aftertime. Files stayed the single source of truth. agent_id,model_idandthinking_levelform an evaluation's label: three parts, written out as the legend text a series is recognized by (<agent_id> · <model_id> · <thinking_level>). The Benchmark chart plots time against score and draws one series per label, so only comparable scores share a line; a record with no label falls into a grey series. The Agent Stateversionand theproviderstay outside the label. Successive versions of one agent on one runtime are the trend the loop exists to show and belong on one line — the example Benchmark's three evaluations are now a single connected line — and a series has to be identifiable from the text its legend prints, which names the model id rather than the group it is served from. Each point names the version it tested in its hover bubble, the evaluation table keeps its own version column, and a card's score change is still measured against the previous evaluation under the same label.- A row of the evaluation table no longer unfolds inside the table. Clicking it opens an evaluation dialog, shaped like the case dialog beside it: the series label with the tested agent's avatar and the version it tested, the stored Score, cost and duration, the evaluation's summary with its title and body shown separately, and the per-case table, whose rows still expand to the raw result of every Run and the Session it ran in. A case named in there opens the case dialog over it.
- Both detail dialogs end in an Ask AI button, which opens the Create-with-AI dialog as a question rather than a request to build something: the prompt box arrives filled in (why this evaluation came out as it did, or what this case tests), the same question leads the example buttons (so it can be brought back after trying one of the three others), and a fixed tail hands over the facts on screen. For an evaluation that is the Benchmark id and directory, the time, the series label, the version, the provider / model / thinking level, the total and per-case scores, every run's Session id and the summary, with a request to read
scoreboard.yamland the named Traces, explain how the scores came about, name the weak cases and suggest a next step. For a case it is the Benchmark and case ids, thestatement/README.mdandrubric/README.mdpaths, and how the latest evaluation's runs scored it, with a request to explain what the case tests, what a strong answer looks like and how the rubric discriminates. Neither asks for a change — the cases are frozen and the tested agent is not the subject — and both leave through the kit's single exit, prefilled into a new conversation with the Project's default agent. - The case dialog's file browser is now the shared read-only file browser (
FileBrowser): the Workspace files panel's tree on the left — task materials and rubric as its two top-level folders, listed level by level — and one preview pane on the right; the plugin detail Modal uses the same component, so the three browsers share one style. - The page: one flat list, no per-agent grouping. A title with the search box (over titles, descriptions and the agents a Benchmark has evaluated) and the two create buttons beside it, the three step cards under them, and one card per Benchmark carrying its title and directory name, the case and run counts, the last evaluation time, the agents it has evaluated, the newest score with its change, and a score sparkline — the list column, the header and the cards in the Agents page's shape.
- Opening a Benchmark enters it. A card, or its View button, navigates to that Benchmark's own page at
/benchmark/:benchmarkId— the existing detail (chart, evaluation table, case browser) and a back button to the list — instead of expanding a second pane beside the list. An id that resolves to nothing, a deleted Benchmark or a stale link, says so and keeps the way back. Empty states carry the guide and the same pair of buttons, and?agentId=narrows the list to the Benchmarks that have evaluated that agent. - Create with AI and Create manually are the kit's two buttons, side by side and the same pair the scheduled-tasks tab uses, each opening its own path. The AI one adds a Test Agent picker above the prompt, four scenario examples written the way the draft page's benchmark example is — Benchmark id, capability, case count, techniques, desired baseline and pilot limit, line by line — and deliberately small and hard (three cases each, hidden preconditions, vague or conflicting input, strict deliverables, a desired baseline below 50), and a fixed tail that hands the
benchmark-designSkill the agent id, a desired baseline score, a pilot-iteration limit and the layout to write; the composed prompt is prefilled into a new conversation and sending stays the user's move. The manual one is a form — title, id proposed from the title, description, runs per case, and per case a directory suffix, title, statement and rubric, with format hints on screen and a folded note on what makes a rubric discriminating — and it no longer asks which agent the Benchmark belongs to. - Under the title stand three separate step cards — three across on a wide screen, stacked on a narrow one — each carrying its number, its title and one sentence that says where on the page to do it (the create buttons at the top right; Use → Evaluate and Use → Optimize on a Benchmark); nothing stands above or beside them, and nothing is drawn between them: the numbers carry the order.
benchmark_config.tomlcarries astatus:draftwhilebenchmark-designis still writing the cases and calibrating their difficulty,publishedonce the Formal Baseline is recorded (the Skill flips it itself; a hand-made Benchmark and the built-in example are published from the start, and a config without the field reads as published). A draft is masked in the Evaluation Center: the card dims under an overlay that says it is still being built, Use and View are disabled, its page shows the same notice instead of the cases and the chart, and only the owner's delete icon stays live so a failed calibration can be cleaned up.agent-optimizationrefuses a draft. A third value,failed, is written bybenchmark-designwhen calibration ends without a Pilot result it can freeze: the card and the page then carry a creation-failed notice instead, the only way out is to delete the Benchmark and create it again, andagent-evaluationandagent-optimizationboth refuse it.- Sessions gain a third origin,
benchmark: the conversation Use → Evaluate / Optimize opens is created with it, andagent-evaluationlaunches every Test Session withpenguin run --source benchmark. The session list files them into an Evaluations folder beside Subagents and Scheduled — an evaluation used to pour its Case × Run Sessions into the tested agent's active list. A benchmark Session is never auto-opened as the last conversation. - A group whose only conversations sit inside its folders — no active row of its own, which is what an evaluation's per-case Workspaces and an agent that only ran evaluations look like — now collapses by default and sorts after the other groups of its mode (pinned groups excepted), in both workspace and agent grouping; its header is dimmed and counts the folded rows, and opening it once keeps it open for that Project. Before, every such Workspace surfaced as a full group at the top of the list.
- Use, on a card and in the Benchmark page's header alike, opens one dialog: a segmented control at the top, and an Evaluate tab beside the Optimize one. Evaluate is a form (the tested agent, defaulting to the one the newest evaluation tested; the evaluator agent, warned when it lacks the
agent-evaluationSkill; the model of the evaluation conversation, picked with the Project settings' own model picker and preset to the Project's default model; runs per case; an optional note) over a new prompt tail that asks for the full Case × runs matrix through self-spawnedagent-evaluationsubagents, requires every result'sagent_id/provider/model_id/thinking_levelto agree, averages per case and per evaluation as the scoreboard contract says, and appends exactly one labelled evaluation toscoreboard.yamlwithout touching the tested agent or the Benchmark. Optimize kept its form and tail, and now points an agent with no baseline at the Evaluate tab. Both tabs preview the full prompt and share one exit — prefilled into a new conversation, for the user to read and send. - Neither tab offers a free-text "with AI" shape beside its form: the one exit already opens the assembled prompt in an editable composer, so a second free-prompt path over the same parameters would only split the entry point in two.
- A card's actions are Use, View and, for the owner, the Agents list's delete icon, which confirms before removing the directory whole. A card carries no overflow menu: the directory path it would have held stands beside the title on the Benchmark's own page instead, in mono, with a button that copies it.
- Server: the Benchmark routes moved to
/api/projects/:projectId/benchmarksand dropped theiragentIdsegment, membership and ownership now being checked at the Project level.POST(owner only) writesbenchmark_config.toml, ascoreboard.yamlholdingevaluations: [], and each case'sstatement/README.md(the title as its heading) andrubric/README.md, answering 409benchmark_existsfor a taken id;DELETE …/benchmarks/:idremoves the directory whole. A listed Benchmark reportsagentIds, the distinct agents its evaluations name in first-seen order, and each evaluation reportsagentId(nullwhen the record carries none). - The list only returns directories holding a
benchmark_config.toml. Deleting a Benchmark while an evaluation is still running leaves a directory behind — the run keeps writing to the paths it was deleted from — and that debris no longer appears as a Benchmark with a placeholder title. A Benchmark that has never been evaluated has its config and still lists. - The
benchmark-design,agent-evaluationandagent-optimizationSkills read and write the Project-level path, state that a Benchmark may evaluate several agents withtest_agent_idnaming the one a request evaluates, returnagent_idin the evaluation protocol, and write it into every scoreboard entry they append. Theagent-tuningplugin version became2026.09.14.3. - The example Benchmark is provisioned whenever a Project has no
benchmarks/directory at all — when itsdefault_agentis initialized, and again the first time that agent is loaded, so a data root that predates the example gets one. The check is on the directory, not on the example inside it: deleting the example whilebenchmarks/remains is a decision that stands. Its three sample evaluations are labelledagent_id: default_agent. - A Benchmark's cases are frozen once it exists: neither the Web App nor the server API can edit a statement or a rubric, because changing the questions would make the scores already on the scoreboard incomparable. Asking different questions means creating a new Benchmark; the calibration AI does while writing the cases happens before the baseline and is part of creating them.
- The "Create with AI" bridge accepts a
modelRef, which the Optimize dialog uses to pin the model of the optimizer's conversation. - A
benchmarks/directory left under an agent by an earlier version is not read by this version; nothing migrates or deletes it. - The Web App, server API and self-improvement docs describe the page, the routes and the storage layout in both languages.