โ† back to /labs
๐Ÿงฌ

โ€ป /labs/pai

PAI

the personal AI exoskeleton โ€” Claude Code, ritualized

work in progress

โ€ป vision

A personal AI infrastructure framework that turns Claude Code into a daily-driver exoskeleton. Multi-mode (NATIVE / ALGORITHM / MINIMAL), voice-announced phase transitions, a self-modifying agent that announces itself with my own cloned voice, and a strict ISC-criteria protocol for hill-climbing on every task. Currently version 4.0.3.

โ€ป why

Default UX = default thinking. The shipped chat-and-tool-use UX of every AI lab is too generic for the way I actually work. PAI is what happens when I stop accepting a stranger's mental model for my own brain.

โ€ป the algorithm

OBSERVE โ†’ THINK โ†’ PLAN โ†’ BUILD โ†’ EXECUTE โ†’ VERIFY โ†’ LEARN. Each phase has a voice announcement, an ISC checklist, a budget, and a written PRD. The agent edits the PRD as it works.

what's currently wired in

  • โ–ถvoice announcements (ElevenLabs cloned voice) at every phase boundary
  • โ–ถPRD-as-source-of-truth โ€” every task has a `MEMORY/WORK/{slug}/PRD.md`
  • โ–ถISC count gate โ€” refuses to exit OBSERVE without enough atomic criteria
  • โ–ถa custom statusline showing model, budget, and mode
  • โ–ถstructured reflection logs feeding a self-improvement skill
  • โ–ถthe entire framework is invoked by `claude` in any project โ€” no per-project setup
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚     PAI ยท the seven-phase ritual           โ”‚
   โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
   โ”‚  ๐Ÿ‘  OBSERVE   โ†’  reverse engineer        โ”‚
   โ”‚  ๐Ÿง  THINK     โ†’  premortem, risks         โ”‚
   โ”‚  ๐Ÿ“‹ PLAN      โ†’  prereq + capability sel  โ”‚
   โ”‚  ๐Ÿ”จ BUILD     โ†’  invoke skills/agents     โ”‚
   โ”‚  โšก EXECUTE   โ†’  do the work + tick ISC   โ”‚
   โ”‚  โœ… VERIFY    โ†’  test every criterion     โ”‚
   โ”‚  ๐Ÿ“š LEARN     โ†’  reflection JSONL log     โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜