@artale/pi-verify
v1.0.0
Published
Auto-verify Pi agent output. Two-agent system: builder runs, verifier checks, auto-corrects.
Downloads
213
Maintainers
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-verifyUsage
# Enable verification
/verify on
# Check status
/verify status
# Disable
/verify offArchitecture
- 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
