iblai-vibe-agent-evals
Skill222 starsChanged 13 days agoMITView on GitHub
Add the agent Evals tab (run the agent against a benchmark of test questions, score the answers with LLM-as-Judge reviews or manual scores, export CSV) to your Next.js app, with the benchmark screens that create a benchmark in two steps and add its Q&A typed in or from a CSV file. Use when the user mentions evals, evaluations, benchmarks, test sets, Q&A pairs, LLM-as-Judge, scoring agent answers, or measuring agent quality. For the REST contract see /iblai-api-agent-eval.
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iblai/vibeword for word, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- iblai/vibe★ 222100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository166 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iblai-vibe-pr-reviewSkill
- iblai-api-agent-accessSkill
- iblai-api-agent-auditSkill
- iblai-api-agent-chatSkill
- iblai-api-agent-createSkill
- iblai-api-agent-datasetSkill
- iblai-api-agent-disclaimerSkill
- iblai-api-agent-embedSkill
- iblai-api-agent-evalSkill
- iblai-api-agent-historySkill
- iblai-api-agent-llmSkill
- iblai-api-agent-mcpSkill
- iblai-api-agent-memorySkill
- iblai-api-agent-privacySkill
- iblai-api-agent-promptSkill
- iblai-api-agent-safetySkill
- iblai-api-agent-sandboxSkill
- iblai-api-agent-sessionSkill
- iblai-api-agent-settingSkill
- iblai-api-agent-skillSkill
- iblai-api-agent-supportSkill
- iblai-api-agent-toolSkill
- iblai-api-agent-voiceSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-analyticsSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-assistantSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-createSkill
- iblai-vibe-agent-datasetSkill
- iblai-vibe-agent-disclaimerSkill
- iblai-vibe-agent-embedSkill
- iblai-vibe-agent-graderSkill
- iblai-vibe-agent-historySkill
- iblai-vibe-agent-llmSkill
- iblai-vibe-agent-ltiSkill
- iblai-vibe-agent-mcpSkill
- iblai-vibe-agent-memorySkill
- iblai-vibe-agent-privacySkill
- iblai-vibe-agent-promptSkill
- iblai-vibe-agent-safetySkill
- iblai-vibe-agent-sandboxSkill
- iblai-vibe-agent-screenshareSkill
- iblai-vibe-agent-searchSkill
- iblai-vibe-agent-settingSkill
- iblai-vibe-agentSkill
- iblai-vibe-agent-skillsSkill
- iblai-vibe-agent-supportSkill
- iblai-vibe-agent-taskSkill
- iblai-vibe-agent-toolSkill
- iblai-vibe-agent-virtual-machineSkill
- iblai-vibe-agent-voiceSkill
- iblai-vibe-incognitoSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Add the agent Evals tab -- run the agent against a benchmark (a set of test questions with expected answers) and score every answer, so you …
- Very specific: line 163
Look for iblai.env in the project root with PLATFORM, DOMAIN, and TOKEN.
- Very specific: line 197
Every eval endpoint is admin-only, so pass userIsStudent on the tab from the app's own admin check.
- Very specific: line 212
When there is more than one page of runs, the tab shows the SDK's AdvancedPagination.
- Very specific: line 276
Every error toast is the tab's own copy, not the server's message, so labels decides what users read.
- Very specific: line 349
All from @iblai/iblai-js/data-layer.
- Very specific: line 356
Run /iblai-vibe-ops-test before telling the user the work is ready, and give every page, control and state this skill added its own …
- Very specific: line 379
Call openManageBenchmarksDialog first.
- Distinctive: line 386
Every benchmark a test creates stays in the organization (see below), so give test benchmarks a recognizable prefix.
- Distinctive: line 403
A judge that cannot answer scores 0: when the judge model call fails, the review still completes, with a 0 and the comment "LLM judge call …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/iblai-vibe-agent-evals
Add the agent Evals tab -- run the agent against a benchmark (a set of
test questions with expected answers) and score every answer, so you can
catch weak spots and track improvements. Scope: benchmarks belong to the
organization; evaluations belong to the agent. One benchmark can be run
against many agents, and the table only lists runs of this agent. This is one
tab in the agent-settings family indexed by /iblai-vibe-agent; it shares the
AgentSettingsProvider wrapper with every other tab.
What the tab renders
Evaluations -- a benchmark picker (the first benchmark is selected), Manage Benchmarks, New Evaluation, and a table of this agent's runs (Evaluation, Status, Initiated By, Created), as many rows as fit the tab's height, with pagination below, so it never scrolls (between 768 and 1023px wide it shows 10 a page instead). Runs work in the background. Status is an icon that names itself on hover: Queued, Running, Complete or Failed. Between 768 and 1440px the table uses narrower columns so it fits without scrolling sideways.
Image: Evals tab -- evaluations
Row actions -- View Results, New Review, Check Status (refetch one run and toast its state), Export CSV, and Delete. View Results, New Review and Export CSV stay off until the run completes, and hovering one says why: "Available once the evaluation completes", or "Not available because the evaluation failed". On a phone a tap opens a sheet that prints the reason under each action that is off.
Image: Evals tab -- row actions
On a phone (below 768px) -- each run is a card, the row actions and the benchmark picker open as sheets from the bottom, and a "Page x of y" pager replaces the page numbers.
Image: Evals tab on a phone Image: Row actions on a phone
No benchmarks yet -- an organization without benchmarks gets a New Benchmark button in the empty state. It opens the New Benchmark dialog below, and the tab selects the benchmark it creates.
Image: Evals tab -- no benchmarks
A benchmark without Q&A cannot be evaluated -- while the selected benchmark has no questions, New Evaluation is off (hovering it says why) and the tab offers one Add Q&A button: in the empty state, or on a line above the table when the benchmark already has runs. The tab reads the count with a one-row request; if that request fails, New Evaluation stays on.
Image: Evals tab -- a benchmark without Q&A
Manage Benchmarks -- the organization's benchmarks (Name, Description, Created), 10 per page, with a search box that filters the page on screen, New Benchmark, and an eye button per row (View Q&A). A benchmark created here is selected on the tab.
Image: Evals tab -- Manage Benchmarks
New Benchmark -- two steps, like Create Agent. Details asks for a name and a description, then Next goes to Q&A:
Image: Evals tab -- New Benchmark, Details
Q&A is the same Manual / CSV Upload form as Add Q&A, and it is optional: a note says the benchmark needs one question before an evaluation can run. Create saves the benchmark, then its Q&A. The toast says how many pairs were saved, or that Q&A still has to be added.
Image: Evals tab -- New Benchmark, Q&A
The name cannot be changed later. A name with a slash (/), or made only of
dots, is refused, and so is a name another benchmark already has: the dialog
goes back to Details and says so under Name. If the benchmark is created
but its Q&A cannot be saved, the dialog stays open with an error; the button
becomes Save Q&A to try again and Cancel becomes Close. Pairs are
saved one at a time, so a save that failed part-way may have stored some, and
Save Q&A sends all of them again: open the benchmark's Q&A first, or close and
add only what is missing.
Image: Evals tab -- a name that is taken
Add Q&A -- question and answer rows typed in (Manual; the answer is optional, Add Row adds one), and Add:
Image: Evals tab -- Add Q&A, Manual
or a CSV Upload and Upload: UTF-8, a required input column, an
optional expected_output column, at most 10 MB / 10,000 rows; rows with a
blank question are skipped. Download Sample CSV saves an example. The
dialog refuses a file over 10 MB, or one whose first row has no input
column, before it uploads anything.
Image: Evals tab -- Add Q&A, CSV Upload
A benchmark's Q&A -- the pair count, Add Q&A, and each question with its expected answer, 10 per page; the trash button asks before it deletes a pair (Delete Q&A).
Image: Evals tab -- a benchmark's Q&A
New Evaluation -- the selected benchmark (to use another, close the dialog and pick it on the tab) and an optional Evaluation Name (generated when blank). Start Evaluation sends every question to this agent in the background.
Image: Evals tab -- New Evaluation
Results -- the run's status, the number of responses (one per question), Refresh, New Review, the Reviews (LLM-as-Judge runs with status, score name, criteria and model; expand one for its full criteria and the scores it produced), and one row per question with its score count. The dialog refreshes itself while responses or reviews are still running.
A response -- input, expected output, the agent's actual output, its scores (hover a score for its comment; the trash button deletes it), and Add a Score: a name, a value from 0 to 1, and an optional comment.
Image: Evals tab -- one response
New Review -- criteria for the judge, a score name, max concurrency (1 to 20, default 4), and the judge model. Start Review starts it.
Image: Evals tab -- New Review
Select LLM -- the provider grid (names and logos come from the API; a provider without a logo shows its initial); picking a provider opens its models.
Image: Evals tab -- Select LLM
Delete Evaluation -- asks for confirmation; the run and its scores go.
Image: Evals tab -- Delete Evaluation
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
Prerequisites
- Auth set up (
/iblai-vibe-auth, or vibe-starter). AgentSettingsProviderwraps the route (/iblai-vibe-agent§1).@iblai/iblai-js@^3.1.0(resolves@iblai/web-containers2.1.0). The screens above are not in releases before 2.77.0, which have a one-step New Benchmark and let an evaluation start on a benchmark without Q&A. Check withpnpm why @iblai/web-containers.- A real agent UUID. Ask the user; never invent one.
- Evals are for admins: pass
userIsStudentfrom the app's admin check (Step 2).
Step 1: Check Environment
Look for iblai.env in the project root with PLATFORM, DOMAIN, and
TOKEN. If it is missing, tell the user:
"You need an iblai.env with your platform configuration. Download the
template and fill in your values:
curl -o iblai.env https://raw.githubusercontent.com/iblai/vibe/refs/heads/main/iblai.env"
Step 2: Mount AgentEvaluationTab
// app/(app)/agents/[mentorId]/evals/page.tsx
"use client";
import { AgentEvaluationTab } from "@iblai/iblai-js/web-containers/next";
export default function AgentEvalsPage() {
return (
<div className="flex h-full flex-col bg-white">
<AgentEvaluationTab />
</div>
);
}The tab reads tenantKey, mentorId, and username from
AgentSettingsProvider and does its own fetching and saving, including the
benchmark dialogs. No props are required. The judge's model picker gets
provider names and logos from the API, so there is no logo map to pass.
The tab measures its wrapper to decide how many rows fit, so give it a set
height (here h-full inside a full-height layout, as in /iblai-vibe-agent
§1). On phones the tab's explanation moves behind an info button in your
header when the header has an empty <div data-activity-info-slot />;
without one it stays above the tab.
Every eval endpoint is admin-only, so pass userIsStudent on the tab from the
app's own admin check. It defaults to false, and the provider does not
forward a value that changes after the first render, so without the prop
users who are not admins get an empty tab:
import { AgentEvaluationTab } from "@iblai/iblai-js/web-containers/next";
export function AdminOnlyEvals({ isAdmin }: { isAdmin: boolean }) {
return <AgentEvaluationTab userIsStudent={!isAdmin} />;
}Custom pagination (optional)
When there is more than one page of runs, the tab shows the SDK's
AdvancedPagination. Pass PaginationComponent to use your own. Phones
always get the SDK's "Page x of y" pager:
import { AgentEvaluationTab } from "@iblai/iblai-js/web-containers/next";
<AgentEvaluationTab
PaginationComponent={({ currentPage, totalPages, onPageChange, disabled }) => (
<nav className="flex gap-2">
<button disabled={disabled || currentPage <= 1} onClick={() => onPageChange(currentPage - 1)}>
Previous
</button>
<span>
{currentPage} / {totalPages}
</span>
<button
disabled={disabled || currentPage >= totalPages}
onClick={() => onPageChange(currentPage + 1)}
>
Next
</button>
</nav>
)}
/>;Step 3: Customize Labels (Optional)
The tab renders with the default agent-facing copy
(AGENT_EVALUATION_TAB_LABELS, localized through the SDK's i18n). Pass a
partial labels object to change any string:
import { AgentEvaluationTab } from "@iblai/iblai-js/web-containers/next";
<AgentEvaluationTab
labels={{
header: { title: "Benchmarks" },
actions: { newExperiment: "Run benchmark" },
emptyQa: "Add a question to this benchmark before you run it.",
}}
/>;Label groups (EvaluationTabLabels):
header(title,description,infoBox) andbenchmarkPicker.actions: the buttons and row actions, among themnewBenchmark(the no-benchmarks button),addQa,notReadyHint,failedHintandrowMenuAriaLabel(takes{name}).checkStatusToast(pending,completed,failed, anderrorwhen the request itself fails),card(phone card fields) andtable(column headings;emptyStatetakes{dataset}).emptyBenchmarks,emptyQa(the no-Q&A empty state, line and hover text) andexportErrorToast.startExperimentModal(withbenchmarkInfo,experimentNameInfo,noQaError, andsuccessToast, which takes{name}) andmanageBenchmarksModal(title,description).detailModal: the results dialog, the Add a Score form, andreviewStatus(pending,running,completed,failed), the words the tab and the dialog show for runs and reviews alike.evaluateModal(the New Review form and its LLM picker) anddeleteModal.
Every error toast is the tab's own copy, not the server's message, so labels
decides what users read. The benchmark dialogs (the Manage Benchmarks list, New
Benchmark, Add Q&A, a benchmark's Q&A, Delete Q&A) take their copy from the
SDK's i18n catalog, not from labels.
Step 4: Use MCP Tools for Customization
get_component_info("AgentEvaluationTab")
get_component_info("AgentSettingsProvider")<AgentEvaluationTab> Props
Import from @iblai/iblai-js/web-containers/next.
| Prop | Type | Required | Description |
labels | DeepPartial<EvaluationTabLabels> | No | Override user-visible strings |
PaginationComponent | ComponentType<{ currentPage, totalPages, onPageChange, disabled }> | No | Pagination for the runs table. Defaults to the SDK's AdvancedPagination |
userIsStudent | boolean | No | Render nothing when true. Defaults to the provider's userIsStudent |
Related Exports
From @iblai/iblai-js/web-containers/next:
AGENT_EVALUATION_TAB_LABELS-- the default label bundle.AgentEvaluationTabProps,EvaluationTabLabels-- types.
From @iblai/iblai-js/web-containers: useLlmProviderCatalogue and
LlmProviderDetails -- a provider name + logo resolver over the same
mentor-llms rows the New Review picker reads directly, for custom UI
(see /iblai-vibe-agent-llm).
How it saves
Paths are under /api/ai-mentor/orgs/{org}/users/{username}/evaluations/.
| Action | Request |
| Load | GET datasets/?page=1&limit=200; for the selected benchmark GET datasets/{name}/items/?page=1&limit=1 (its Q&A count) and GET datasets/{name}/runs/?page=&limit= (the rows that fit) |
| Manage Benchmarks | GET datasets/?page=&limit=10 |
| Create a benchmark | GET datasets/?name={name}&limit=200 (a name already taken is refused), then POST datasets/ with name and description, then the Q&A as below |
| Add Q&A | POST datasets/{name}/items/ with items: [{input, expected_output}]; CSV: POST datasets/{name}/items/upload/ (multipart file). Neither is retried automatically |
| A benchmark's Q&A | GET datasets/{name}/items/?page=&limit=10 |
| Delete a question | DELETE datasets/{name}/items/{id}/ |
| Start Evaluation | POST datasets/{name}/runs/ with mentor_unique_id and run_name |
| View Results | GET datasets/{name}/runs/{run}/ and GET datasets/{name}/runs/{run}/evaluate/ |
| Check Status | GET datasets/{name}/runs/{run}/ |
| New Review | POST datasets/{name}/runs/{run}/evaluate/ with criteria, score_name, llm_provider, llm_name, max_concurrency |
| Add / delete a score | POST scores/ with trace_id, name, value, comment, dataset_run_id; DELETE scores/{id}/ |
| Export CSV | GET datasets/{name}/runs/{run}/export/ (downloads <benchmark>_<run>_results.csv) |
| Delete | DELETE datasets/{name}/runs/{run}/ |
The table keeps a run when its metadata.mentor_unique_id is this agent, or
when it is still pending and the current user started it.
Platform data
| Hook | Purpose |
useListEvalDatasetsQuery, useLazyListEvalDatasetsQuery | Benchmarks, and the taken-name check |
useCreateEvalDatasetMutation | Create a benchmark |
useListEvalDatasetItemsQuery | A benchmark's Q&A, and the tab's Q&A count |
useAddEvalDatasetItemsMutation, useUploadEvalDatasetCsvMutation | Add Q&A typed in or from a CSV file (not retried) |
useDeleteEvalDatasetItemMutation | Delete a Q&A pair |
useListEvalRunsQuery, useLazyGetEvalRunQuery | Runs, and Check Status |
useStartEvalRunMutation | Start an evaluation |
useEvaluateEvalRunMutation, useListEvalRunJudgesQuery | Start and list reviews |
useCreateEvalScoreMutation, useDeleteEvalScoreMutation | Manual scores |
useExportEvalRunMutation, useDeleteEvalRunMutation | Export and delete a run |
useGetLlmsQuery | The judge's provider and model list |
All from @iblai/iblai-js/data-layer. REST twin:
/iblai-api-agent-eval
(also score configs and items seeded from chat traces, which this tab does
not expose).
Step 5: Verify
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass:
pnpm build-- must pass with zero errors.pnpm test-- vitest must pass.- Touch test
/agents/<uuid>/evalsin the browser as/iblai-vibe-ops-testsays, signed in as an org admin: the benchmark picker and runs table render; a benchmark without Q&A turns New Evaluation off and offers Add Q&A; start an evaluation; once it is Complete, View Results lists one response per question; read the console; check the phone width.
@iblai/iblai-js/playwright has helpers for these screens. Its entry loads
@axe-core/playwright, an optional peer that vibe-starter and the scaffold
install; anywhere else run pnpm add -D @axe-core/playwright first, or
importing the entry throws Cannot find module '@axe-core/playwright'.
- On the tab:
selectBenchmark,expectBenchmarkNeedsQa,openAddQaFromEvalsTab,expectNoBenchmarksNotice,startEvaluation, andcreateBenchmarkFromEmptyStatefor an organization with no benchmarks. - Inside Manage Benchmarks:
createBenchmark(through Next, Q&A optional),openCreateBenchmarkDialog,goToBenchmarkQaStepandopenBenchmarkItems. CallopenManageBenchmarksDialogfirst; from the tab they wait for a dialog that is not open and time out. expectRunStatus(page, runName, "COMPLETED")takes the status upper-cased (EvalRunStatus:PENDING,IN_PROGRESS,COMPLETED,FAILED) and finds it, lower-cased, in the status icon'sdata-status. A lower-case value failspnpm typecheck, which coverse2e/in vibe-starter.
Every benchmark a test creates stays in the organization (see below), so give test benchmarks a recognizable prefix.
Important Notes
- Benchmarks are permanent: there is no rename or delete, in the tab or the API, and every agent in the organization sees them. Name them with care.
- A name is unique only because the dialog checks it: the server answers
a second create with a name that exists by updating that benchmark, so Q&A
sent with it would land in the existing one. The dialog reads one page of
up to 200 benchmarks whose names contain the new one, so in an organization
with more such names a taken name can get through. Code that creates
benchmarks through the API should page through the lookup
(
/iblai-api-agent-eval). - Runs cost model calls: an evaluation sends every question to the agent, and each review sends every response to the judge model.
- A judge that cannot answer scores 0: when the judge model call fails, the review still completes, with a 0 and the comment "LLM judge call failed" for each response. Check the comments before trusting a low score.
- Manual scores are 0-1, and they appear on the response at once.
- Shared provider: mount
AgentSettingsProvideronce at the layout level (/iblai-vibe-agent§1); do not wrap each tab. - Peer deps:
sonnerand@iblai/iblai-web-mentor(pnpm add sonner @iblai/iblai-web-mentor). - Brand guidelines: BRAND.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

