Agent tooling
Claude Code plugin that scores review findings, debug hypotheses and design options with TypeSafe's Jev — calibrated probabilities instead of one more opinion.
import { TypeSafeClient } from '@typesafe-ai/sdk';src/infrastructure/typesafe-jev.ts:1
The link points at the commit we read, so the line number still holds.
These question sets are lifted from this project's source exactly as written.
from tests/typesafe-jev.test.ts:37
is_urgenttrue/falseDoes this convey urgency?
frustrationscoreHow frustrated is the customer?
0 — Calm1 — Frustrated2 — Very angryimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
is_urgent: { type: 'boolean', instructions: 'Does this convey urgency?' },
frustration: { type: 'score', instructions: 'How frustrated is the customer?',
criteria: ['Calm', 'Frustrated', 'Very angry'] },
},
});from tests/typesafe-jev.test.ts:135
plaintrue/falseIs it fine?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
plain: { type: 'boolean', instructions: 'Is it fine?' },
},
});from tests/use-cases.test.ts:23
qtrue/falseIs it fine?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
q: { type: 'boolean', instructions: 'Is it fine?' },
},
});