Agent tooling
Opencode plugin using Jev (system one model) as part of software development process. Not affiliated with Opencode team.
const model = options.model ?? "~typesafe/jev-latest"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.
is_urgenttrue/falseDoes this message convey urgency?
departmentchoiceWhich team should handle this?
billing — Payments, invoicing, refundstechnical — Bugs, outages, integrationssales — Pricing, upgrades, new accountsimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
is_urgent: { type: 'boolean', instructions: 'Does this message convey urgency?' },
department: { type: 'choice', instructions: 'Which team should handle this?',
criteria: { billing: 'Payments, invoicing, refunds', technical: 'Bugs, outages, integrations', sales: 'Pricing, upgrades, new accounts' } },
},
});needs_tooltrue/falseDoes making progress require calling a tool?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
needs_tool: { type: 'boolean', instructions: 'Does making progress require calling a tool?' },
},
});