Skip to content
System One

Nyarlathoteppppp/pi-heed

Runtime constraints for the Pi coding agent that check every side-effecting tool call against what you actually said before it runs, using your own words as the reason when it blocks a call.

Image from Nyarlathoteppppp/pi-heed
Image from github.com

Nyarlathoteppppp/pi-heed on GitHub

Stars
7
Forks
1
Language
TypeScript
License
MIT
Last push
19 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

const OPENROUTER_URL = "https://openrouter.ai/api/alpha/decisions";
const TYPESAFE_URL = "https://api.typesafe.ai/v1/systemone";

/** Reads KEY=value from a dotenv file without exporting anything else. */
function fromEnvFile(path: string | undefined, name: string): string | undefined {
	if (!path) return undefined;
	try {
		const line = readFileSync(path, "utf8")
			.split("\n")
			.find((l) => l.startsWith(`${name}=`));
		return line?.slice(name.length + 1).trim().replace(/^["']|["']$/g, "") || undefined;
	} catch {
		return undefined;
	}
}

View in src/judge.ts

Open on GitHub

More like this

Use cases this is tagged with