Guardrails & review

pi-heed

@Nyarlathoteppppp3TypeScriptMITupdated 2026-09-19runnable

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

Where it calls Jev

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

src/judge.ts:53

The link points at the commit we read, so the line number still holds.

What it asks Jev

These question sets are lifted from this project's source exactly as written.

from src/tools.ts:41

  1. instructionstrue/false

    Does `user_message` take back `rule`?

Run it on your own text

The code
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`?' },
  },
});

Other projects in this category