Skip to content

⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.

Update README and documentation for v0.6.0 major upgrade

Daniel Miesslerb743d48c5ecb
diff --git a/.claude/documentation/QUICK-REFERENCE.md b/.claude/documentation/QUICK-REFERENCE.md
index adc2f3e9..516ab086 100644
--- a/.claude/documentation/QUICK-REFERENCE.md
+++ b/.claude/documentation/QUICK-REFERENCE.md
@@ -2,6 +2,12 @@
**Bookmark this page!** This is your quick reference for common PAI commands and tasks.
+> [!NOTE]
+> **📦 v0.6.0 Update:** Repository now uses `.claude/` directory structure.
+> - On your system: `~/.claude/` contains your PAI installation
+> - Path references below use `~/.claude/` for installed system
+> - Repository structure: `PAI/.claude/` for development
+
---
## 🚀 Getting Started
diff --git a/.claude/documentation/README.md b/.claude/documentation/README.md
index 15998083..59af19c3 100644
--- a/.claude/documentation/README.md
+++ b/.claude/documentation/README.md
@@ -1,5 +1,11 @@
# PAI System Documentation
+> [!IMPORTANT]
+> **v0.6.0 MAJOR UPDATE:** Directory structure changed to `.claude/`
+> - All PAI infrastructure now in `.claude/` directory
+> - Repository mirrors your actual `~/.claude/` working system
+> - Copy `.claude/` from repo to `~/.claude/` for installation
+
Welcome to the Personal AI Infrastructure (PAI) documentation. PAI is a comprehensive system for integrating AI assistants into your personal workflow with advanced context management, automation, and extensibility.
## 📚 Documentation Index
@@ -72,16 +78,16 @@ PAI (Personal AI Infrastructure) is a powerful framework that enhances AI assist
## 🏗️ System Components
```
-PAI/
-├── PAI_DIRECTORY/ # PAI system configuration
-│ ├── skills/ # Modular capability packages
-│ ├── hooks/ # Event hooks
-│ ├── commands/ # Custom slash commands
-│ ├── agents/ # Specialized AI agents
-│ └── voice-server/ # Voice notification server
-├── Documentation/ # System documentation
-├── Projects/ # User projects
-└── Library/ # System libraries and logs
+~/.claude/ # PAI installation directory
+├── skills/ # Modular capability packages
+├── hooks/ # Event hooks
+├── commands/ # Custom slash commands
+├── agents/ # Specialized AI agents
+├── voice-server/ # Voice notification server
+├── documentation/ # System documentation
+├── settings.json # Configuration
+├── .mcp.json # MCP servers
+└── .env # Environment variables (create from .env.example)
```
## 🔧 Environment Variables
@@ -114,29 +120,35 @@ PAI uses environment variables for configuration:
```bash
# Clone PAI repository
-git clone https://github.com/yourusername/PAI.git
-cd PAI
-
-# Set PAI_DIR
-export PAI_DIR="$HOME/PAI/PAI_DIRECTORY"
+git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
+cd Personal_AI_Infrastructure
-# Install voice server (optional)
-cd PAI_DIRECTORY/voice-server
-./install.sh
+# Copy .claude directory to your home
+cp -r .claude ~/.claude
# Configure environment
-cp ${PAI_DIR}/env-example ${PAI_DIR}/.env
-# Edit ${PAI_DIR}/.env with your settings
+cp ~/.claude/.env.example ~/.claude/.env
+# Edit ~/.claude/.env with your settings
+
+# Set PAI_DIR (optional, for repo development)
+export PAI_DIR="$HOME/PAI" # Points to repo root
+export PAI_HOME="$HOME"
+
+# Start voice server (optional)
+cd ~/.claude/voice-server
+bun server.ts &
```
## Configuration
PAI is configured through:
-1. Environment variables in `${PAI_DIR}/.env`
-2. Skills in `${PAI_DIR}/skills/`
-3. Hook scripts in `${PAI_DIR}/hooks/`
-4. Agent definitions in `${PAI_DIR}/agents/`
-5. Slash commands in `${PAI_DIR}/commands/`
+1. Environment variables in `~/.claude/.env`
+2. Skills in `~/.claude/skills/`
+3. Hook scripts in `~/.claude/hooks/`
+4. Agent definitions in `~/.claude/agents/`
+5. Slash commands in `~/.claude/commands/`
+6. MCP servers in `~/.claude/.mcp.json`
+7. Settings in `~/.claude/settings.json`
## Usage Examples
diff --git a/.claude/documentation/architecture.md b/.claude/documentation/architecture.md
index 1fb8d136..84589daf 100644
--- a/.claude/documentation/architecture.md
+++ b/.claude/documentation/architecture.md
@@ -1,5 +1,14 @@
# PAI System Architecture
+> [!IMPORTANT]
+> **v0.6.0 Directory Structure Update**
+> As of v0.6.0, all PAI infrastructure lives in the `.claude/` directory:
+> - **Repository:** `/PAI/.claude/` contains all infrastructure
+> - **Your System:** `~/.claude/` is where you install PAI
+> - **Migration:** Copy `.claude/` from repo to `~/.claude/` on your system
+>
+> This structure ensures the repository properly mirrors how PAI works in production.
+
## Overview
PAI (Personal AI Infrastructure) is a modular, event-driven system that enhances AI assistants with dynamic context management, automation, and extensibility. The architecture follows a layered approach with clear separation of concerns.
@@ -56,7 +65,7 @@ The hook system provides event-driven automation throughout the AI interaction l
- **Tool hooks**: Intercept and modify tool calls
- **Post-execution hooks**: Run after commands complete
-**Location:** `${PAI_DIR}/hooks/`
+**Location:** `~/.claude/hooks/`
### 2. Skills System
@@ -68,7 +77,7 @@ The Skills System provides modular, self-contained capability packages that exte
- **Modular Design**: Self-contained with templates and components
- **Global Inheritance**: All skills automatically access global context
-**Location:** `${PAI_DIR}/skills/`
+**Location:** `~/.claude/skills/`
### 3. Agent System
diff --git a/.claude/documentation/how-to-start.md b/.claude/documentation/how-to-start.md
index e53cc1e5..9b4a7c23 100644
--- a/.claude/documentation/how-to-start.md
+++ b/.claude/documentation/how-to-start.md
@@ -2,6 +2,13 @@
**Welcome! Let's get your Personal AI Infrastructure up and running.**
+> [!NOTE]
+> **📦 v0.6.0 Repository Structure**
+> As of v0.6.0, the PAI repository uses a `.claude/` directory structure to match the actual working system:
+> - Repository structure: `/PAI/.claude/` contains all infrastructure
+> - Your system: `~/.claude/` contains your personal PAI instance
+> - Simply copy or symlink `.claude/` from the repo to `~/.claude/` on your system
+
---
## 👋 Hey there!
diff --git a/README.md b/README.md
index fa3c2b1f..f2b7ce91 100644
--- a/README.md
+++ b/README.md
@@ -27,12 +27,24 @@
## 🚀 **Recent Updates**
+> [!IMPORTANT]
+> **🔥 v0.6.0 MAJOR UPGRADE:** Repository completely restructured with `.claude/` directory!
+>
+> **BREAKING CHANGE - Repository Structure Changed:**
+> - All PAI infrastructure now lives in `.claude/` directory
+> - Repository now properly mirrors your actual `~/.claude/` working system
+> - Fixes major compatibility issues reported by users
+> - Makes repo a true reference implementation
+> - **Action Required:** New installations should copy `.claude/` to `~/.claude/`
+>
+> [See full migration guide below →](#-recent-updates)
+
> [!TIP]
> **✨ October 19** Now using the session-start hook to load our PAI skill on system load! Great bootloader for the overall Skills system! This is a better version of what we were doing before with UFC but now utilizing the skills system.
> **✨ October 18** Overall just massive updates to the PAI repo. Fixed tons of missing files, hooks, settings, etc. Thank you all for submitting issues and PRs!
-> **✨ v0.5.0 NEW:** Skills-based PAI architecture with 92.5% token reduction! Core identity now in skill description, zero hook overhead. [See details below →](#-recent-updates)
+> **✨ v0.5.0:** Skills-based PAI architecture with 92.5% token reduction! Core identity now in skill description, zero hook overhead.
<details>
@@ -139,6 +151,68 @@
<details>
<summary><strong>Click to see all updates</strong></summary>
+<details>
+<summary><strong>📅 v0.6.0 - Repository Restructure with .claude/ Directory 🔥 MAJOR UPDATE</strong></summary>
+
+**The Problem:**
+Users reported issues with PAI not working correctly because the repository structure didn't match the actual working system. The real PAI system expects all infrastructure to live in `~/.claude/`, but the repo had everything at root level. This caused confusion and compatibility problems.
+
+**The Solution:**
+Complete repository restructure to mirror the actual working system:
+- Created `.claude/` directory at repository root
+- Moved ALL PAI infrastructure into `.claude/` (agents, commands, documentation, hooks, skills, voice-server, etc.)
+- Kept GitHub infrastructure at root (README, LICENSE, .gitignore, .github, etc.)
+- Repository now serves as a true reference implementation
+
+**What Changed:**
+```
+Before (v0.5.0):
+/PAI/
+├── agents/
+├── commands/
+├── documentation/
+├── hooks/
+├── skills/
+├── voice-server/
+├── settings.json
+├── .mcp.json
+├── setup.sh
+└── README.md
+
+After (v0.6.0):
+/PAI/
+├── .claude/ # ← NEW: All PAI infrastructure here
+│ ├── agents/
+│ ├── commands/
+│ ├── documentation/
+│ ├── hooks/
+│ ├── skills/
+│ ├── voice-server/
+│ ├── settings.json
+│ ├── .mcp.json
+│ └── setup.sh
+├── README.md # GitHub infrastructure stays at root
+├── LICENSE
+└── .gitignore
+```
+
+**Why This Matters:**
+1. **Proper Emulation:** Repository now accurately represents how PAI works in production
+2. **Easier Setup:** Users can see exactly how their `~/.claude/` directory should be structured
+3. **Less Confusion:** Clear separation between GitHub files and PAI infrastructure
+4. **Better Documentation:** Structure itself serves as documentation
+5. **Reference Implementation:** Can be copied/referenced directly for setup
+
+**Migration:**
+- No action required for existing installations
+- New users get the correct structure from the start
+- All documentation updated to reflect new paths
+
+**Rationale:**
+The PAI system is designed to live in `~/.claude/` on your system. By organizing the repository to mirror this structure, we make it immediately clear how PAI should be set up. This is especially important for new users who are trying to understand the system architecture and for contributors who need to know where files belong.
+
+</details>
+
<details>
<summary><strong>📅 v0.5.0 - Skills-Based PAI Architecture (92.5% Token Reduction)</strong></summary>
@@ -450,7 +524,7 @@ graph TD
<td width="50%">
```
-${PAI_DIR}/skills/
+~/.claude/skills/
├── prompting/ # Prompt engineering standards
├── create-skill/ # Skill creation framework
├── ffuf/ # Web fuzzing for pentesting (by @rez0)
@@ -526,10 +600,10 @@ Chrome DevTools • Apify • BrightData • Stripe • Anthropic Content • Da
**Automated Setup:**
```bash
-./setup.sh # Interactive setup script (recommended)
+./.claude/setup.sh # Interactive setup script (recommended)
```
-**Or read:** [Getting Started Guide](./documentation/how-to-start.md) | [Quick Reference](./documentation/QUICK-REFERENCE.md)
+**Or read:** [Getting Started Guide](./.claude/documentation/how-to-start.md) | [Quick Reference](./.claude/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.)
@@ -554,11 +628,21 @@ brew install oven-sh/bun/bun
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
cd Personal_AI_Infrastructure
-# All functional directories are now visible at root
-ls -la # See agents/, skills/, commands/, etc.
+# All PAI infrastructure is now in .claude/ directory
+ls -la .claude/ # See agents/, skills/, commands/, etc.
```
-#### **Step 3: Configure PAI Directory Variable** ⚠️ **IMPORTANT**
+#### **Step 3: Copy .claude/ to Your Home Directory**
+
+```bash
+# Copy the .claude directory to your home directory
+cp -r .claude ~/.claude
+
+# OR create a symbolic link if you want to keep it in the repo
+# ln -s ${PAI_DIR}/.claude ~/.claude
+```
+
+#### **Step 4: Configure PAI Directory Variable** ⚠️ **IMPORTANT**
> [!IMPORTANT]
> **You MUST configure the PAI_DIR variable to point to your PAI installation directory.**
@@ -579,14 +663,14 @@ export PAI_HOME="$HOME" # Your home directory
source ~/.zshrc # or source ~/.bashrc
```
-#### **Step 4: Configure Environment & API Keys**
+#### **Step 5: Configure Environment & API Keys**
```bash
# Copy environment template
-cp ${PAI_DIR}/.env.example ${PAI_DIR}/.env
+cp ~/.claude/.env.example ~/.claude/.env
# Configure your API keys
-vim ${PAI_DIR}/.env
+vim ~/.claude/.env
```
> [!IMPORTANT]
@@ -604,17 +688,14 @@ vim ${PAI_DIR}/.env
> See `.env.example` for complete list and setup instructions.
> **NEVER commit your `.env` file to version control!**
-#### **Step 5: Launch PAI**
+#### **Step 6: Launch PAI**
```bash
-# Navigate to PAI directory
-cd ${PAI_DIR}
-
# Optional: Set up voice notifications (macOS only)
# Download Premium/Enhanced voices from System Settings → Voice (Live Speech)
# Then start the voice server:
-cd voice-server && bun server.ts &
-# See documentation/VOICE-SETUP-GUIDE.md for detailed setup instructions
+cd ~/.claude/voice-server && bun server.ts &
+# See ~/.claude/documentation/VOICE-SETUP-GUIDE.md for detailed setup instructions
# Open Claude Code and start using PAI!
# Your personal AI infrastructure is ready 🚀
@@ -658,8 +739,8 @@ DA_COLOR="purple" # Display color (purple, blue, green, cy
| [Quick Start](#-quick-start) | Get up and running | 5 min |
| [Architecture](#-architecture) | Understand the system | 10 min |
| [SECURITY.md](./SECURITY.md) | Security guidelines | 5 min |
-| [Voice Server](./voice-server/README.md) | Enable voice interaction | 10 min |
-| [Commands Directory](./commands/) | Browse all commands | 15 min |
+| [Voice Server](./.claude/voice-server/README.md) | Enable voice interaction | 10 min |
+| [Commands Directory](./.claude/commands/) | Browse all commands | 15 min |
</div>