{"_id":"@artale/pi-pai","_rev":"6-6b5389d579bd850b9e40753f7830bc5c","name":"@artale/pi-pai","dist-tags":{"latest":"4.7.0"},"versions":{"4.3.0":{"name":"@artale/pi-pai","version":"4.3.0","keywords":["pi-package","pi-extension","pai","personal-ai-infrastructure","telos","ralph-wiggum","damage-control","goal-tracking","learning-loop","scientific-method"],"author":{"name":"arosstale"},"license":"MIT","_id":"@artale/pi-pai@4.3.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-pai#readme","bugs":{"url":"https://github.com/arosstale/pi-pai/issues"},"pi":{"tools":["pai_status","pai_learn","pai_rate"],"skills":["agents","content-analysis","investigation","media","research","scraping","security","telos","thinking"],"commands":["status"],"extensions":["src/extension.ts"]},"dist":{"shasum":"e9a4a3561df96f83e53288dbf4db941bb3f81881","tarball":"https://registry.npmjs.org/@artale/pi-pai/-/pi-pai-4.3.0.tgz","fileCount":20,"integrity":"sha512-cBjaYrC90N6Q3psXBMsZ9JRf0S6KV4x8CwTSQU3Ws+T9HKahFvrTerhjAbTdFNUOLUGq8ciYbvW1nfBQuQwtdQ==","signatures":[{"sig":"MEUCIQDkA0ncBY44y6TcqnJAqsgbt9qffnljmi+HPS5MlTN0uwIgW7DqZByT4Gu+92XUA159qzvNmxnK14xeoTHqag5+hCs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108077},"main":"src/extension.ts","type":"module","gitHead":"a67b7fb1454cb160cba7ce67f241df3819bce939","scripts":{"test":"pi -e src/extension.ts -p \"say hello and list your /commands and tools\"","build":"tsc","test:old":"echo \"Legacy tests\""},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"repository":{"url":"git+https://github.com/arosstale/pi-pai.git","type":"git"},"_npmVersion":"11.12.1","description":"Personal AI Infrastructure for Pi — synced with PAI v1.0.0 + Daniel Miesslers framework + 9 skill categories","directories":{},"_nodeVersion":"22.22.0","dependencies":{"js-yaml":"^4.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.0.3","@types/js-yaml":"^4.0.9"},"peerDependencies":{"@mariozechner/pi-coding-agent":">=0.50.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-pai_4.3.0_1777376453648_0.15544070562996004","host":"s3://npm-registry-packages-npm-production"}},"4.4.0":{"name":"@artale/pi-pai","version":"4.4.0","keywords":["pi-package","pi-extension","pai","personal-ai-infrastructure","telos","ralph-wiggum","damage-control","goal-tracking","learning-loop","scientific-method"],"author":{"name":"arosstale"},"license":"MIT","_id":"@artale/pi-pai@4.4.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-pai#readme","bugs":{"url":"https://github.com/arosstale/pi-pai/issues"},"pi":{"tools":["pai_status","pai_learn","pai_rate"],"skills":["agents","content-analysis","investigation","media","research","scraping","security","telos","thinking"],"commands":["status"],"extensions":["src/extension.ts"]},"dist":{"shasum":"c67565dd0e273e3dcafe10e70cf45d4627aab5bf","tarball":"https://registry.npmjs.org/@artale/pi-pai/-/pi-pai-4.4.0.tgz","fileCount":23,"integrity":"sha512-6V+L2x9EOP6k8Y7hlEs2vFjeVjw0nGpPK92pyg9R89kMGC2pg2aeOl6VJX+y8wXajUwuzUjw3PIlYZAsrwOIQQ==","signatures":[{"sig":"MEUCIAxAEuqhKGaKeYA6tOo1j45gQ9jMrz8+q5qPtCON0cG+AiEA2Ae8Taq3OVLMqmfIbRLgAyD8dyxCIZz0lDDS5E67nIg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":114837},"main":"src/extension.ts","type":"module","gitHead":"ee2f9ee9eaf5b96163a2a053fc2f8380fb1501de","scripts":{"test":"pi -e src/extension.ts -p \"say hello and list your /commands and tools\"","build":"tsc","test:old":"echo \"Legacy tests\""},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"repository":{"url":"git+https://github.com/arosstale/pi-pai.git","type":"git"},"_npmVersion":"11.12.1","description":"Personal AI Infrastructure for Pi — synced with PAI v1.0.0 + Daniel Miesslers framework + 9 skill categories","directories":{},"_nodeVersion":"22.22.0","dependencies":{"js-yaml":"^4.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.0.3","@types/js-yaml":"^4.0.9"},"peerDependencies":{"@mariozechner/pi-coding-agent":">=0.50.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-pai_4.4.0_1777376919836_0.622894227134325","host":"s3://npm-registry-packages-npm-production"}},"4.4.1":{"name":"@artale/pi-pai","version":"4.4.1","keywords":["pi-package","pi-extension","pai","personal-ai-infrastructure","telos","ralph-wiggum","damage-control","goal-tracking","learning-loop","scientific-method"],"author":{"name":"arosstale"},"license":"MIT","_id":"@artale/pi-pai@4.4.1","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-pai#readme","bugs":{"url":"https://github.com/arosstale/pi-pai/issues"},"pi":{"image":"https://raw.githubusercontent.com/arosstale/pi-pai/main/preview.png","tools":["pai_status","pai_learn","pai_rate"],"skills":["agents","content-analysis","investigation","media","research","scraping","security","telos","thinking"],"commands":["status"],"extensions":["src/extension.ts"]},"dist":{"shasum":"277930f448f41abb7455008699aee2b732f639ef","tarball":"https://registry.npmjs.org/@artale/pi-pai/-/pi-pai-4.4.1.tgz","fileCount":24,"integrity":"sha512-dCghKxt0t9f1oDTVhFBe+FuTyzgTcofHKQ/TBNlz65xeOWRD/CEIX7WCU1HqlvgP52nU/GP7y3+g3HcVtSozgw==","signatures":[{"sig":"MEQCIB4ZyVBpND0psTut0sjMmiDxzFvhzlh1voPOliyUkdM4AiBEYPcc8FCzvQ6a5e6pYtPTzALi9s8gIKmzKktr42+kMQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":170942},"main":"src/extension.ts","type":"module","gitHead":"bde5d869410699a3860b981fdbc437b0c58e6a94","scripts":{"test":"pi -e src/extension.ts -p \"say hello and list your /commands and tools\"","build":"tsc","test:old":"echo \"Legacy tests\""},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"repository":{"url":"git+https://github.com/arosstale/pi-pai.git","type":"git"},"_npmVersion":"10.9.4","description":"Personal AI Infrastructure for Pi — synced with PAI v1.0.0 + Daniel Miesslers framework + 9 skill categories","directories":{},"_nodeVersion":"22.22.0","dependencies":{"js-yaml":"^4.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.0.3","@types/js-yaml":"^4.0.9"},"peerDependencies":{"@mariozechner/pi-coding-agent":">=0.50.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-pai_4.4.1_1777725723238_0.7934432764848003","host":"s3://npm-registry-packages-npm-production"}},"4.5.0":{"name":"@artale/pi-pai","version":"4.5.0","keywords":["pi-package","pi-extension","pai","personal-ai-infrastructure","telos","ralph-wiggum","damage-control","goal-tracking","learning-loop","scientific-method"],"author":{"name":"arosstale"},"license":"MIT","_id":"@artale/pi-pai@4.5.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-pai#readme","bugs":{"url":"https://github.com/arosstale/pi-pai/issues"},"pi":{"image":"https://unpkg.com/@artale/pi-pai@4.4.1/preview.png","tools":["capture_learning"],"skills":["agents","content-analysis","investigation","media","research","scraping","security","telos","thinking"],"commands":["pai"],"extensions":["src/pi-pai-core.ts"]},"dist":{"shasum":"e660b3b33d625af9e8cb2136d4a45a0327df10d2","tarball":"https://registry.npmjs.org/@artale/pi-pai/-/pi-pai-4.5.0.tgz","fileCount":27,"integrity":"sha512-Nyz8Q1Ewgdwy+rNtkvEMXuEzFq/slm033cuRrY+SBv6MXVbIKg/D+ZaF3Whd1i/6JGtofYkfmIIOuaGACkL7pQ==","signatures":[{"sig":"MEYCIQCtHjHz9Z9PTmqEI5geSUxZSVuVTRcBz7+GIgrPwWwsIAIhAOWwal41k0W6JazRgEGKWJX5AjVMrltHBJww7HunS/5O","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":184785},"main":"src/pi-pai-core.ts","type":"module","gitHead":"504325034703687655c361438137ccf250893509","scripts":{"test":"pi -e src/extension.ts -p \"say hello and list your /commands and tools\"","build":"tsc","test:old":"echo \"Legacy tests\""},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"repository":{"url":"git+https://github.com/arosstale/pi-pai.git","type":"git"},"_npmVersion":"11.16.0","description":"Personal AI Infrastructure for Pi — MVI core: minimal, progressive complexity, memory on demand","directories":{},"_nodeVersion":"22.22.0","dependencies":{"js-yaml":"^4.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.0.3","@types/js-yaml":"^4.0.9"},"peerDependencies":{"@mariozechner/pi-coding-agent":">=0.50.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-pai_4.5.0_1781334998601_0.31293858249959494","host":"s3://npm-registry-packages-npm-production"}},"4.6.0":{"name":"@artale/pi-pai","version":"4.6.0","keywords":["pi-package","pi-extension","pai","personal-ai-infrastructure","telos","ralph-wiggum","damage-control","goal-tracking","learning-loop","scientific-method"],"author":{"name":"arosstale"},"license":"MIT","_id":"@artale/pi-pai@4.6.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-pai#readme","bugs":{"url":"https://github.com/arosstale/pi-pai/issues"},"pi":{"image":"https://unpkg.com/@artale/pi-pai@4.6.0/preview.png","tools":["lifeos_capture_learning","pai_learn","pai_rate","pai_status","voice_notify","prd_create","prd_update","telos_goal","telos_wisdom","telos_dashboard","algorithm_start","algorithm_advance","content_analyze","research_start"],"skills":["agents","content-analysis","investigation","media","research","scraping","security","telos","thinking"],"commands":["pai"],"extensions":["src/extension.ts","src/lifeos-pai-core.ts"]},"dist":{"shasum":"71c1e21c2fb3a07fe991b5116914dc9bbb3e1a75","tarball":"https://registry.npmjs.org/@artale/pi-pai/-/pi-pai-4.6.0.tgz","fileCount":43,"integrity":"sha512-O1flPphX5B7LXBOjDeCofx76JaNvz8DmbrgQYAzooXP27kB92UqKaWJMIA1FKKVkVbmmrb+TsUvZ+w6Q19hJwA==","signatures":[{"sig":"MEYCIQDon9MMwoeWyDktBa/iTxB4dkOm21n2cZbkE+rYLC7KIQIhANGkH49NO2Opku2jfw9vPcZTp2mjly9V/zPXneIi7xOU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":352838},"main":"src/extension.ts","type":"module","gitHead":"0df004a61fba47d758edc941ba7f1a9d8ae9d507","scripts":{"test":"pi -ne -e src/extension.ts --no-tools -p \"say done\" && pi -ne -e src/lifeos-pai-core.ts --no-tools -p \"say done\"","build":"tsc","test:old":"echo \"Legacy tests\""},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"repository":{"url":"git+https://github.com/arosstale/pi-pai.git","type":"git"},"_npmVersion":"11.16.0","description":"Personal AI Infrastructure for Pi — MVI core: minimal, progressive complexity, memory on demand","directories":{},"_nodeVersion":"22.22.0","dependencies":{"js-yaml":"^4.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.0.3","@types/js-yaml":"^4.0.9"},"peerDependencies":{"@earendil-works/pi-coding-agent":">=0.44.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-pai_4.6.0_1783215741111_0.14121676767336133","host":"s3://npm-registry-packages-npm-production"}},"4.7.0":{"name":"@artale/pi-pai","version":"4.7.0","description":"Personal AI Infrastructure for Pi — MVI core + capability profiles, schema validation, MCP registration, observability sink","type":"module","main":"src/extension.ts","pi":{"extensions":["src/extension.ts","src/lifeos-pai-core.ts"],"commands":["pai"],"tools":["lifeos_capture_learning","pai_learn","pai_rate","pai_status","voice_notify","prd_create","prd_update","telos_goal","telos_wisdom","telos_dashboard","algorithm_start","algorithm_advance","content_analyze","research_start"],"skills":["agents","content-analysis","investigation","media","research","scraping","security","telos","thinking"],"image":"https://unpkg.com/@artale/pi-pai@4.6.0/preview.png"},"scripts":{"build":"tsc","test":"pi -ne -e src/extension.ts --no-tools -p \"say done\" && pi -ne -e src/lifeos-pai-core.ts --no-tools -p \"say done\"","test:old":"echo \"Legacy tests\""},"keywords":["pi-package","pi-extension","pai","personal-ai-infrastructure","telos","ralph-wiggum","damage-control","goal-tracking","learning-loop","scientific-method"],"author":{"name":"arosstale"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/arosstale/pi-pai.git"},"devDependencies":{"@types/js-yaml":"^4.0.9","@types/node":"^25.0.3","typescript":"^5.9.3"},"peerDependencies":{"@earendil-works/pi-coding-agent":">=0.44.0"},"dependencies":{"js-yaml":"^4.1.1"},"gitHead":"0df004a61fba47d758edc941ba7f1a9d8ae9d507","_id":"@artale/pi-pai@4.7.0","bugs":{"url":"https://github.com/arosstale/pi-pai/issues"},"homepage":"https://github.com/arosstale/pi-pai#readme","_nodeVersion":"22.22.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-QpCU3RTxbL43YHOzlf423uMC8Lwn4lDzt6c8/LjkuYygRsqEBK/avQNKQgfCHNMCoOUMnU8fgw/mZhEZDL1hHw==","shasum":"ebd510086c568084c4c93782222da594ca5cfd8a","tarball":"https://registry.npmjs.org/@artale/pi-pai/-/pi-pai-4.7.0.tgz","fileCount":43,"unpackedSize":361924,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCtJrxwAAKIUzH+mWAUpKf60Uz4gYER47RoBQt1QpzrbAIgKUYv7g2J3lkVTXktfQ6hF6pQMEG4L7OhbJHw/K++0ZY="}]},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"directories":{},"maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-pai_4.7.0_1783219652757_0.7302519315880835"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-28T11:40:53.513Z","modified":"2026-07-05T02:47:33.039Z","4.3.0":"2026-04-28T11:40:53.805Z","4.4.0":"2026-04-28T11:48:39.987Z","4.4.1":"2026-05-02T12:42:03.399Z","4.5.0":"2026-06-13T07:16:38.812Z","4.6.0":"2026-07-05T01:42:21.251Z","4.7.0":"2026-07-05T02:47:32.935Z"},"bugs":{"url":"https://github.com/arosstale/pi-pai/issues"},"author":{"name":"arosstale"},"license":"MIT","homepage":"https://github.com/arosstale/pi-pai#readme","keywords":["pi-package","pi-extension","pai","personal-ai-infrastructure","telos","ralph-wiggum","damage-control","goal-tracking","learning-loop","scientific-method"],"repository":{"type":"git","url":"git+https://github.com/arosstale/pi-pai.git"},"description":"Personal AI Infrastructure for Pi — MVI core + capability profiles, schema validation, MCP registration, observability sink","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"readme":"# π-PAI v4.2.0 — Personal AI Infrastructure for Pi\r\n\r\nA Pi Coding Agent extension implementing [Daniel Miessler's PAI framework](https://github.com/danielmiessler/Personal_AI_Infrastructure) (9.6K ⭐), synced with PAI v4.0.3 + Daniels official Pi release (v1.0.0). Includes the Ralph Wiggum iteration technique, damage control, and 5 features ported from Miessler's full system.\r\n\r\n## Install\r\n\r\n```bash\r\npi install npm:@artale/pi-pai\r\n```\r\n\r\n## What's New in v4.0\r\n\r\n### Synced with Miessler's PAI v4.0.3\r\n\r\n| Feature | Source | Implementation |\r\n|---------|--------|---------------|\r\n| **v4 Algorithm** | PAI v4.0.3 | OBSERVE → PLAN → DECIDE → EXECUTE → VERIFY (was 7-phase, now 5) |\r\n| **Sentiment tracking** | PAI Observability | Every rating gets sentiment (positive/neutral/negative) + trend analysis |\r\n| **Agent personas** | PAI 14 agents | 7 personas: architect, engineer, pentester, designer, reviewer, researcher, qa |\r\n| **Self-evolution** | PAI self-upgrade | Detects repeating learning patterns (3+ occurrences), triggers `/pai evolve` |\r\n| **Plans convention** | PAI Plans dir | Auto-creates `.pi/plans/`, lists plans via `/pai plans` |\r\n\r\n## Commands\r\n\r\n### `/pai` — Goal-Driven Algorithm\r\n\r\n```bash\r\n# Setup\r\n/pai mission Build a profitable trading system\r\n/pai goal Deploy live stat-arb strategy\r\n/pai challenge Overfitting risk on historical data\r\n\r\n# Run the v4 algorithm loop\r\n/pai loop Deploy live strategy    # Start: OBSERVE\r\n/pai isc Strategy achieves Sharpe >1.5 on 5-year backtest\r\n/pai next Observed: spread mean-reverts at 3.2 std\r\n/pai next Plan: backtest 2020-2025, then paper trade 2 weeks\r\n/pai next Decision: go with mean-reversion, tight stops\r\n/pai next Executed: deployed to paper trading\r\n/pai next Verified: 58% win rate, Sharpe 1.8\r\n\r\n# Templates\r\n/pai template trading    # Pre-built mission + goals + challenges\r\n/pai template saas|devops|research|agent\r\n\r\n# Agent personas (NEW in v4)\r\n/pai agent architect Design the auth system for a multi-tenant SaaS\r\n/pai agent pentester Review this API for security vulnerabilities\r\n/pai agent designer Create the onboarding flow for mobile\r\n/pai agent reviewer Review the feature branch against main\r\n\r\n# Sentiment & trends (NEW in v4)\r\n/pai trend              # Rating trend: avg, recent, sentiment distribution\r\n/pai evolve             # Self-evolution: repeating pattern report\r\n\r\n# Other\r\n/pai plans              # List .pi/plans/ directory\r\n/pai status             # Full status with all v4 features\r\n/pai learn <insight>    # Record a learning\r\n/pai done g0            # Complete a goal\r\n/pai block g1           # Block a goal\r\n/pai reset              # Clear everything\r\n```\r\n\r\n### `/rate` — Sentiment-Aware Ratings\r\n\r\n```bash\r\n/rate 9 Clean architecture, fast execution  # → ⭐9 😊 positive\r\n/rate 3 Missed edge cases, slow             # → ⭐3 😞 negative → auto-captures learning\r\n/rate 6                                     # → ⭐6 😐 neutral\r\n```\r\n\r\nRatings track: score (1-10), context, timestamp, **sentiment** (inferred from score + keywords).\r\n\r\nWidget shows trend: `⭐7.2 📈8.0 (15 ratings)` — improving/declining/stable.\r\n\r\n### `/ralph` — Deterministic Iteration\r\n\r\n```bash\r\n/ralph Build a REST API with auth, tests, and docs\r\n# Agent iterates up to 50 times until RALPH_DONE\r\n/ralph stop\r\n```\r\n\r\n### 🛡️ Damage Control\r\n\r\nGuards via YAML rules (`damage-control-rules.yaml`):\r\n- **Blocked patterns:** `rm -rf`, `git reset --hard`, `git push --force`, `DROP TABLE`\r\n- **Confirm-first:** `git push --delete`, `git branch -D`\r\n- **Zero-access:** `.env`, `~/.ssh/`, `~/.aws/`, `*.pem`\r\n- **Read-only/No-delete:** configurable per project\r\n\r\n### 🔧 Agent Tools\r\n\r\n| Tool | Description |\r\n|------|-------------|\r\n| `pai_status` | Full status with v4 algorithm, trends, personas, patterns |\r\n| `pai_learn` | Record insight with sentiment |\r\n| `pai_rate` | Rate 1-10 with sentiment + trend tracking |\r\n\r\n### 📊 Live Widget\r\n\r\n```\r\n  🎯 Build a profitable trading system\r\n  Goals: 2⚡ 0🚫 1✓ │ 5 learnings │ ⭐7.2 📈8.0 (15)\r\n  Loop: ● ● ◉ ○ ○ [DECIDE] standard 42s\r\n  ⚠️ 2 repeating pattern(s) — consider /pai evolve\r\n```\r\n\r\n## Agent Personas\r\n\r\n| Persona | Focus |\r\n|---------|-------|\r\n| `architect` | System design, scalability, API design, failure modes |\r\n| `engineer` | Production code, error handling, types, tests |\r\n| `pentester` | Security: injection, auth bypass, SSRF, secrets, deps |\r\n| `designer` | UX/UI, accessibility, responsive, interaction patterns |\r\n| `reviewer` | Code review: correctness, edge cases, P1/P2/P3 findings |\r\n| `researcher` | Deep investigation, evidence-based, source citations |\r\n| `qa` | Test planning: happy paths, edge cases, boundaries, regression |\r\n\r\n## Lineage\r\n\r\n| Project | Author | What |\r\n|---------|--------|------|\r\n| [Personal AI Infrastructure](https://github.com/danielmiessler/Personal_AI_Infrastructure) | [Daniel Miessler](https://danielmiessler.com) | PAI v4.0.3 framework (9.6K ⭐) |\r\n| [pi-ralph](https://github.com/Whamp/pi-ralph) | Whamp | Ralph Wiggum iteration technique |\r\n| [pi-vs-claude-code](https://github.com/disler/pi-vs-claude-code) | disler | Damage control + extension patterns |\r\n| [Pi Coding Agent](https://github.com/badlogic/pi) | Mario Zechner | The platform |\r\n\r\n## v3 → v4 Migration\r\n\r\nThe algorithm changed from 7 phases to 5:\r\n- **Old:** OBSERVE → THINK → PLAN → DEFINE → EXECUTE → MEASURE → LEARN\r\n- **New:** OBSERVE → PLAN → DECIDE → EXECUTE → VERIFY\r\n\r\nTHINK+PLAN merged into PLAN. DEFINE became DECIDE. MEASURE+LEARN merged into VERIFY.\r\n\r\nActive loops will reset on upgrade. All other state (goals, learnings, ratings) carries forward.\n\n## LifeOS Scaffold Compatibility (from `Releases/Pi`)\n\nThis repo also ships the LifeOS Pi scaffold as a compatibility layer and migration path.\n\n### Added in this port\n\n- `SYSTEM.md` and `AGENTS.md` now match the canonical LifeOS scaffold policies.\n- Added root `models.json` + `settings.json` plus `VERSION` (`1.0.0`).\n- Added `INSTALL.md` with the full LifeOS install flow.\n- Added `src/lifeos-pai-core.ts` (a compat extension implementing:\n  - `voice_notify` tool\n  - `prd_create` / `prd_update` tools\n  - `lifeos_capture_learning` tool\n  - optional session voice hooks)\n- Added `memory/learning`, `memory/state`, `memory/work` with `.gitkeep` placeholders.\n- Added canonical 9 skill `SKILL.md` files under `skills/` from LifeOS.\n\n### Merge strategy (recommended)\n\n- **Primary runtime/experience remains this repo's enhanced `v4` PAI loop** (`/pai`, personas, ratings, telemetry, /rate sentiment, damage control).\n- Load `src/lifeos-pai-core.ts` in parallel for LifeOS-specific features when desired.\n- Keep `.pai` variants as rollback references:\n  - `SYSTEM.md.pai`\n  - `INSTALL.md.pai`\n  - `models.json.pai`\n  - `settings.json.pai`\n\n### Scaffold quick tree\n\n```text\nReleases/Pi/\n├── config/\n│   ├── AGENTS.md\n│   ├── SYSTEM.md\n│   ├── settings.json\n│   └── models.json\n├── extensions/\n│   └── pai-core/index.ts   -> src/lifeos-pai-core.ts\n├── skills/\n│   ├── agents/SKILL.md\n│   ├── content-analysis/SKILL.md\n│   ├── investigation/SKILL.md\n│   ├── media/SKILL.md\n│   ├── research/SKILL.md\n│   ├── scraping/SKILL.md\n│   ├── security/SKILL.md\n│   ├── telos/SKILL.md\n│   └── thinking/SKILL.md\n└── memory/\n    ├── learning/\n    ├── state/\n    └── work/\n```\r\n","readmeFilename":"README.md"}