⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
docs: Update PAI principles - add Customization as Principle #1
Daniel Miessleraf90084d0f95
diff --git a/README.md b/README.mdindex 880d5b5b..77cb67ae 100644--- a/README.md+++ b/README.md@@ -35,7 +35,7 @@<br/>-**Getting Started:** [AI-First Install](#-this-readme-is-for-your-ai-assistant) · [What is PAI?](#what-is-pai) · [New to This?](#wait-hold-onassume-im-new-to-all-this) · [The Algorithm](#the-algorithm) · [Principles](#the-15-pai-principles) · [Primitives](#pai-primitives)+**Getting Started:** [AI-First Install](#-this-readme-is-for-your-ai-assistant) · [What is PAI?](#what-is-pai) · [New to This?](#wait-hold-onassume-im-new-to-all-this) · [The Algorithm](#the-algorithm-the-centerpiece) · [Principles](#the-pai-principles) · [Primitives](#pai-primitives)**Installation:** [Packs & Bundles](#packs--bundles) · [How AI Install Works](#how-ai-installation-works) · [Browse Packs](#-available-packs) · [Browse Bundles](#-available-bundles) · [Quick Start](#-quick-start)@@ -55,11 +55,11 @@</div>-The most powerful AI systems are being built inside companies for companies. The richest people and the biggest corporations are getting AI that knows their goals, learns from their history, and gets better at helping them over time.+The most powerful AI systems are being built inside companies for companies. The richest people and the biggest corporations are getting AI that learns from every interaction and gets better at helping them over time.**Everyone deserves that.**-PAI exists to democratize access to world-class AI infrastructure. Not a chatbot. Not a generic assistant. A [*system* that helps you become your best self](https://danielmiessler.com/blog/personal-ai-maturity-model)—one that understands your goals, remembers your context, and improves at helping *you* specifically.+PAI exists to democratize access to **self-learning AI infrastructure**. Not a chatbot that forgets everything. Not a generic assistant that starts fresh each time. A [*system* that improves itself](https://danielmiessler.com/blog/personal-ai-maturity-model)—one that captures feedback from every interaction, learns from mistakes, and gets better at helping *you* specifically.This is open-source. This is free. This is for everyone.@@ -71,7 +71,7 @@ This is open-source. This is free. This is for everyone.----**What makes PAI powerful technically:** It's built on a universal algorithm (Current → Ideal via verifiable iteration) that works at every scale—from fixing a typo to building a company to figuring out what to do with your life. But the mission comes first: giving everyone access to the kind of AI infrastructure that was previously only available to the privileged few.+**What makes PAI powerful technically:** It's built to learn from every interaction. Ratings, sentiment, verification outcomes—all captured automatically. A universal algorithm (Current → Ideal via verifiable iteration) drives the work, and the learning loop feeds improvements back into the system. This is what enterprise AI teams build internally. Now it's open-source.---@@ -86,16 +86,16 @@ This is open-source. This is free. This is for everyone.## What is PAI?-**PAI (Personal AI Infrastructure)** started as a framework for building personalized AI assistants. But in building it, we noticed something.+**PAI (Personal AI Infrastructure)** is a **self-learning system** that gets better at helping you over time.-Every goal—whether it's fixing a bug, writing a book, building a company, or figuring out what to do with your life—follows the same basic structure. There's where you are. There's where you want to be. And there's the process of getting there.--We didn't invent this pattern. Evolution uses it. Science uses it. Every successful human endeavor uses it. We just made it explicit and built tools around it.+Unlike static AI assistants that treat every conversation as a blank slate, PAI captures feedback from every interaction—explicit ratings, implicit sentiment, behavioral signals, verification outcomes—and uses it to improve. The system literally upgrades itself based on what works and what doesn't.**PAI is three things:**-- **A universal algorithm** - Current → Ideal via verifiable iteration, at any scale+- **A continuously upgrading algorithm** - The centerpiece. Current → Ideal via verifiable iteration, at any scale. Everything else exists to feed signals back into improving The Algorithm itself.+- **A self-learning system** - Every interaction generates feedback (ratings, sentiment, verification outcomes) that improves the system.- **Personal infrastructure** - Skills, memory, and context that make AI actually useful for *your* life-- **Open-source packs** - Battle-tested capabilities anyone can install or contribute++The learning happens automatically. Rate a response poorly? The system captures why. Express frustration? Sentiment analysis detects it. Abandon a task? That's a signal too. All of this feeds back into improving skills, workflows, and even The Algorithm itself.---@@ -125,25 +125,32 @@ More capable, but it still doesn't know *you*—your goals, your preferences, yo### Level 3: PAI (Personal AI Infrastructure)-Now your AI knows:+Now your AI **learns and improves**:+- **Captures every signal** — Ratings, sentiment, verification outcomes+- **Learns from mistakes** — Failures get analyzed and fixed+- **Gets better over time** — Success patterns get reinforced+- **Upgrades itself** — Skills, workflows, even The Algorithm evolve++Plus it knows:- **Your goals** — What you're working toward- **Your preferences** — How you like things done- **Your history** — Past decisions and learnings-- **Your context** — Who you are and what matters to you-It gets better at helping you over time. It learns from feedback and remembers what you taught it.+**The pattern:** Observe → Think → Plan → Execute → Verify → **Learn** → Improve-**The pattern:** Observe → Think → Plan → Execute → Verify → Learn → Improve--That's what PAI builds—an AI system that actually knows you.+The key difference: **PAI learns from feedback**. Every interaction makes it better at helping *you* specifically.----## The Algorithm+## The Algorithm (THE CENTERPIECE)++**The Algorithm is the gravitational center of PAI—everything else exists to serve it.**++At the foundation of PAI is a universal pattern for accomplishing any task: **Current State → Ideal State** via verifiable iteration. The memory system captures signals. The hook system detects sentiment and ratings. The learning directories organize evidence. All of this feeds back into improving **The Algorithm itself**.-At the foundation of PAI is a universal pattern: **Current State → Ideal State** via verifiable iteration.+PAI is not a static tool—it is a **continuously upgrading algorithm** that gets better at helping you with every interaction.-This isn't two separate loops—it's one unified algorithm that works at every scale:+This one unified algorithm works at every scale:- **Fixing a typo** — Current: wrong word. Ideal: right word.- **Building a feature** — Current: doesn't exist. Ideal: works, tested, deployed.- **Building a company** — Current: idea. Ideal: profitable business.@@ -178,27 +185,28 @@ See the **[Personal AI Maturity Model (PAIMM)](https://danielmiessler.com/blog/p----## The 15 PAI Principles+## The PAI PrinciplesThese principles guide how PAI systems are designed and built. **[Full breakdown →](https://danielmiessler.com/blog/personal-ai-infrastructure)**| # | Principle | Summary ||---|-----------|---------|-| 1 | **The Algorithm** | Current → Ideal via verifiable iteration. Define success criteria before execution. |-| 2 | **Clear Thinking First** | Good prompts come from clear thinking. Clarify the problem before writing the prompt. |-| 3 | **Scaffolding > Model** | System architecture matters more than which model you use. |-| 4 | **Deterministic Infrastructure** | AI is probabilistic; your infrastructure shouldn't be. Use templates and patterns. |-| 5 | **Code Before Prompts** | If you can solve it with a bash script, don't use AI. |-| 6 | **Spec / Test / Evals First** | Write specifications and tests before building. Measure if the system works. |-| 7 | **UNIX Philosophy** | Do one thing well. Make tools composable. Use text interfaces. |-| 8 | **ENG / SRE Principles** | Treat AI infrastructure like production software: version control, automation, monitoring. |-| 9 | **CLI as Interface** | Command-line interfaces are faster, more scriptable, and more reliable than GUIs. |-| 10 | **Goal → Code → CLI → Prompts → Agents** | The decision hierarchy: clarify goal, then code, then CLI, then prompts, then agents. |-| 11 | **Self-Updating System** | The system should modify itself. Encode learnings so you never forget. |+| 1 | **Customization for Your Goals** | PAI exists to help you accomplish your goals. Personalized agentic infrastructure that knows your goals, preferences, context, and history. |+| 2 | **The Continuously Upgrading Algorithm** | **THE CENTERPIECE.** Everything else exists to feed signals back into improving The Algorithm. Current → Ideal via verifiable iteration. |+| 3 | **Clear Thinking First** | Good prompts come from clear thinking. Clarify the problem before writing the prompt. |+| 4 | **Scaffolding > Model** | System architecture matters more than which model you use. |+| 5 | **Deterministic Infrastructure** | AI is probabilistic; your infrastructure shouldn't be. Use templates and patterns. |+| 6 | **Code Before Prompts** | If you can solve it with a bash script, don't use AI. |+| 7 | **Spec / Test / Evals First** | Write specifications and tests before building. Measure if the system works. |+| 8 | **UNIX Philosophy** | Do one thing well. Make tools composable. Use text interfaces. |+| 9 | **ENG / SRE Principles** | Treat AI infrastructure like production software: version control, automation, monitoring. |+| 10 | **CLI as Interface** | Command-line interfaces are faster, more scriptable, and more reliable than GUIs. |+| 11 | **Goal → Code → CLI → Prompts → Agents** | The decision hierarchy: clarify goal, then code, then CLI, then prompts, then agents. || 12 | **Skill Management** | Modular capabilities that route intelligently based on context. |-| 13 | **History System** | Everything worth knowing gets captured. History feeds future context. |+| 13 | **Memory System** | Everything worth knowing gets captured. History feeds future context. || 14 | **Agent Personalities** | Different work needs different approaches. Specialized agents with unique voices. |-| 15 | **Science as Meta-Loop** | Hypothesis → Experiment → Measure → Iterate. Every decision follows this pattern. |+| 15 | **Science as Meta-Loop** | Hypothesis → Experiment → Measure → Iterate. The Algorithm implements this pattern. |+| 16 | **Permission to Fail** | Explicit permission to say "I don't know" prevents hallucinations. |---@@ -206,12 +214,14 @@ These principles guide how PAI systems are designed and built. **[Full breakdownWhile the 15 Principles describe the *philosophy* of PAI, the Primitives are the *architecture*—the core systems that make everything work.+**The Algorithm is the central primitive—THE CENTERPIECE.** Everything else exists to feed signals back into improving The Algorithm. Memory captures data. Hooks detect signals. Security protects learning integrity. This is what makes PAI a *continuously upgrading algorithm* rather than just a tool.+| Primitive | What It Does | Key Features ||-----------|--------------|--------------|-| 🔄 **[Learning Loop](#-the-continuous-learning-loop)** | Self-improvement through feedback | Ratings, signals, phase-based learning |-| 🧠 **[Memory System](#-memory-system)** | Persistent context and history | Three-tier architecture, per-task traces |-| ⚡ **[Hook System](#-hook-system)** | Event-driven automation | 8 event types, composable, graceful failure |-| 🔒 **[Security System](#-security-system)** | Defense-in-depth protection | Command validation, repo separation, injection defense |+| 🔄 **[The Algorithm](#the-algorithm-the-centerpiece)** | **THE CENTERPIECE.** Continuously upgrading via feedback | Current → Ideal via verifiable iteration. Ratings, sentiment, behavioral signals, verification outcomes → Algorithm upgrades |+| 🧠 **[Memory System](#-memory-system)** | Captures signals for The Algorithm | Three-tier architecture (hot/warm/cold), phase-based learning directories |+| ⚡ **[Hook System](#-hook-system)** | Detects signals for The Algorithm | 8 event types, sentiment detection, rating capture, failure logging |+| 🔒 **[Security System](#-security-system)** | Protects Algorithm integrity | Command validation, repo separation, injection defense || 📁 **[User/System Separation](#-usersystem-separation)** | Clean customization boundaries | Portable identity, upgrade-safe || 🎯 **[TELOS](#-deep-goal-capture-telos)** | Deep goal understanding | 10 files capturing your mission, beliefs, strategies || ⚙️ **[Customization](#-granular-customization)** | Adapt everything to your workflow | 6 levels from identity to memory |@@ -219,21 +229,44 @@ While the 15 Principles describe the *philosophy* of PAI, the Primitives are the---<details>-<summary><h3>🔄 The Continuous Learning Loop</h3></summary>+<summary><h3>🔄 The Algorithm (THE CENTERPIECE)</h3></summary>-PAI isn't static. Every interaction feeds a learning loop that makes the system better over time.+**This is what makes PAI different.** The entire system exists to serve The Algorithm—a continuously upgrading pattern for accomplishing any task. Every other primitive—Memory, Hooks, Skills—exists to feed signals back into improving The Algorithm itself.```-User Interaction → Hook Captures → Signal Detection → Learning Directory → System Improvement+ THE ALGORITHM: Current → Ideal+ ┌─────────────────────────────────────┐+ │ │+User Interaction → Hook Captures → Signal Detection → Learning Directory │+ │+ ← Algorithm Upgrade ← Pattern Analysis ← Evidence Review ←┘+ │ │+ └─────────────────────────────────────┘```-**How it works:**-1. **User gives feedback** - Explicit ratings (type "7" or "8 - good work") or implicit sentiment ("this is frustrating")-2. **Hooks capture signals** - Ratings, failures, loopbacks, and patterns are written to `MEMORY/Signals/`-3. **Low ratings trigger learning** - Scores below 6 auto-capture to `MEMORY/Learning/` for analysis-4. **System improves** - Learnings are organized by algorithm phase for targeted retrieval+**Four Types of Signals That Feed The Algorithm:**++| Type | How It's Captured | Example |+|------|-------------------|---------|+| **Explicit ratings** | User types "7" or "8 - good work" | Direct quality signal |+| **Implicit sentiment** | Hooks analyze user message tone | "This is frustrating" → negative signal |+| **Behavioral signals** | Loopbacks, retries, abandoned tasks | User restarts task → something failed |+| **Verification outcomes** | VERIFY phase success/failure | Objective measure of whether it worked |++**How Signals Improve The Algorithm:**++1. **Capture** — Hooks write signals to `MEMORY/Signals/` (ratings.jsonl, failures.jsonl, loopbacks.jsonl)+2. **Organize** — Learnings categorize by Algorithm phase (OBSERVE, THINK, PLAN, BUILD, EXECUTE, VERIFY)+3. **Analyze** — Pattern extraction identifies recurring issues+4. **Upgrade** — Skill workflows, response patterns, and The Algorithm itself get updated++**What Gets Better:**+- Skill workflows that repeatedly fail get flagged for revision+- Response patterns that frustrate users get identified and fixed+- Success patterns get reinforced and expanded+- **The Algorithm itself** evolves based on meta-learnings in `MEMORY/Learning/ALGORITHM/`-This isn't just logging—it's a feedback mechanism that identifies what's working and what isn't.+**Key Insight:** A system that can't improve itself will stagnate. The Algorithm is the centerpiece; everything else feeds it.</details>