Skip to content

danielmiessler/Personal_AI_Infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

538 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PAI Logo

Personal AI Infrastructure

Typing SVG


Stars Forks Watchers

Release Last Commit Open Issues Open PRs License

Discussions Commit Activity Repo Size

Get Started Release v3.0 Contributors

Built with Claude TypeScript Bun UL Community


Overview: Purpose Β· What is PAI? Β· New to AI? Β· Principles Β· Primitives

Get Started: Installation Β· Releases

Resources: FAQ Β· Roadmap Β· Community Β· Contributing


PAI Overview Video

Watch the full PAI walkthrough | Read: The Real Internet of Things


Important

PAI v3.0.0 Released β€” The Algorithm Matures: Constraint Extraction, Build Drift Prevention, Persistent PRDs, and Parallel Loop Execution.

Release notes β†’ | GitHub Release β†’

AI should magnify everyoneβ€”not just the top 1%.

The Purpose of This Project

PAI exists to solve what I believe is the P0 problem in the world:

Only a tiny fraction of humanity's creative potential is activated on Earth.

Most people don't believe they have valuable contributions to make. They think there are "special" peopleβ€”and they aren't one of them. They've never asked who they are, what they're about, and have never articulated or written it down. This makes them catastrophically vulnerable to AI displacement. Without activation, there is no high-agency.

So our goal with PAI is to activate people.

PAI's mission is twofold:

  1. Activate as many people as possible β€” Help people identify, articulate, and pursue their own purpose in life through AI-augmented self-discovery
  2. Make the best AI available in the world accessible to everyone β€” Ensure this quality of AI infrastructure isn't reserved for just the rich or technical elite.

That's why this is an open-source project instead of private.


New to This? Start Here

You've probably used ChatGPT or Claude. Type a question, get an answer. Simple.

You can think of AI systems as three levels:

The AI Evolution - From chatbots to your personal AI system

Chatbots

ChatGPT, Claude, Geminiβ€”you ask something, it answers, and then it forgets everything. Next conversation starts fresh. No memory of you, your preferences, or what you talked about yesterday.

The pattern: Ask β†’ Answer β†’ Forget

Agentic Platforms

Tools like Claude Code. The AI can actually do thingsβ€”write code, browse the web, edit files, run commands.

The pattern: Ask β†’ Use tools β†’ Get result

More capable, but it still doesn't know youβ€”your goals, your preferences, your history.

PAI (Personal AI Infrastructure)

Now your DA 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 core behavior evolves

Plus it knows:

  • Your goals β€” What you're working toward
  • Your preferences β€” How you like things done
  • Your history β€” Past decisions and learnings

The pattern: Observe β†’ Think β†’ Plan β†’ Execute β†’ Verify β†’ Learn β†’ Improve

The key difference: PAI learns from feedback. Every interaction makes it better at helping you specifically.


What is PAI?

PAI is a Personalized AI Platform designed to magnify your capabilities.

It's designed for humans most of all, but can be used by teams, companies, or Federations of Planets desiring to be better versions of themselves.

The scale of the entity doesn't matter: It's a system for understanding, articulating, and realizing its principal's goals using a full-featured Agentic AI Platform.

Who is PAI for?

Everyone, full stop. It's the anti-gatekeeping AI project.

  • Small business owners who aren't technical but want AI to handle invoicing, scheduling, customer follow-ups, and marketing
  • Companies who want to understand their data, optimize operations, and make better decisions
  • Managers who want to run their teams more effectivelyβ€”tracking projects, preparing for reviews, and communicating clearly
  • Artists and creatives who want to find local events, galleries, and opportunities to showcase their work
  • Everyday people who want to improve their livesβ€”better fitness routines, stronger social connections, personal finance, or just getting organized
  • Developers using AI coding assistants who want persistent memory and custom workflows
  • Power users who want their AI to know their goals, preferences, and context
  • Teams building shared AI infrastructure with consistent capabilities
  • Experimenters interested in AI system design and personal AI patterns

What makes PAI different?

The first thing people ask is:

How is this different from Claude Code, or any of the other agentic systems?

Most agentic systems are built around tools with the user being an afterthought. They are also mostly task-based instead of being goal-based using all the context available to them. PAI is the opposite.

Three core differentiators:

  1. Goal Orientation β€” PAI's primary focus is on the human running it and what they're trying to do in the world, not the tech. This is built into how the system executes all tasks.

  2. Pursuit of Optimal Output β€” The system's outer loop and everything it does is trying to produce the exact right output given the current situation and all the contexts around it.

  3. Continuous Learning β€” The system constantly captures signals about what was done, what changes were made, what outputs were produced for each request, and then how you liked or disliked the results.


The PAI Principles

These principles guide how PAI systems are designed and built. Full breakdown β†’

# Principle Summary
1 User Centricity PAI is built around you, not tooling. Your goals, preferences, and context come firstβ€”the infrastructure exists to serve them.
2 The Foundational Algorithm The scientific method as a universal problem-solving loop: Observe β†’ Think β†’ Plan β†’ Build β†’ Execute β†’ Verify β†’ Learn. Define the ideal state, iterate until you reach it.
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 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.
16 Permission to Fail Explicit permission to say "I don't know" prevents hallucinations.

PAI Primitives

While the Principles describe the philosophy of PAI, the Primitives are the architectureβ€”the core systems that make everything work.

PAI Primitives - A system that knows you, not a tool harness

These primitives work together to create the experience of working with a system that understands and knows youβ€”as opposed to a tool harness that just executes commands.


Assistant vs Agent-Based Interaction

Assistant vs. Agent-Based AI Interaction

PAI treats AI as a persistent assistant, friend, coach, and mentor rather than a stateless agent that runs tasks. An assistant knows your goals, remembers your preferences, and improves over time. An agent executes commands and forgets.


TELOS - Deep Goal Understanding

TELOS (Deep Goal Understanding)

10 files that capture who you are: MISSION.md, GOALS.md, PROJECTS.md, BELIEFS.md, MODELS.md, STRATEGIES.md, NARRATIVES.md, LEARNED.md, CHALLENGES.md, IDEAS.md. Your DA knows what you're working toward because it's all documented.


User/System Separation

User/System Separation

Your customizations live in USER/. PAI infrastructure lives in SYSTEM/. When PAI upgrades, your files are untouched. Portable identity, upgrade-safe.


Granular Customization

Granular Customization

Six layers of customization: Identity (name, voice, personality), Preferences (tech stack, tools), Workflows (how skills execute), Skills (what capabilities exist), Hooks (how events are handled), and Memory (what gets captured). Start with defaults, customize when needed.


Skill System

Skill System

Highly focused on consistent results. It has a structure that puts deterministic outcomes first by going from CODE -> CLI-BASED-TOOL -> PROMPT -> SKILL instead of a haphazard structure.


Memory System

Memory System

Focused on continuous learning. Every interaction generates signalsβ€”ratings, sentiment, successes, failuresβ€”that feed back into improving the system. Three-tier architecture (hot/warm/cold) with phase-based learning directories.


Hook System

Hook System

Responds to lifecycle eventsβ€”session start, tool use, task completion, and more. 8 event types enable voice notifications, automatic context loading, session capture, security validation, and observability.


Security System

Security System

Defines system and user-level security policies by default. You don't have to run with --dangerously-skip-permissions to have an uninterrupted experience. PAI's security hooks validate commands before execution, blocking dangerous operations while allowing normal workflows to proceed smoothly.


AI-Based Installation

AI-Based Installation

The GUI installer handles everythingβ€”prerequisites, configuration, and setup. No manual configuration, no guessing.


Notification System

Notification System

Keeps you informed without being intrusive. Push notifications via ntfy for mobile alerts, Discord integration for team updates, and duration-aware routing that escalates for long-running tasks. Fire-and-forget design means notifications never block your workflow.


Voice System

Voice System

Powered by ElevenLabs TTS. Hear task completions, session summaries, and important updates spoken aloud. Prosody enhancement makes speech sound natural. Your AI has a voice.


Terminal-Based UI

Terminal-Based UI

Rich tab titles and pane management. Dynamic status lines show learning signals, context usage, and current task state. Your terminal is a command center.


πŸš€ Installation

Caution

Project in Active Development β€” PAI is evolving rapidly. Expect breaking changes, restructuring, and frequent updates. We are working on stable and development branches, but currently it's all combined.

# Clone the repo
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
cd Personal_AI_Infrastructure/Releases/v3.0

# Copy the release and run the installer
cp -r .claude ~/ && cd ~/.claude && bash PAI-Install/install.sh

The installer will:

  • Detect your system and install prerequisites (Bun, Git, Claude Code)
  • Ask for your name, AI assistant name, and timezone
  • Clone/configure the PAI repository into ~/.claude/
  • Set up voice features with ElevenLabs (optional)
  • Configure your shell alias and verify the installation

After installation: Run source ~/.zshrc && pai to launch PAI.


❓ FAQ

How is PAI different from just using Claude Code?

PAI is built natively on Claude Code and designed to stay that way. We chose Claude Code because its hook system, context management, and agentic architecture are the best foundation available for personal AI infrastructure.

PAI isn't a replacement for Claude Code β€” it's the layer on top that makes Claude Code yours:

  • Persistent memory β€” Your DA remembers past sessions, decisions, and learnings
  • Custom skills β€” Specialized capabilities for the things you do most
  • Your context β€” Goals, contacts, preferencesβ€”all available without re-explaining
  • Intelligent routing β€” Say "research this" and the right workflow triggers automatically
  • Self-improvement β€” The system modifies itself based on what it learns

Think of it this way: Claude Code is the engine. PAI is everything else that makes it your car.

What's the difference between PAI and Claude Code's built-in features?

Claude Code provides powerful primitives β€” hooks, slash commands, MCP servers, context files. These are individual building blocks.

PAI is the complete system built on those primitives. It connects everything together: your goals inform your skills, your skills generate memory, your memory improves future responses. PAI turns Claude Code's building blocks into a coherent personal AI platform.

Is PAI only for Claude Code?

PAI is Claude Code native. We believe Claude Code's hook system, context management, and agentic capabilities make it the best platform for personal AI infrastructure, and PAI is designed to take full advantage of those features.

That said, PAI's concepts (skills, memory, algorithms) are universal, and the code is TypeScript, Python, and Bash β€” so community members are welcome to adapt it for other platforms.

How is this different from fabric?

Fabric is a collection of AI prompts (patterns) for specific tasks. It's focused on what to ask AI.

PAI is infrastructure for how your DA operatesβ€”memory, skills, routing, context, self-improvement. They're complementary. Many PAI users integrate Fabric patterns into their skills.

What if I break something?

Recovery is straightforward:

  • Git-backed β€” Version control everything, roll back when needed
  • History is preserved β€” Your DA's memory survives mistakes
  • DA can fix it β€” Your DA helped build it, it can help repair it
  • Re-install β€” Run the installer again to reset to a clean state

🎯 Roadmap

Feature Description
Local Model Support Run PAI with local models (Ollama, llama.cpp) for privacy and cost control
Granular Model Routing Route different tasks to different models based on complexity
Remote Access Access your PAI from anywhereβ€”mobile, web, other devices
Outbound Phone Calling Voice capabilities for outbound calls
External Notifications Robust notification system for Email, Discord, Telegram, Slack

🌐 Community

GitHub Discussions: Join the conversation

UL Community Discord: PAI is discussed in the Unsupervised Learning community along with other AI projects

Twitter/X: @danielmiessler

Blog: danielmiessler.com

Star History

Star History Chart

🀝 Contributing

We welcome contributions! See our GitHub Issues for open tasks.

  1. Fork the repository
  2. Make your changes β€” Bug fixes, new skills, documentation improvements
  3. Test thoroughly β€” Install in a fresh system to verify
  4. Submit a PR with examples and testing evidence

πŸ“œ License

MIT License - see LICENSE for details.


πŸ™ Credits

Anthropic and the Claude Code team β€” First and foremost. You are moving AI further and faster than anyone right now. Claude Code is the foundation that makes all of this possible.

IndyDevDan β€” For great videos on meta-prompting and custom agents that have inspired parts of PAI.

Contributors

fayerman-source β€” Google Cloud TTS provider integration and Linux audio support for the voice system.

Matt Espinoza β€” Extensive testing, ideas, and feedback for the PAI 2.3 release, plus roadmap contributions.


πŸ’œ Support This Project

Sponsor

PAI is free and open-source forever. If you find it valuable, you can sponsor the project.


πŸ“š Related Reading


πŸ“œ Update History

v3.0.0 (2026-02-15) β€” The Algorithm Matures

  • Algorithm v1.4.0 with constraint extraction and build drift prevention
  • Persistent PRDs and parallel loop execution
  • Full installer with GUI wizard
  • 10 new skills, agent teams/swarm, voice personality system
  • 38 skills, 20 hooks, 162 workflows
  • Release Notes

v2.5.0 (2026-01-30) β€” Think Deeper, Execute Faster

  • Two-Pass Capability Selection: Hook hints validated against ISC in THINK phase
  • Thinking Tools with Justify-Exclusion: Opt-OUT, not opt-IN for Council, RedTeam, FirstPrinciples, etc.
  • Parallel-by-Default Execution: Independent tasks run concurrently via parallel agent spawning
  • 28 skills, 17 hooks, 356 workflows
  • Release Notes

v2.4.0 (2026-01-23) β€” The Algorithm

  • Universal problem-solving system with ISC (Ideal State Criteria) tracking
  • 29 skills, 15 hooks, 331 workflows
  • Euphoric Surprise as the outcome metric
  • Enhanced security with AllowList enforcement
  • Release Notes

v2.3.0 (2026-01-15) β€” Full Releases Return

  • Complete .claude/ directory releases with continuous learning
  • Explicit and implicit rating capture
  • Enhanced hook system with 14 production hooks
  • Status line with learning signal display
  • Release Notes

v2.1.1 (2026-01-09) β€” MEMORY System Migration

  • History system merged into core as MEMORY System

v2.1.0 (2025-12-31) β€” Modular Architecture

  • Source code in real files instead of embedded markdown

v2.0.0 (2025-12-28) β€” PAI v2 Launch

  • Modular architecture with independent skills
  • Claude Code native design

Built with ❀️ by Daniel Miessler and the PAI community

Augment yourself.

About

Agentic AI Infrastructure for magnifying HUMAN capabilities.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 20