DevMortimer

Pi Warden — Development skill for Claude Code

Development community

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

[![npm](https://img.shields.io/npm/v/pi-warden?color=cb3837&logo=npm)](https://www.npmjs.com/package/pi-warden) [![downloads](https://img.shields.io/npm/dm/pi-warden?color=blue)](https://www.npmjs.com/package/pi-warden) [![stars](https://img.shields.io/github/stars/DevMortimer/pi-warden?style=flat&logo=github)](https://github.com/DevMortimer/pi-warden/stargazers) [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE) [![Pi](https://img.shields.io/badge/Pi-0.85%2B-8a2be2)](https://github.com/earendil-works/pi) [![judged by Jev](https://img.shields.io/badge/judged%20by-Jev-orange)](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