⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
Consolidate redundant documentation files
Daniel Miessler31bfcee48f00
diff --git a/README.md b/README.mdindex 947ab2d5..634d1d8e 100644--- a/README.md+++ b/README.md@@ -418,11 +418,18 @@ Chrome DevTools • Apify • BrightData • Stripe • Anthropic Content • Da## 🚀 **Quick Start**+**Automated Setup:**+```bash+./setup.sh # Interactive setup script (recommended)+```++**Or read:** [Getting Started Guide](./documentation/how-to-start.md) | [Quick Reference](./documentation/QUICK-REFERENCE.md)+> [!NOTE]> PAI was originally built with [Claude Code](https://claude.ai/code), but the architecture supports any AI platform (GPT, Gemini, etc.)> Requires [Bun](https://bun.sh) JavaScript runtime for the current implementation.-### **Installation**+### **Manual Installation**#### **Step 1: Install Prerequisites**diff --git a/START-HERE.md b/START-HERE.mddeleted file mode 100644index 1f4c2765..00000000--- a/START-HERE.md+++ /dev/null@@ -1,115 +0,0 @@-# 👋 Welcome to PAI!--**You just cloned your Personal AI Infrastructure. Here's what to do next:**-------## ⚡ Quick Setup (5 Minutes)--**Option 1: Automated Setup (Recommended)**--Just run this command and follow the prompts:--```bash-./setup.sh-```--The script will:-- ✅ Check what you need-- ✅ Install missing software-- ✅ Configure everything-- ✅ Test your setup--**Easy peasy!** 🎉-------**Option 2: Manual Setup**--Prefer to do it yourself? Read the complete guide:--📖 **[How to Start Guide](./documentation/how-to-start.md)**--This friendly, step-by-step guide explains everything in detail.-------## 📚 Documentation--| Document | When to Use It |-|----------|----------------|-| **[How to Start](./documentation/how-to-start.md)** | Setting up PAI for the first time |-| **[Quick Reference](./documentation/QUICK-REFERENCE.md)** | Daily usage, commands, troubleshooting |-| **[README](./README.md)** | Understanding PAI's vision and capabilities |-| **[Skills System](./documentation/skills-system.md)** | Learning how skills work |-| **[Architecture](./documentation/architecture.md)** | Understanding the system design |-------## 🆘 Need Help?--**First time?** → Read [How to Start Guide](./documentation/how-to-start.md)--**Quick question?** → Check [Quick Reference](./documentation/QUICK-REFERENCE.md)--**Something broken?** → See the [Troubleshooting section](./documentation/how-to-start.md#-troubleshooting)--**Still stuck?** → [Open an issue](https://github.com/danielmiessler/Personal_AI_Infrastructure/issues)-------## 🎯 What is PAI?--PAI (Personal AI Infrastructure) is a complete system for augmenting your life with AI. It:--- 🧠 **Knows about YOU** - Your projects, preferences, and goals-- 🎯 **Activates skills intelligently** - Based on what you're trying to do-- 🤖 **Uses specialized agents** - Research, development, design, security, etc.-- 🔌 **Integrates everything** - APIs, tools, services, all in one place-- 🌍 **Works anywhere** - Built on open standards, not locked to one vendor--**Think of it as your personal AI that actually understands your life.**--Read more: [Full README](./README.md)-------## 🚀 Get Started Now--**Ready?** Pick your path:--1. **🤖 Just want it to work:** Run `./setup.sh`-2. **📖 Want to understand first:** Read [How to Start Guide](./documentation/how-to-start.md)-3. **⚡ Already know what you're doing:** Check [Quick Reference](./documentation/QUICK-REFERENCE.md)-------## 🎬 Watch the Video--Prefer video? Watch the overview:--**[PAI Overview Video](https://youtu.be/iKwRWwabkEc)** (YouTube)-------## ⭐ One More Thing--If PAI helps you, **star the repo** on GitHub! ⭐--It helps others discover this project and supports the mission to give AI capabilities to everyone on Earth.--**[★ Star on GitHub](https://github.com/danielmiessler/Personal_AI_Infrastructure)**-------**Questions? Issues? Ideas?**--- 🐛 [Report a bug](https://github.com/danielmiessler/Personal_AI_Infrastructure/issues)-- 💬 [Start a discussion](https://github.com/danielmiessler/Personal_AI_Infrastructure/discussions)-- 📧 [Contact Daniel](https://danielmiessler.com)-------*Welcome to the journey toward Human 3.0!* 🚀--*Built with ❤️ by [Daniel Miessler](https://danielmiessler.com)*diff --git a/documentation/README.md b/documentation/README.mdindex 37d9fedd..15998083 100644--- a/documentation/README.md+++ b/documentation/README.md@@ -6,16 +6,15 @@ Welcome to the Personal AI Infrastructure (PAI) documentation. PAI is a comprehe### 🚀 New to PAI? Start Here!-> **👉 [Complete Getting Started Guide](./how-to-start.md)** - Comprehensive, friendly guide with automated setup option+> **👉 [Getting Started Guide](./how-to-start.md)** - Complete setup guide with automated option>-> **👉 [Quick Reference Card](./QUICK-REFERENCE.md)** - Bookmark this! Common commands and troubleshooting+> **👉 [Quick Reference](./QUICK-REFERENCE.md)** - Bookmark this for daily commands### Getting Started-- **[How to Start Guide](./how-to-start.md) 🆕** - Step-by-step setup with friendly explanations (RECOMMENDED)-- [Quick Start Guide](./quick-start.md) - Fast technical setup for developers-- [Quick Reference](./QUICK-REFERENCE.md) 🆕 - Common commands and one-liners-- [Installation Guide](./installation.md) - Detailed installation instructions-- [Configuration Guide](./configuration.md) - System configuration options+- **[How to Start Guide](./how-to-start.md)** - Complete setup with step-by-step instructions+- [Quick Reference](./QUICK-REFERENCE.md) - Common commands and troubleshooting+- [Installation Guide](./installation.md) - Detailed installation instructions (optional)+- [Configuration Guide](./configuration.md) - System configuration options (optional)### Core Concepts- [System Architecture](./architecture.md) - Overview of PAI componentsdiff --git a/documentation/quick-start.md b/documentation/quick-start.mddeleted file mode 100644index bb47cf6a..00000000--- a/documentation/quick-start.md+++ /dev/null@@ -1,421 +0,0 @@-# PAI Quick Start Guide--Get your Personal AI Infrastructure up and running in minutes!--## Prerequisites--- **macOS** 11+ (primary platform)-- **AI Assistant** (Claude, GPT, Gemini, etc.)-- **Bun runtime** (for voice server)-- **Git** (for version control)--## Installation--### 1. Clone or Create PAI Directory--```bash-# Option A: Clone from repository-git clone https://github.com/yourusername/PAI.git-cd PAI--# Option B: Create new PAI installation-mkdir -p ~/PAI-cd ~/PAI-```--### 2. Set Environment Variables--```bash-# Add to your shell profile (~/.zshrc or ~/.bashrc)-export PAI_DIR="$HOME/PAI/PAI_DIRECTORY" # PAI infrastructure directory-export PATH="$HOME/bin:$PATH"--# Reload shell-source ~/.zshrc # or ~/.bashrc-```--### 3. Create Directory Structure--```bash-# Create essential directories-mkdir -p "${PAI_DIR}/context"-mkdir -p "${PAI_DIR}/hooks"-mkdir -p "${PAI_DIR}/commands"-mkdir -p "$HOME/Projects"-mkdir -p "$HOME/Library/Logs"-mkdir -p "$HOME/Documentation"-```--### 4. Configure Environment File--Create `${PAI_DIR}/.env` with your settings:--```bash-# Essential Configuration-PAI_DIR=$HOME/PAI/PAI_DIRECTORY--# Optional: Voice Server-ELEVENLABS_API_KEY=your_api_key_here-ELEVENLABS_VOICE_ID=jqcCZkN6Knx8BJ5TBdYR-PORT=8888--# Optional: API Keys for various services-OPENAI_API_KEY=your_key_here-ANTHROPIC_API_KEY=your_key_here-```--## Core Setup--### 1. Create Main Context File--Create `${PAI_DIR}/context/CLAUDE.md`:--```markdown-# PAI System Context--## System Information-- PAI_DIR: ${PAI_DIR}-- Platform: macOS-- User: ${USER}--## Core Instructions-You are an AI assistant enhanced with PAI (Personal AI Infrastructure).--## Available Features-- Dynamic context loading-- Hook system for automation-- Voice notifications-- Multi-agent support--## Project Contexts-[Your project-specific information here]-```--### 2. Setup UFC Hook System--Create the main hook file `${PAI_DIR}/hooks/user-prompt-submit-hook`:--```bash-#!/bin/bash-# UFC Dynamic Context Loader--PROMPT="$1"-PAI_DIR="${PAI_DIR:-$HOME/PAI/PAI_DIRECTORY}"--# Simple intent matching for demonstration-case "$PROMPT" in- *website*|*blog*)- echo "Loading website context..."- cat "${PAI_DIR}/context/projects/website/CLAUDE.md" 2>/dev/null- ;;- *research*)- echo "AGENT: researcher"- ;;- *security*|*pentest*)- echo "AGENT: pentester"- ;;-esac--exit 0-```--Make it executable:-```bash-chmod +x "${PAI_DIR}/hooks/user-prompt-submit-hook"-```--### 3. Install Voice Server (Optional)--```bash-# Navigate to voice server-cd "${PAI_DIR}/voice-server"--# Install dependencies-bun install--# Run installation script-./install.sh--# Test voice server-curl -X POST http://localhost:8888/notify \- -d '{"message": "PAI system initialized"}'-```--## Basic Usage--### 1. Context Management--Create project-specific contexts:--```bash-# Create a project context-mkdir -p "${PAI_DIR}/context/projects/myproject"-cat > "${PAI_DIR}/context/projects/myproject/CLAUDE.md" << EOF-# My Project Context--## Project Details-- Name: My Project-- Path: ${HOME}/Projects/myproject-- Type: Web Application--## Technical Stack-- Frontend: React-- Backend: Node.js-- Database: PostgreSQL--## Current Tasks-- [ ] Implement user authentication-- [ ] Add dashboard features-EOF-```--### 2. Hook Examples--#### Tool Validation Hook--Create `${PAI_DIR}/hooks/tool-use-hook`:--```bash-#!/bin/bash-# Validate tool usage--TOOL="$1"-PARAMS="$2"--# Log tool usage-echo "[$(date)] Tool: $TOOL" >> "${HOME}/Library/Logs/tools.log"--# Validate dangerous operations-if [[ "$TOOL" == "Bash" ]] && [[ "$PARAMS" =~ "rm -rf" ]]; then- echo "BLOCKED: Dangerous command"- exit 1-fi--exit 0-```--#### Notification Hook--Create `${PAI_DIR}/hooks/post-execution-hook`:--```bash-#!/bin/bash-# Send completion notifications--COMMAND="$1"-STATUS="$2"--if [ "$STATUS" -eq 0 ]; then- curl -X POST http://localhost:8888/notify \- -d '{"message": "Task completed successfully"}' \- 2>/dev/null-fi--exit 0-```--### 3. Custom Commands--Create custom command `${PAI_DIR}/commands/status.sh`:--```bash-#!/bin/bash-# Show PAI system status--echo "PAI System Status"-echo "================="-echo "PAI_DIR: ${PAI_DIR}"-echo "Contexts: $(find ${PAI_DIR}/context -name "*.md" | wc -l)"-echo "Hooks: $(find ${PAI_DIR}/hooks -type f | wc -l)"-echo "Projects: $(ls -1 ${HOME}/Projects 2>/dev/null | wc -l)"--# Check voice server-if curl -s http://localhost:8888/health > /dev/null 2>&1; then- echo "Voice Server: ✅ Running"-else- echo "Voice Server: ❌ Stopped"-fi-```--## Testing Your Installation--### 1. Test Context Loading--In Claude, try:-```-"Help me with my website"-# Should load website context--"Research AI trends"-# Should launch researcher agent-```--### 2. Test Voice Server--```bash-# Send test notification-curl -X POST http://localhost:8888/notify \- -H "Content-Type: application/json" \- -d '{"message": "Hello from PAI"}'-```--### 3. Test Hooks--```bash-# Test hook directly-${PAI_DIR}/hooks/user-prompt-submit-hook "test website"--# Check output-echo $? # Should be 0-```--## Common Tasks--### Adding a New Project Context--```bash-# 1. Create project directory-mkdir -p "${HOME}/Projects/newproject"--# 2. Create context file-cat > "${PAI_DIR}/context/projects/newproject/CLAUDE.md" << EOF-# New Project Context-[Project specific information]-EOF--# 3. Add to hook system (optional)-# Edit user-prompt-submit-hook to include new project triggers-```--### Creating Agent-Specific Contexts--```bash-# Research agent context-cat > "${PAI_DIR}/context/agents/researcher.md" << EOF-# Researcher Agent Context-Focus on finding accurate, recent information-Cite sources when possible-EOF-```--### Setting Up Automation--```bash-# Create automation hook-cat > "${PAI_DIR}/hooks/automation-hook" << EOF-#!/bin/bash-# Automated tasks-if [[ "\$1" =~ "daily report" ]]; then- generate_daily_report-fi-EOF-chmod +x "${PAI_DIR}/hooks/automation-hook"-```--## Troubleshooting--### Context Not Loading--```bash-# Check hook permissions-ls -la "${PAI_DIR}/hooks/"--# Test hook manually-"${PAI_DIR}/hooks/user-prompt-submit-hook" "test prompt"--# Check PAI_DIR is set-echo $PAI_DIR-```--### Voice Server Issues--```bash-# Check if running-lsof -i :8888--# View logs-tail -f "${HOME}/Library/Logs/pai-voice-server.log"--# Restart service-cd "${PAI_DIR}/voice-server"-./restart.sh-```--### Hook Not Executing--```bash-# Check if executable-chmod +x "${PAI_DIR}/hooks/"*--# Enable debug mode-export HOOK_DEBUG=true--# Check logs-tail -f "${HOME}/Library/Logs/hooks.log"-```--## Next Steps--1. **Explore Documentation**- - [System Architecture](./architecture.md)- - [UFC Context System](./ufc-context-system.md)- - [Hook System](./hook-system.md)--2. **Customize Your Setup**- - Add project-specific contexts- - Create custom hooks- - Configure voice personalities--3. **Advanced Features**- - Set up multiple agents- - Create command shortcuts- - Integrate with external services--## Quick Reference--### Essential Commands--```bash-# Check system status-"${PAI_DIR}/commands/status.sh"--# Reload context-source ~/.zshrc--# Test voice-curl -X POST http://localhost:8888/notify -d '{"message":"test"}'--# View logs-tail -f "${HOME}/Library/Logs/"*.log-```--### File Locations--| Component | Location |-|-----------|----------|-| Main Context | `${PAI_DIR}/context/CLAUDE.md` |-| Hooks | `${PAI_DIR}/hooks/` |-| Commands | `${PAI_DIR}/commands/` |-| Projects | `${HOME}/Projects/` |-| Logs | `${HOME}/Library/Logs/` |-| Voice Server | `${PAI_DIR}/voice-server/` |--### Environment Variables--| Variable | Purpose | Default |-|----------|---------|---------|-| `PAI_DIR` | PAI configuration directory | `$HOME/PAI/PAI_DIRECTORY` |-| `ELEVENLABS_API_KEY` | Voice synthesis API | None |-| `PORT` | Voice server port | 8888 |-| `HOOK_DEBUG` | Enable hook debugging | false |--## Getting Help--- Check the [Documentation](./README.md)-- Review [Troubleshooting Guide](#troubleshooting)-- File issues on GitHub-- Check logs in `${HOME}/Library/Logs/`-------*Welcome to PAI! Your personal AI infrastructure is ready to enhance your workflow.*\ No newline at end of file