TGViewer
Max Syabro and a Slop Driven Development Max Syabro and a Slop Driven Development @syabro_notes · 948 subscribers
Post #826 599
https://vitest-evals.sentry.dev

А вот это интересное решение - загнать харнесс в vitest контракт для тестовю

Вот прям на днях было что-то когда true/false не работало надо было по score оценивать. Но уже не помню 🙁

Ну и под пи есть 🙂
https://vitest-evals.sentry.dev/docs/harnesses/pi-ai/


import { expect } from "vitest";
import {
createJudge,
describeEval,
type JudgeContext,
} from "vitest-evals";
import { qaHarness } from "./qaHarness";

const CapitalJudge = createJudge(
"CapitalJudge",
async ({ output }: JudgeContext<string, string>) => ({
score: output.toLowerCase().includes("paris") ? 1 : 0,
}),
);

describeEval("capital questions", { harness: qaHarness }, (it) => {
it("knows the capital of France", async ({ run }) => {
const result = await run("What is the capital of France?");

expect(result.output).toContain("Paris");
await expect(result).toSatisfyJudge(CapitalJudge);
});
});
vitest-evals Pi Harness Adapt Pi agents and runtime-compatible entrypoints for eval runs.
  • 🔥 2
  • ❤ 1
More from @syabro_notes
  1. Sep 25, 2026TLDR AX (Agent eXecutor) - оркестратор песочниц для агентов на базе Kubernetes. Для тех кт…
  2. Sep 25, 2026tldr В Codex добавили общую доску сообщений для сабагентов. 21 сентября смерджили PR #4701…
  3. Sep 22, 2026photo post
  4. Sep 17, 2026типичный AGENTS.md
  5. Sep 17, 2026Если вам говорят что SWE2 заебись - не верьте. Тупое убожество. Сделало 2 разных вариант д…
  6. Sep 14, 2026photo post
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →