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
- Action Required: New installations should copy
.claude/to~/.claude/
π Click to see all updates
- β¨ Oct 19: Session-start hook now loads PAI skill - improved Skills system bootstrap
- β¨ Oct 18: Major repo cleanup - fixed missing files, hooks, settings
- β¨ v0.5.0: Skills-based architecture with 92.5% token reduction
π 2025-10-20 - Settings: 1 updated
Updated by pre-commit hook: 1 modified
π 2025-10-19 - Voice: 2 updated
Updated by pre-commit hook: 3 modified
π 2025-10-19 - Skills: 1 updated, 5 removed
Updated by pre-commit hook: 1 modified, 5 deleted
π 2025-10-19 - Hooks: 2 new, 1 removed, Settings: 1 updated
Updated by pre-commit hook: 3 added, 1 modified, 1 deleted
π v0.6.0 - Repository Restructure with .claude/ Directory π₯ MAJOR UPDATE
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:
- Proper Emulation: Repository now accurately represents how PAI works in production
- Easier Setup: Users can see exactly how their
~/.claude/directory should be structured - Less Confusion: Clear separation between GitHub files and PAI infrastructure
- Better Documentation: Structure itself serves as documentation
- 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.
π v0.5.0 - Skills-Based PAI Architecture (92.5% Token Reduction)
Major Architectural Improvement:
- Zero hook overhead - Eliminated all context loading from UserPromptSubmit hook
- 92.5% token reduction - From 4000 tokens/interaction to 300 tokens
- Pure skills architecture - Core identity in skill description (always in system prompt)
- On-demand context - Full context loaded only when explicitly needed
What Changed:
- Added YAML frontmatter to
skills/PAI/SKILL.mdwith comprehensive system description - Core identity + critical security now in skill description (always present)
- Removed
MINIMAL.mdentirely (no longer needed) - Hook renamed to
update-tab-titles.ts(only handles tab titles, zero context) - Flat file structure in
skills/PAI/(no/contextssubdirectory)
Architecture:
- Tier 1 (Always On): Skill description in system prompt (~300 tokens) - identity, critical security, architecture explanation
- Tier 2 (On Demand):
SKILL.mdbody loaded when PAI skill invoked (~4000 tokens) - contacts, preferences, voice IDs, detailed security - Hook: Only updates tab titles (0 tokens context overhead)
Benefits:
- Cleanest possible architecture - fully embraces Claude Code skills system
- Context always relevant - skill description always present, full context on-demand
- Easy to customize - clear YAML frontmatter with
[CUSTOMIZE:]markers - Scales efficiently - adding content doesn't multiply token costs
Files:
skills/PAI/SKILL.md- Full context with YAML frontmatterskills/PAI/contacts.md- Contact templatesskills/PAI/preferences.md- Stack preferences templatesskills/PAI/response-format.md- Response format templatesskills/PAI/security-detailed.md- Security proceduresskills/PAI/voice-ids.md- Voice system configuration (optional)hooks/update-tab-titles.ts- Tab title updates only
π v0.4.0 - Repository Restructure π₯ BREAKING CHANGE
- PAI_DIR environment variable: Change from
/path/to/PAI/PAI_DIRECTORYto/path/to/PAI - Repository renamed:
PAIβPersonal_AI_Infrastructure
What Changed:
- Moved all
PAI_DIRECTORY/contents to repository root (agents/, skills/, commands/, etc.) - Repository renamed for clarity and better SEO
- All functional directories now immediately visible on GitHub
- GitHub automatically redirects old URLs to new
Migration:
- Update PAI_DIR:
export PAI_DIR="/path/to/PAI"(remove/PAI_DIRECTORY) - Reload shell:
source ~/.zshrc - Pull latest:
git pull - Update remote:
git remote set-url origin git@github.com:danielmiessler/Personal_AI_Infrastructure.git
π v0.3.2 - Fabric Skill with Intelligent Pattern Selection
Fabric skill now intelligently selects the right pattern from 242+ options based on user intent. Complete Fabric repository bundled locally. Categories: Security (15), Summarization (20), Extraction (30+), Analysis (35+), Creation (50+), Improvement (10), Rating (8).
π v0.3.1 - Research Skills & API Key Infrastructure
Multi-source research with parallel agent execution. New skills: alex-hormozi-pitch, research. New agents: perplexity-researcher, claude-researcher, gemini-researcher. Added .env.example with API key documentation.
π v0.3.0 - Skills System Migration
Migrated to Anthropic's Skills architecture. Modular skill packages with progressive disclosure. Context system β Skills system. See documentation for details.
π v0.2.4 - README Cleanup
Collapsed updates section, reduced visual clutter, optimized space.
π v0.2.3 - Visibility & Portability
.claude β PAI_DIRECTORY, vendor agnostic, dynamic paths with ${PAI_DIR}, full portability.
π v0.2.2 - Voice System
Migrated to macOS native Premium voices (zero cost, offline, private).
π v0.2.0 - v0.1.0 - Initial Releases
Public release with voice server, PAI_HOME support, comprehensive documentation, MCP detection, hooks system.
π Previous Updates
September 20, 2025
- π£οΈ Added
/voice-serverwith ElevenLabs integration - π§ Fixed hardcoded path issues
- πͺ Working on missing hooks
September 12, 2025
- π§ Dynamic resource loading system
- β‘ Submit-user-hook for context loading
- πΊοΈ Dynamic routing via load-dynamic-requirements
Core Mission: Augment humans with AI capabilities so they can survive and thrive in a world full of AI.
Right now, AI is trapped behind corporate APIs, expensive subscriptions, and complex interfaces that only developers can use. Meanwhile, billions of people who could benefit from AI augmentationβartists, teachers, small business owners, researchers, parentsβare left behind.
PAI exists to solve this. This project's goal is to give the most powerful AI capabilities, in the form of a complete platform, to everyone on Earth. Not just the tech elite. Not just the wealthy. Everyone.
graph TB
You[π€ You] --> PAI[π§ PAI/Kai]
PAI --> Work[πΌ Work]
PAI --> Life[π Life]
Work --> Blog[π write-blog]
Work --> News[π get-newsletter-stats]
Work --> Site[π get-site-analytics]
Work --> Consult[πΌ create-consulting-document]
Life --> Finance[π° answer-finance-question]
Life --> Memory[π get-life-log]
Life --> Alert[π send-text-alert]
Life --> Health[π₯ track-health-metrics]
Blog --> Output[β¨ Augmented Output]
News --> Output
Site --> Output
Consult --> Output
Finance --> Output
Memory --> Output
Alert --> Output
Health --> Output
style You fill:#24283b,stroke:#7aa2f7,stroke-width:2px,color:#c0caf5
style PAI fill:#1a1b26,stroke:#bb9af7,stroke-width:3px,color:#c0caf5
style Work fill:#24283b,stroke:#9ece6a,stroke-width:2px,color:#c0caf5
style Life fill:#24283b,stroke:#ff9e64,stroke-width:2px,color:#c0caf5
style Output fill:#1a1b26,stroke:#f7768e,stroke-width:3px,color:#c0caf5
PAI is an open-source, full personal AI platform that's completely agnostic to who you are and what you're trying to accomplish.
Think of PAI as your personal AI that actually knows youβall your projects, your style, your dataβand can handle anything you throw at it. Whether you're an artist transitioning to independence, a founder building a company, or someone managing complex health needs, PAI becomes whatever you need it to be.
PAI is part of the journey toward Human 3.0βwhere humans are augmented by AI to amplify their capabilities.
π Learn how PAI fits into the Human 3.0 vision
|
Finance Intelligence
Memory & Conversations
Health Tracking
|
Content Creation
Business Analytics
Development
|
Knowledge Capture
Communication
Productivity
|
This system is designed from the very beginning to be available to anybody and to grow and scale with you throughout your life.
- π Open Framework: No vendor lock-in, complete transparency, you own everything
- π Universal: Works for anyone, anywhere, in any profession or life situation
- π€ Platform Independent: Core structure works with Claude, GPT, Gemini, or any AI platform
- π§ Persistent Memory: Your AI remembers every context, project, and conversation
- π― Task Agnostic: From writing a blog to tracking medical data to running a business
- π Plain Text: All configuration in human-readable files you can edit and understand
- π Extensible: Add your own commands, agents, and integrations
π Read the full technical deep-dive on PAI
graph TD
You[π€ You] --> PAI[π§ PAI]
PAI --> Skills[π Skills]
Skills --> Research[π Research]
Skills --> Development[π» Development]
Skills --> Content[π Content]
Skills --> Life[π Life Management]
Skills --> Custom[π― Your Custom Skills]
Research --> Agents1[Perplexity/Claude/Gemini Researchers]
Development --> Agents2[Engineer/Architect/Designer]
Content --> Agents3[Writer/Artist]
Life --> Tools[Finance/Health/Memory Tools]
Agents1 --> MCPs[π MCP Servers]
Agents2 --> MCPs
Agents3 --> MCPs
Tools --> MCPs
MCPs --> Output[β¨ Augmented Output]
style You fill:#1f2937,stroke:#10b981,stroke-width:2px,color:#e5e7eb
style Skills fill:#111827,stroke:#8b5cf6,stroke-width:3px,color:#e5e7eb
style Output fill:#111827,stroke:#ef4444,stroke-width:2px,color:#e5e7eb
Skills are the core organizational unit. Everything in PAI is built around modular skills that activate based on your intent.
|
Features:
|
Skills activate automatically based on your intent:
-
Say: "Research the latest AI developments" β
researchskill loads β Launches parallel Perplexity/Claude/Gemini researchers -
Say: "Build a task tracker app" β
developmentskill loads β Invokes architect and engineer agents -
Say: "Create a threat model" β
fabricskill loads β Selectscreate_threat_modelpattern from 242+ options
Each skill contains:
- π Intent triggers ("USE WHEN...")
- π€ Specialized agents (if needed)
- π MCP integrations (if needed)
- β‘ Commands and tools (if needed)
- π Documentation and examples
Tip
You don't manage agents or commands directly. Just tell PAI what you want to do, and the right skill activates with all necessary resources.
| Skill | What It Does | Example Usage |
|---|---|---|
| π research | Multi-source research with parallel agents | "Research quantum computing trends" |
| π§΅ fabric | 242+ AI patterns (threat modeling, summarization, extraction) | "Create a threat model for our API" |
| π» development | Full-stack development with architect and engineer agents | "Build a meditation timer app" |
| π¨ design | UX/UI design with shadcn/ui and Figma integration | "Design a dashboard for analytics" |
| π ffuf | Web fuzzing for penetration testing | "Test this API for vulnerabilities" |
| π alex-hormozi-pitch | Create irresistible offers using $100M Offers framework | "Create a pitch for my SaaS product" |
| π web-scraping | Extract data from websites (BrightData + Apify) | "Scrape product listings from this site" |
| π ref-documentation | Search technical docs (React, Next.js, 100+ frameworks) | "How do I use React hooks?" |
| Extract transcripts and content from YouTube videos | "Summarize this YouTube video" | |
| π webapp-testing | Browser automation and visual testing | "Test the login flow" |
Skills use MCP servers for integrations: Chrome DevTools β’ Apify β’ BrightData β’ Stripe β’ Anthropic Content β’ Daemon (your data) β’ And more...
Automated Setup:
./.claude/setup.sh # Interactive setup script (recommended)Or read: Getting Started Guide | Quick Reference
Note
PAI was originally built with Claude Code, but the architecture supports any AI platform (GPT, Gemini, etc.) Requires Bun JavaScript runtime for the current implementation.
# Install Bun (JavaScript runtime)
brew install oven-sh/bun/bun
# Get Claude Code (AI interface)
# Visit: https://claude.ai/code# Clone the PAI repository
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
cd Personal_AI_Infrastructure
# All PAI infrastructure is now in .claude/ directory
ls -la .claude/ # See agents/, skills/, commands/, etc.# 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 ~/.claudeImportant
You MUST configure the PAI_DIR variable to point to your PAI installation directory. This makes the PAI system completely agnostic to your installation location.
# Add to your shell config (~/.zshrc or ~/.bashrc)
# Replace /path/to/PAI with YOUR actual PAI installation path
export PAI_DIR="/path/to/PAI" # Point to the PAI repository root
export PAI_HOME="$HOME" # Your home directory
# Example (adjust to YOUR installation path):
# export PAI_DIR="$HOME/Projects/PAI"
# export PAI_DIR="$HOME/Documents/PAI"
# export PAI_DIR="/Users/yourname/PAI"
# Reload your shell configuration
source ~/.zshrc # or source ~/.bashrc# Copy environment template
cp ~/.claude/.env.example ~/.claude/.env
# Configure your API keys
vim ~/.claude/.envImportant
Some skills and agents require API keys to function:
Required for Research Agents:
PERPLEXITY_API_KEY- For perplexity-researcher agent (Get key)GOOGLE_API_KEY- For gemini-researcher agent (Get key)- Claude WebSearch is built-in (no key needed for claude-researcher)
Optional for AI Generation:
REPLICATE_API_TOKEN- For AI image/video generation (Get key)OPENAI_API_KEY- For GPT integration and Sora billing (Get key)
See .env.example for complete list and setup instructions.
NEVER commit your .env file to version control!
# Optional: Set up voice notifications (macOS only)
# Download Premium/Enhanced voices from System Settings β Voice (Live Speech)
# Then start the voice server:
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 π# ============ REQUIRED CONFIGURATION ============
PAI_DIR="/path/to/PAI" # PAI repository root (system agnostic)
PAI_HOME="$HOME" # Your home directory
# ============ RESEARCH AGENTS (Skills-Specific) ============
PERPLEXITY_API_KEY="your_key" # For perplexity-researcher agent
GOOGLE_API_KEY="your_key" # For gemini-researcher agent
# Claude WebSearch built-in - no key needed for claude-researcher
# ============ AI GENERATION (Optional) ============
REPLICATE_API_TOKEN="your_token" # For Flux, Sora, etc.
OPENAI_API_KEY="your_key" # For GPT integration, Sora billing
# ============ SYSTEM CONFIGURATION ============
PORT="8888" # Voice server port (default: 8888)
# ============ DIGITAL ASSISTANT CUSTOMIZATION ============
DA="YourAssistantName" # Your AI assistant's name (default: "Assistant")
DA_COLOR="purple" # Display color (purple, blue, green, cyan, etc.)Tip
Why PAI_DIR is Important: The PAI_DIR variable makes the entire PAI system portable and installation-agnostic. All commands, skills, and hooks reference ${PAI_DIR} instead of hardcoded paths. This means you can install PAI anywhere on your system, and as long as PAI_DIR points to your PAI repository root, everything will work seamlessly.
| π Guide | π― Purpose | β±οΈ Time |
|---|---|---|
| Quick Start | Get up and running | 5 min |
| Architecture | Understand the system | 10 min |
| SECURITY.md | Security guidelines | 5 min |
| Voice Server | Enable voice interaction | 10 min |
| Commands Directory | Browse all commands | 15 min |
[!IMPORTANT] These are examples from my personal PAI setup. Your system will have completely different commands based on YOUR unique needs, workflows, and goals. The beauty of PAI is that it becomes whatever YOU need it to be.
π Newsletter Performance# Track newsletter metrics in real-time
get-newsletter-stats
# Returns subscriber growth, open rates, top contentπ Startup Dashboard# Monitor all key metrics
get-site-analytics # Traffic and conversions
get-finances-state # Revenue tracking
add-linear-ticket # Development velocityπ Code Security# Security automation
check-for-sensitive --scan all
design-review --security-focus
browser-tools-setup --headersπ API Infrastructure# Personal API management
update-daemon --endpoints
create-cloudflare-mcp-server
update-tools-context --integrations
startup-context-loadπ Blog Pipeline# End-to-end content creation
web-research "emerging AI trends"
extract-knowledge --key-points
write-blog --style personal --length 1500
enhance-content --seo --readability
publish-blog --schedule tomorrowπ¨ Visual Content# Create stunning visualizations
create-d3-visualization --data metrics.json
create-custom-image "futuristic AI assistant"
create-mermaid-visualization --type flowchart |
π Expense Analysis# Instant financial insights
answer-finance-question "monthly utilities average?"
answer-finance-question "subscription spending?"
process-finances-data --categorize --visualizeπ Financial Planning# Comprehensive financial overview
get-finances-state
prepare-finances-dashboard
push-finances-state --notifyπ Meeting Recall# Never forget a conversation
get-life-log "investor meeting last week"
get-life-log "product roadmap decisions"
query-context "action items from standup"π Knowledge Building# Build your second brain
capture-learning --source conference
extract-knowledge --summarize
learn-from-iterations --improve
query-context "machine learning notes"νΏ Morning Automation# Start your day right
get-life-log "yesterday's highlights"
query-context "today's priorities"
send-text-alert "heading to office"
reset-visitor-peak # Reset daily countersπ§ Smart Communication# Intelligent outreach
send-email --template followup
send-discord-alert --channel team
add-links --resource documentation
update-public-content |
π¨ Creative Portfolio# Manage artistic work
track-project-progress "oil painting series"
generate-artist-statement --style contemporary
update-portfolio-website --new-pieces
schedule-gallery-submission --deadline fridayπ· Photography Business# End-to-end photography workflow
process-shoot-metadata --wedding-2024-09
generate-client-gallery --password-protected
send-invoice --client johnson-wedding
backup-raw-files --cloud-storageπ€ Music Production# Creative music workflow
track-song-ideas --voice-memo-to-text
generate-chord-progressions --key-of-c
schedule-studio-time --next-available
export-stems --for-mixingποΈ Client Management# Wellness practice automation
track-client-progress --weekly-checkin
generate-meal-plans --dietary-restrictions
send-motivation-message --personalized
schedule-follow-up --in-two-weeks㪠Research Pipeline# Academic workflow
search-literature --keywords "machine learning ethics"
organize-citations --zotero-import
generate-literature-review --outline
track-experiment-results --statistical-analysisπ‘ Property Management# Real estate automation
analyze-market-trends --neighborhood-data
generate-property-reports --comparative-analysis
schedule-showings --calendar-optimization
send-client-updates --weekly-digest |
Special thanks to contributors who have enhanced PAI with their expertise:
- Joseph Thacker (@rez0) - FFUF skill with comprehensive web fuzzing guidance and penetration testing expertise
PAI is MIT licensed. See LICENSE for details.
"Humans are what matter. AI is only as useful as it is to people. A system like this is need to level the field with AI and help us get to Human 3.0."
Created by Daniel Miessler
π§ Newsletter β’ π Blog β’ πΌ LinkedIn β’ π¬ YouTube