piagent_
← ~/map

$ cat ~/map/pi-heed.md

pi-heed

Turns what you said into runtime constraints and checks every side-effecting tool call against them before it runs.

extensions✓ Sep 20

Facts

repository
github.com/Nyarlathoteppppp/pi-heed ↗
GitHub Stars
★ 13
Forks
1
license
MIT
npm / mo
—
last push
Oct 13, 2026

install

Run pi install git:github.com/Nyarlathoteppppp/pi-heed; rules work immediately and the extension starts in shadow mode — /heed on switches to enforce, and a Jev key via TYPESAFE_API_KEY or OPENROUTER_API_KEY unlocks the semantic layer.

## TL;DR

A pi extension that turns what you say in the conversation into runtime constraints: stated rules like review-only or protected paths are checked against every side-effecting tool call before it runs, survive compaction as persisted session state, and stay in shadow mode until you switch them on.

## Key points

## FAQ

Q Does it need a Jev key?

No. Deterministic rules cover read-only, don't-touch-tests, no-new-dependencies, and protected paths without any API call; a key (TYPESAFE_API_KEY or OPENROUTER_API_KEY) adds judgement for free-text prohibitions. Without a key the parser alone decides what is a rule, and the README documents it misreading 11 of 22 metaphorical messages as bans. /heed status shows judge: none when no key was found.

Q What happens when Jev is down or unsure?

It fails open: a Jev error or a 2.5-second timeout behaves as if pi-heed were not installed, and an uncertain free-text verdict comes back insufficient — pi-heed abstains instead of guessing.

Q How does it survive context compaction?

Constraints are rebuilt from the session: every rule change is an op persisted in the session, so after a reload or compaction the state replays to exactly what it was, without calling Jev again.

## References

## Related entries

## Guides

Last updated: Sep 20, 2026