Agent 工具
基于Jev的Claude Code判断层,通过YAML策略快速判断工具调用权限,无需调用大型语言模型,支持TypeSafe Jev,未来支持本地模型,默认干运行并发布校准表。
Jev-powered Judgment layer for Claude Code. Stops paying reasoning prices for if-statements: a PreToolUse hook scores every tool call against a YAML policy you own — allow / deny in ~100 ms, no LLM in the loop. TypeSafe Jev now, local models next. Dry-run by default, calibration table published.
// POST https://api.typesafe.ai/v1/systemone链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
destructive是/否It destroys something.
secrets是/否It exposes a credential.
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
destructive: { type: 'boolean', instructions: 'It destroys something.' },
secrets: { type: 'boolean', instructions: 'It exposes a credential.' },
},
});on_brand是/否It sounds like us.
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
on_brand: { type: 'boolean', instructions: 'It sounds like us.' },
},
});