⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
docs: Visual overhaul of README with foldable changelog and Human 3.0 acknowledgements
Daniel Miessler71d4d533c11c
diff --git a/README.md b/README.mdindex 5dc7721d..4fea0c07 100644--- a/README.md+++ b/README.md@@ -3,100 +3,131 @@<picture><source media="(prefers-color-scheme: dark)" srcset="./pai-logo.png"><source media="(prefers-color-scheme: light)" srcset="./pai-logo.png">- <img alt="PAI Logo" src="./pai-logo.png" width="1200">+ <img alt="PAI Logo" src="./pai-logo.png" width="600"></picture>-# **Personal AI Infrastructure** (PAI)+<br/>+<br/>++# Personal AI Infrastructure-### **Open-source personal AI infrastructure for orchestrating your life and work**+### Open-source scaffolding for building your own AI-powered operating system<br/>----[](https://opensource.org/licenses/MIT)-[](https://claude.ai/code)-[](https://youtu.be/iKwRWwabkEc)+[](https://github.com/danielmiessler/Personal_AI_Infrastructure/releases)+[](LICENSE)+[](https://claude.ai/code)-**[Quick Start](#-quick-start)** • **[Documentation](#-documentation)** • **[Examples](#-examples)** • **[Community](#-community)**+<br/>-</div>+[**Quick Start**](#-quick-start) · [**Documentation**](#-documentation) · [**Examples**](#-examples) · [**Updates**](#-updates) · [**Community**](#-community)++<br/>----<div align="center">+<br/>-## *"This project exists so that the best AI in the world is not only used by a few, but can be used by everyone."*+*"This project exists so that the best AI in the world is not only used by a few, but can be used by everyone."*</div>+<br/>+Right now the most powerful AI setups are being built inside companies with massive engineering teams. That's backwards. These tools should be available to individuals—to you—so you can build your own AI system that actually knows how you work.-That's what PAI is. It's the scaffolding for building a personal AI that gets better over time because it's *yours*. Not some generic chatbot. Your system, your skills, your workflows.+That's what PAI is. It's the scaffolding for building a personal AI that gets better over time because it's *yours*. Not some generic chatbot. **Your system, your skills, your workflows.**----+<br/>-## 🎯 **What is PAI?**+## What is PAI?PAI (Personal AI Infrastructure) is an open-source template for building your own AI-powered operating system using Claude Code.-**Core Primitives:**-- **Skills** - Self-contained AI capabilities with routing, workflows, and documentation-- **Agents** - Specialized AI personalities for different tasks (engineer, researcher, designer, etc.)-- **Hooks** - Event-driven automation that captures work, provides voice feedback, and manages state+<table>+<tr>+<td width="33%" valign="top">-**Approach:** Start clean, small, and simple. Build the scaffolding that makes AI reliable.+### Skills+Self-contained AI capabilities with routing, workflows, and documentation----+</td>+<td width="33%" valign="top">-## 🆕 **What's New in v0.9.0**+### Agents+Specialized AI personalities for different tasks (engineer, researcher, designer)-Big updates! PAI is now fully **platform-agnostic** - your AI identity, your system.+</td>+<td width="33%" valign="top">-- **Observability Dashboard** - Real-time agent monitoring with live charts-- **Genericized Identity** - Configure your DA name, it flows everywhere-- **Better Configuration** - Clear docs for all environment variables+### Hooks+Event-driven automation that captures work and manages state-👉 **[See full changelog below](#-changelog)**+</td>+</tr>+</table>----+> **Approach:** Start clean, small, and simple. Build the scaffolding that makes AI reliable.++<br/>++## What's New in v0.9.0++Big updates! PAI is now fully **platform-agnostic** — your AI identity, your system.++| Feature | Description |+|---------|-------------|+| **Observability Dashboard** | Real-time agent monitoring with live charts |+| **Genericized Identity** | Configure your DA name, it flows everywhere |+| **Better Configuration** | Clear docs for all environment variables |++👉 [**See full changelog**](#-updates)++<br/>++## PAI vs Kai-## 🔄 **PAI vs Kai: What You Get**+<table>+<tr>+<th width="50%">PAI (this repository)</th>+<th width="50%">Kai (Daniel's private system)</th>+</tr>+<tr>+<td>-**PAI (this repository) provides:**-- ✅ Skills/agents/hooks architecture-- ✅ CORE documentation and routing-- ✅ History system (UOCS) for automatic documentation-- ✅ Example skills (research, fabric, etc.)-- ✅ Voice server skeleton-- ⚙️ **Requires:** API key configuration per skill+✅ Skills/agents/hooks architecture<br/>+✅ CORE documentation and routing<br/>+✅ History system (UOCS)<br/>+✅ Example skills (research, fabric, etc.)<br/>+✅ Voice server skeleton<br/>+⚙️ **Requires:** API key configuration-**Kai (Daniel's private system) adds:**-- 🔒 Personal data, contacts, and history-- 🔒 Additional private skills and workflows-- 🔒 Customized agent personalities and voices-- 🔒 Production integrations and automations+</td>+<td>-**Think of it this way:** PAI is the scaffolding. You build your own "Kai" on top of it.+🔒 Personal data, contacts, history<br/>+🔒 Additional private skills<br/>+🔒 Custom agent personalities<br/>+🔒 Production integrations<br/>+🔒 Automations and workflows-**After setup, PAI should:**-- ✅ Execute hooks without errors-- ✅ Load CORE context at session start-- ✅ Route skills correctly-- ✅ Capture session history-- ✅ Launch agents successfully+</td>+</tr>+</table>++> **Think of it this way:** PAI is the scaffolding. You build your own "Kai" on top of it.++**After setup, PAI should:** Execute hooks without errors · Load CORE context at session start · Route skills correctly · Capture session history · Launch agents successfully-**Not working?** Run the health check:```bash+# Not working? Run the health check:bun ${PAI_DIR}/hooks/self-test.ts```-See `PAI_CONTRACT.md` for complete details on what's guaranteed vs what needs configuration.-----+<br/>-## 🚀 **Quick Start**+## 🚀 Quick Start### 1. Install Prerequisites@@ -104,149 +135,174 @@ See `PAI_CONTRACT.md` for complete details on what's guaranteed vs what needs co# Install Bun (PAI's package manager)curl -fsSL https://bun.sh/install | bash-# Install Claude Code-# Follow instructions at: https://code.claude.com+# Install Claude Code — https://code.claude.com```### 2. Clone and Configure```bash-# Clone the repositorygit clone https://github.com/danielmiessler/Personal_AI_Infrastructure.gitcd Personal_AI_Infrastructure-# Copy environment template+# Copy environment template and add your API keyscp .claude/.env.example .claude/.env--# Edit .env and add your API keys-# At minimum: ANTHROPIC_API_KEY=your_key_here```### 3. Copy to Your System```bash-# Backup existing Claude config (if any)+# Backup existing config (if any)[ -d ~/.claude ] && mv ~/.claude ~/.claude.backup.$(date +%Y%m%d_%H%M%S)-# Copy PAI's .claude directory to your home+# Copy PAI to your home directorycp -r .claude ~/.claude```-**Alternative: Symlink** (keeps PAI updatable via git pull)+<details>+<summary><strong>Alternative: Symlink</strong> (keeps PAI updatable via git pull)</summary>+```bash[ -d ~/.claude ] && mv ~/.claude ~/.claude.backup.$(date +%Y%m%d_%H%M%S)ln -s $(pwd)/.claude ~/.claude```+</details>+### 4. Start Claude Code```bash-# PAI loads automatically via the CORE skillclaude```**That's it!** The CORE skill loads at session start and provides all PAI functionality.-📚 **For detailed setup:** See `docs/QUICKSTART.md`+📚 For detailed setup, see [`docs/QUICKSTART.md`](docs/QUICKSTART.md)----+<br/>-## 📚 **Documentation**+## 📚 Documentation-**All documentation lives in the CORE skill** (`.claude/skills/CORE/`):+All documentation lives in the CORE skill (`.claude/skills/CORE/`):-### **Essential Reading**+<details open>+<summary><strong>Essential Reading</strong></summary>-- **[CONSTITUTION.md](.claude/skills/CORE/CONSTITUTION.md)** - System philosophy, architecture, and operating principles-- **[SKILL.md](.claude/skills/CORE/SKILL.md)** - Main PAI skill with identity, preferences, and quick reference-- **[SKILL-STRUCTURE-AND-ROUTING.md](.claude/skills/CORE/SKILL-STRUCTURE-AND-ROUTING.md)** - How to create your own skills+| Document | Description |+|----------|-------------|+| [**CONSTITUTION.md**](.claude/skills/CORE/CONSTITUTION.md) | System philosophy, architecture, operating principles |+| [**SKILL.md**](.claude/skills/CORE/SKILL.md) | Main PAI skill with identity, preferences, quick reference |+| [**SKILL-STRUCTURE-AND-ROUTING.md**](.claude/skills/CORE/SKILL-STRUCTURE-AND-ROUTING.md) | How to create your own skills |-### **System Guides**+</details>-- **[hook-system.md](.claude/skills/CORE/hook-system.md)** - Event-driven automation-- **[history-system.md](.claude/skills/CORE/history-system.md)** - Automatic work documentation-- **[VOICE.md](.claude/skills/CORE/VOICE.md)** → **[voice-server/README.md](.claude/voice-server/README.md)** - Text-to-speech feedback+<details>+<summary><strong>System Guides</strong></summary>-### **Reference**+| Document | Description |+|----------|-------------|+| [hook-system.md](.claude/skills/CORE/hook-system.md) | Event-driven automation |+| [history-system.md](.claude/skills/CORE/history-system.md) | Automatic work documentation |+| [voice-server/README.md](.claude/voice-server/README.md) | Text-to-speech feedback |-- **[prosody-guide.md](.claude/skills/CORE/prosody-guide.md)** - Voice emotion system-- **[prompting.md](.claude/skills/CORE/prompting.md)** - Prompt engineering patterns-- **[terminal-tabs.md](.claude/skills/CORE/terminal-tabs.md)** - Terminal management+</details>----+<details>+<summary><strong>Reference</strong></summary>++| Document | Description |+|----------|-------------|+| [prosody-guide.md](.claude/skills/CORE/prosody-guide.md) | Voice emotion system |+| [prompting.md](.claude/skills/CORE/prompting.md) | Prompt engineering patterns |+| [terminal-tabs.md](.claude/skills/CORE/terminal-tabs.md) | Terminal management |-## 🎨 **Examples**+</details>++<br/>++## 🎨 ExamplesExplore example skills in `.claude/skills/`:-- **`observability/`** - Real-time agent monitoring dashboard with WebSocket streaming, live pulse charts, and event timelines-- **`brightdata/`** - Four-tier progressive web scraping with automatic fallback (WebFetch → cURL → Playwright → Bright Data MCP)-- **`fabric/`** - Integration with Fabric pattern system (242+ AI patterns)-- **`research/`** - Multi-source research workflows-- **`create-skill/`** - Templates for creating new skills-- **`alex-hormozi-pitch/`** - Business pitch generation-- **`ffuf/`** - Web fuzzing and security testing+| Skill | Description |+|-------|-------------|+| **observability/** | Real-time agent monitoring dashboard with WebSocket streaming |+| **brightdata/** | Four-tier progressive web scraping with automatic fallback |+| **fabric/** | Integration with Fabric pattern system (242+ AI patterns) |+| **research/** | Multi-source research workflows |+| **create-skill/** | Templates for creating new skills |Each skill demonstrates the skills-as-containers pattern with routing, workflows, and self-contained documentation.----+<br/>-## 🏗️ **Architecture**+## 🏗️ ArchitecturePAI is built on three foundational principles:-### **1. Command Line First**+<table>+<tr>+<td width="33%" valign="top">++### Command Line FirstBuild deterministic CLI tools, then wrap them with AI orchestration. Code is cheaper, faster, and more reliable than prompts.-### **2. Skills as Containers**-Package domain expertise in self-activating, self-contained modules. Natural language triggers automatic routing to the right skill.+</td>+<td width="33%" valign="top">-### **3. Progressive Disclosure**-Load context only when needed (3 tiers):-- **Tier 1:** System prompt (always active, 200-500 words)-- **Tier 2:** SKILL.md (on-demand, comprehensive reference)-- **Tier 3:** Reference files (just-in-time, deep dives)+### Skills as Containers+Package domain expertise in self-activating, self-contained modules. Natural language triggers automatic routing.-**Complete architecture:** See `.claude/skills/CORE/CONSTITUTION.md`+</td>+<td width="33%" valign="top">----+### Progressive Disclosure+Load context only when needed across 3 tiers: system prompt → SKILL.md → reference files.-## 🛠️ **Technology Stack**+</td>+</tr>+</table>-- **Runtime:** Bun (NOT Node.js)-- **Language:** TypeScript (NOT Python - we're TypeScript zealots)-- **Package Manager:** Bun (NOT npm/yarn/pnpm)-- **Format:** Markdown (NOT HTML for basic content)-- **Testing:** Vitest when needed-- **Voice:** ElevenLabs TTS integration+Complete architecture: [`.claude/skills/CORE/CONSTITUTION.md`](.claude/skills/CORE/CONSTITUTION.md)----+<br/>-## 🔐 **Security**+## 🛠️ Technology Stack-**IMPORTANT:** This is a PUBLIC template repository with sanitized examples.+| Category | Choice |+|----------|--------|+| **Runtime** | Bun (NOT Node.js) |+| **Language** | TypeScript (NOT Python) |+| **Package Manager** | Bun (NOT npm/yarn/pnpm) |+| **Format** | Markdown (NOT HTML for basic content) |+| **Testing** | Vitest |+| **Voice** | ElevenLabs TTS |-**DO NOT commit:**-- API keys or secrets-- Personal email addresses or contact information-- Private repository references-- Any sensitive personal data+<br/>-See `SECURITY.md` for complete security protocols.+## 🔐 Security----+> **IMPORTANT:** This is a PUBLIC template repository with sanitized examples.++**DO NOT commit:** API keys or secrets · Personal email addresses · Private repository references · Any sensitive personal data-## 💬 **Community**+See [`SECURITY.md`](SECURITY.md) for complete security protocols.++<br/>++## 💬 Community- **GitHub Issues:** [Report bugs or request features](https://github.com/danielmiessler/Personal_AI_Infrastructure/issues)- **Discussions:** [Ask questions and share ideas](https://github.com/danielmiessler/Personal_AI_Infrastructure/discussions)- **Video:** [Watch PAI Overview](https://youtu.be/iKwRWwabkEc)----+<br/>++## 📝 Updates-## 📝 **Changelog**+<details>+<summary><strong>v0.9.0 (2025-12-01) — Platform Agnostic Release</strong></summary>-### v0.9.0 (2025-12-01) - Platform Agnostic Release+<br/>This release focuses on making PAI fully portable and fork-friendly. Your AI, your identity, your system.@@ -256,60 +312,144 @@ This release focuses on making PAI fully portable and fork-friendly. Your AI, yo- Live pulse charts, event timelines, and swim lanes- Multiple themes (Tokyo Night, Nord, Catppuccin, etc.)- Security obfuscation for sensitive data-- Run with: `~/.claude/Observability/manage.sh start`**Genericized Agent Identity**- All agent references now use `process.env.DA || 'main'`-- No more hardcoded names - your DA name flows through the entire system+- No more hardcoded names — your DA name flows through the entire system- Observability dashboard shows your configured identity-- Color system supports any DA name with intelligent defaults**Platform-Agnostic Configuration**-- Added `_envDocs` to settings.json explaining all environment variables- Clear separation: `settings.json` for identity/paths, `.env` for API keys-- `DA` (Digital Assistant name) - your AI's identity-- `PAI_DIR` - root directory for all configuration-- `TIME_ZONE` - configurable timezone for timestamps--**Statusline Enhancements**-- Terminal color compatibility mode for different terminal emulators-- Dynamic CC version display-- Cleaner greeting format+- `DA` (Digital Assistant name) — your AI's identity+- `PAI_DIR` — root directory for all configuration+- `TIME_ZONE` — configurable timezone for timestamps**Skill System Improvements**- Canonical TitleCase file naming throughout- Standardized skill-workflow-notification script for dashboard detection- All paths use `${PAI_DIR}/` for location-agnostic installation-### Previous Releases+</details>-**v0.7.0** - Research & Documentation-- Comprehensive research skill with 10 workflows-- Path standardization (${PAI_DIR}/)-- PAI_CONTRACT.md defining core guarantees-- Self-test validation system+<details>+<summary><strong>v0.8.0 (2025-11-25) — Research & Documentation</strong></summary>-**v0.6.0 and earlier**-- BrightData four-tier progressive web scraping-- Art and story-explanation skills-- Voice server with ElevenLabs integration-- Hook system architecture+<br/>-For detailed changelogs, see the `CHANGELOG-*.md` files in the repository root.+**Research Skill**+- Comprehensive research skill with 10 specialized workflows+- Multi-source research with parallel agent execution+- Fabric pattern integration (242+ AI patterns)----+**Infrastructure**+- Path standardization using `${PAI_DIR}/` throughout+- `PAI_CONTRACT.md` defining core guarantees+- Self-test validation system for health checks+- Protection system for PAI-specific files-## 📜 **License**+</details>-MIT License - see `LICENSE` file for details.+<details>+<summary><strong>v0.7.0 (2025-11-20) — Protection & Clarity</strong></summary>----+<br/>++**PAI Path Resolution System** (#112)+- Centralized `pai-paths.ts` library — single source of truth+- Smart detection with fallback to `~/.claude`+- Updated 7 hooks to use centralized paths++**PAI vs Kai Clarity** (#113)+- `PAI_CONTRACT.md` — official contract defining boundaries+- Self-test system (`bun ${PAI_DIR}/hooks/self-test.ts`)+- Clear README section distinguishing PAI from Kai++**Protection System**+- `.pai-protected.json` manifest of protected files+- `validate-protected.ts` script for pre-commit validation+- Pre-commit hook template for automated checks++</details>++<details>+<summary><strong>v0.6.5 (2025-11-18) — BrightData Integration</strong></summary>++<br/>++**Four-Tier Progressive Web Scraping**+- Tier 1: WebFetch (free, built-in)+- Tier 2: cURL with headers (free, more reliable)+- Tier 3: Playwright (free, JavaScript rendering)+- Tier 4: Bright Data MCP (paid, anti-bot bypass)++</details>++<details>+<summary><strong>v0.6.0 (2025-11-15) — Major Architecture Update</strong></summary>++<br/>-## 🙏 **Acknowledgments**+**Repository Restructure**+- Moved all configuration to `.claude/` directory+- Skills-as-containers architecture+- Three-tier progressive disclosure-Built on [Claude Code](https://code.claude.com) by Anthropic.+**Skills System**+- Art skill with visual content generation+- Story-explanation skill for narrative summaries+- Create-skill and create-cli meta-skills-Inspired by the idea that AI systems need scaffolding to be reliable. This is that scaffolding.+**Hook System**+- Comprehensive event capture system+- Session summary and tool output capture+- Tab title updates++**Voice Integration**+- Voice server with ElevenLabs TTS+- Session start notifications++</details>++<details>+<summary><strong>v0.5.0 and Earlier</strong></summary>++<br/>++**v0.5.0 — Foundation**+- CORE skill as central context loader+- Constitution defining system principles+- CLI-First Architecture pattern+- Initial skills: Fabric, FFUF, Alex Hormozi pitch++**Pre-v0.5.0 — Early Development**+- Initial repository setup+- Basic settings.json structure+- Agent personality definitions+- Foundational hook experiments++</details>++<br/>++## 📜 License++MIT License — see [`LICENSE`](LICENSE) for details.++<br/>++## 🙏 Acknowledgments++**Built on [Claude Code](https://code.claude.com) by Anthropic.**++This project is part of the [Human 3.0](https://human3.unsupervised-learning.com) movement — the idea that the next evolution of humanity is AI-augmented humans who build and control their own AI systems.++Right now, the most sophisticated AI infrastructure exists inside corporations with massive engineering teams. PAI exists to change that. To give individuals the same scaffolding that companies spend millions building. Because the transition to Human 3.0 shouldn't require a corporate budget.++**The mission is simple:** Upgrade humans using AI. Not by making AI that replaces us, but by building AI infrastructure that amplifies us. Your AI, knowing how you work, learning from your patterns, serving your goals — not some corporation's engagement metrics.++This is the scaffolding for that future.++<br/>---@@ -317,6 +457,8 @@ Inspired by the idea that AI systems need scaffolding to be reliable. This is th**Start clean. Start small. Build the AI infrastructure you need.**-[⬆ Back to Top](#personal-ai-infrastructure-pai)+<br/>++[⬆ Back to Top](#personal-ai-infrastructure)</div>