jesset

Pi Verdict — Design skill for Claude Code

Design community

A minimal permission gate for Pi in the style of Claude Code's auto mode.

How to install Pi Verdict

This entry records only its repository, not the path inside it, so there is no exact command to give. Open jesset/pi-verdict and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pi Verdict does

A minimal permission gate for Pi in the style of Claude Code's auto mode.

Alternatives in Design

  • Explanatory Output Style — Educational output mode with insights about implementation choices 14k ★
  • Clui Cc — A lightweight, transparent desktop overlay for Claude Code on macOS 956 ★
  • Clipify — Claude Code skill: turn long videos into social-ready clips 549 ★

README

pi-verdict

**[English](README.md)** | [简体中文](README.zh-CN.md)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![npm](https://img.shields.io/npm/v/pi-verdict)](https://www.npmjs.com/package/pi-verdict) [![pi extension](https://img.shields.io/badge/pi-extension-blueviolet)](https://pi.dev)

**pi-verdict is a minimal permission gate for [pi](https://pi.dev), inspired by Claude Code's auto mode: every tool call gets checked before it runs — allow, deny, or ask you first.**

  • Minimal — a ~2k-line single-file core (the classifier rides pi's native classify() since 0.13)
  • Built-in danger rules and your own allow/deny rules settle the clear cases first, at zero latency
  • Everything else goes to a model classifier that sees the conversation context
  • Any uncertainty or failure fails closed; nothing ever runs silently
  • Self-protection: the gate guards itself against snooping and tampering

The problem

pi has no built-in permission prompts — every tool call executes with the permissions of the pi process ([pi security docs](https://pi.dev/docs/latest/security)).

pi-verdict adds the missing gate: a model decides whether each call should run, based on the conversation context and your intent.

Why three states

**verdict is an adjudication, not a switch.** Most classifiers in this space output a binary allow/block. Three states matter: `ask` routes genuinely ambiguous actions to a human (and degrades to `deny` in non-interactive sessions), so "not sure" never silently becomes "go ahead" — the goal is safe automation, not maximum automation: both approval fatigue and silent unsafe execution lose.

Design principles

  • Fail closed — uncertainty produces friction, never permission.
  • Deterministic floor before AI — hard denies are never overridden by the classifier or user allow rules.
  • Semantics over syntax — the classifier judges what an action does, not how long it is.
  • Judgments, not proofs — a classifier