@artale/pi-verify

Auto-verify Pi agent output. Two-agent system: builder runs, verifier checks, auto-corrects.

Package details

extensionskill

Install @artale/pi-verify from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@artale/pi-verify
Package
@artale/pi-verify
Version
1.0.0
Published
May 5, 2026
Downloads
not available
Author
artale
License
MIT
Types
extension, skill
Size
47.6 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./src/extension.ts"
  ],
  "commands": [
    "verify"
  ],
  "skills": [
    "verify"
  ],
  "image": "https://unpkg.com/@artale/pi-verify@1.0.0/preview.png"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

Pi Verify - Auto-Verification for Pi

Two-agent system: builder runs, verifier checks, auto-corrects.

Inspired by disler/the-verifier-agent

Why

Tokens are cheap. Your time is not.

Manual review takes 50% of your day. pi-verify moves that to a second agent.

How It Works

BUILDER (pi) ──► session.jsonl ──► VERIFIER (pi)
    ▲                                    │
    │        sendUserMessage()            │
    └────────────────────────────────────┘
  1. Builder Pi runs in your terminal
  2. Verifier Pi watches the session
  3. After each turn, auto-checks:
    • Files created exist
    • Syntax valid
    • Tests pass
    • No dangerous commands
  4. If issues → feedback loop (max 3x)
  5. Still failing → human escalation

Confidence Grades

Grade Meaning
PERFECT All checks pass
VERIFIED Minor suggestions
PARTIAL Some issues
FAILED Major problems

Installation

npm install @artale/pi-verify

Usage

# Enable verification
/verify on

# Check status
/verify status

# Disable
/verify off

Architecture

  • Extension: ./src/extension.ts - Pi integration
  • Script: verify.sh - Unix socket watcher
  • Config: MAX_LOOPS=3 - Loop limit

The Pattern

  1. Defense in depth bash
  2. Deterministic session.jsonl
  3. Read-only verifier tools
  4. Only verifier_prompt touches builder
  5. Max loops, then human escalation