@artale/pi-verify
Auto-verify Pi agent output. Two-agent system: builder runs, verifier checks, auto-corrects.
Package details
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() │
└────────────────────────────────────┘
- Builder Pi runs in your terminal
- Verifier Pi watches the session
- After each turn, auto-checks:
- Files created exist
- Syntax valid
- Tests pass
- No dangerous commands
- If issues → feedback loop (max 3x)
- 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
- Defense in depth bash
- Deterministic session.jsonl
- Read-only verifier tools
- Only verifier_prompt touches builder
- Max loops, then human escalation
