护栏与审查

pi-heed

@Nyarlathoteppppp3TypeScriptMIT更新于 2026-09-19可当场跑

pi 编码 agent 的运行时约束:在执行每个有副作用的工具调用前,检查是否符合你的指令,基于 TypeSafe Jev 实现。

英文原文

Runtime constraints for the pi coding agent: checks every side-effecting tool call against what you said, before it runs. Powered by TypeSafe Jev.

Nyarlathoteppppp/pi-heed

它在哪儿调用了 Jev

const TYPESAFE_URL = "https://api.typesafe.ai/v1/systemone";

src/judge.ts:53

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 src/tools.ts:41

  1. instructions是/否

    Does `user_message` take back `rule`?

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    instructions: { type: 'boolean', instructions: 'Does `user_message` take back `rule`?' },
  },
});

同类的其他项目