Pi Warden — Development skill for Claude Code
Zero-key runtime guardrails for Pi, Claude Code, and Codex — blocks destructive commands and secret exfiltration, enforces project rules, and breaks agent loops.
How to install Pi Warden
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open DevMortimer/pi-warden and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pi Warden does
Zero-key runtime guardrails for Pi, Claude Code, and Codex — blocks destructive commands and secret exfiltration, enforces project rules, and breaks agent loops.
Alternatives in Development
- JWT Scan — JWT attack toolkit (offline) — alg:none forgery, RS256→HS256 algorithm confusion, weak-secret crack, static cl 4.5k ★
- Mega Plan — Generate a mega-plan for project-level multi-feature orchestration 123 ★
- Claude Code Project Boundary — Claude Code plugin: scope-aware protection — allows destructive ops (rm, mv, chmod) within project, blocks the 86 ★
README
pi-warden
[](https://www.npmjs.com/package/pi-warden) [](https://www.npmjs.com/package/pi-warden) [](https://github.com/DevMortimer/pi-warden/stargazers) [](LICENSE) [](https://github.com/earendil-works/pi) [](https://typesafe.ai)
**Zero API keys required. $0 out of the box.** pi-warden stands between a coding agent and your machine. Install it with one command and ~90% of its protection runs locally in deterministic code — stopping destructive commands, blocking secret exfiltration after untrusted web reads, catching mechanical project-rule violations in `<1 ms`, reclaiming stale screenshots and logs without breaking prompt caches, and catching edit-revert and thrash loops before they burn your session.
Want semantic judgment on top? Run `/warden enable` to add [Jev](https://typesafe.ai) as optional semantic toppings (`~1` request per coding turn thanks to 95%-frugal gating): it judges subtle prose rules, unverified "done" claims, non-pattern irreversible actions, and smoothly declassifies routine developer pushes when the taint firewall would otherwise fail closed offline.
It runs inside [Pi](https://github.com/earendil-works/pi), and as hooks in Claude Code and Codex.
**Local [Warden-S1](https://ryanjoshuagapac.com/writing/warden-s1), strictly opt-in:** set `"typesafeBackend": "warden-s1"` (or `"auto"`) and run `/warden model download`, and the semantic checks run **on this machine at `$0`**: no key, no consent screen, nothing leaves `127.0.0.1`. One shared daemon serves every Pi session and pages idle ones to RAM and disk; each session's transcript is warmed
Related Skills
Narthex
Prompt-injection defenses for Claude Code. A PreToolUse Bash hook blocks compositional credential-exfiltration
Guard
Safety guardrails — blocks destructive commands (rm -rf, DROP TABLE, force-push) and optionally restricts edit
Claude For Lawyers Digital Advocate
A Claude Code & Cowork plugin that enforces strict court pleading formats, direct pinpoint citations, and zero
MCP Diet
Zero-dependency stdio MCP proxy & runtime context firewall: deterministic tools/list tree-shaking, oversized t
Prompt Injection Guard
Detect prompt injection, hardcoded secrets, destructive commands and exfiltration patterns in any text or file
Skill Scan Gate
CI gate for Claude Code skills and plugins: scans a skills or plugin repository for instruction-override text,
Related Agents
Leak Review
Security review of commits by OTHER contributors before they are built — data exfiltration, key material and w
Kio QA Lead
QA Team Lead & Quality Gatekeeper (Diana Ross). Enforces Zero-False-Completion, mandates automated test cases
Kenaz
Audits the security of Claude Code plugins, MCP servers, and AI agents before installation. Analyzes executabl