Back
gh

danielmiessler/Personal_AI_Infrastructure: Agentic AI Infrastructure for magnifying HUMAN capabilities.

Agentic AI Infrastructure for magnifying HUMAN capabilities. - danielmiessler/Personal_AI_Infrastructure

by danielmiessler github.com 2,999 words
View original

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 v4.0.3 Contributors

Built with Claude TypeScript Bun Community

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

Get Started: Installation · Releases · Packs

Resources: FAQ · Roadmap · Community · Contributing

PAI Overview Video

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


[!important] Important PAI v4.0.3 Released — 3 patch updates since v4.0.0 with 30+ community-contributed fixes: Linux compatibility, JSON parsing, installer improvements, portability, and upgrade migration.

Release notes → | All releases →

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:

Plus it knows:

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.

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 →

#PrincipleSummary
1User CentricityPAI is built around you, not tooling. Your goals, preferences, and context come first—the infrastructure exists to serve them.
2The Foundational AlgorithmThe scientific method as a universal problem-solving loop: Observe → Think → Plan → Build → Execute → Verify → Learn. Define the ideal state, iterate until you reach it.
3Clear Thinking FirstGood prompts come from clear thinking. Clarify the problem before writing the prompt.
4Scaffolding > ModelSystem architecture matters more than which model you use.
5Deterministic InfrastructureAI is probabilistic; your infrastructure shouldn’t be. Use templates and patterns.
6Code Before PromptsIf you can solve it with a bash script, don’t use AI.
7Spec / Test / Evals FirstWrite specifications and tests before building. Measure if the system works.
8UNIX PhilosophyDo one thing well. Make tools composable. Use text interfaces.
9ENG / SRE PrinciplesTreat AI infrastructure like production software: version control, automation, monitoring.
10CLI as InterfaceCommand-line interfaces are faster, more scriptable, and more reliable than GUIs.
11Goal → Code → CLI → Prompts → AgentsThe decision hierarchy: clarify goal, then code, then CLI, then prompts, then agents.
12Skill ManagementModular capabilities that route intelligently based on context.
13Memory SystemEverything worth knowing gets captured. History feeds future context.
14Agent PersonalitiesDifferent work needs different approaches. Specialized agents with unique voices.
15Science as Meta-LoopHypothesis → Experiment → Measure → Iterate.
16Permission to FailExplicit 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] 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.

Fresh Install

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

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

The installer will:

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

Upgrading from a Previous Version

# 1. Back up your current installation
cp -r ~/.claude ~/.claude-backup-$(date +%Y%m%d)

# 2. Clone and copy the new release over your installation
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
cd Personal_AI_Infrastructure/Releases/v4.0.3
cp -r .claude ~/

# 3. Run the installer (detects existing installation, preserves your data)
cd ~/.claude && bash install.sh

# 4. Rebuild your CLAUDE.md
bun ~/.claude/PAI/Tools/BuildCLAUDE.ts

[!tip] Tip The installer auto-detects existing installations. It preserves your USER/ files, merges settings.json (only updating installer-managed fields like identity and version), and never overwrites your hooks, statusline, or custom configuration.

Post-upgrade checklist:


📦 PAI Packs

Don’t want to install all of PAI? Packs are standalone, AI-installable capabilities you can add one at a time. Each pack is self-contained — your AI reads the install guide and sets everything up for you. No PAI installation required.

Point your AI at any pack and say “install this”:

"Install the Research pack from PAI/Packs/Research/"

Your AI walks through a 5-phase wizard: system analysis, user questions, backup, installation, verification.

Available Packs

PackWhat It Does
ContextSearch/context-search and /cs — instant recall of prior work sessions
AgentsCustom agent composition from traits, voices, and personalities
ContentAnalysisWisdom extraction from videos, podcasts, articles, and YouTube
InvestigationOSINT and investigation — company intel, people search, domain lookup
MediaAI image generation, diagrams, infographics, and Remotion video
ResearchMulti-agent research — quick, standard, extensive, and deep modes
ScrapingWeb scraping via Bright Data proxy and Apify social media actors
SecurityRecon, web app testing, prompt injection testing, security news
TelosLife OS — goals, beliefs, wisdom, project dashboards, McKinsey reports
ThinkingFirst principles, council debates, red team, brainstorming, science
USMetrics68 US economic indicators from FRED, EIA, Treasury, BLS, Census
UtilitiesCLI generation, skill scaffolding, Fabric patterns, Cloudflare, browser automation

Each pack works standalone — install one, install five, or install all of them. They’re designed to give you PAI-level capabilities whether or not you run the full PAI system.

Browse all packs →


❓ 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:

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 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:


🎯 Roadmap

FeatureDescription
Local Model SupportRun PAI with local models (Ollama, llama.cpp) for privacy and cost control
Granular Model RoutingRoute different tasks to different models based on complexity
Remote AccessAccess your PAI from anywhere—mobile, web, other devices
Outbound Phone CallingVoice capabilities for outbound calls
External NotificationsRobust notification system for Email, Discord, Telegram, Slack

🌐 Community

GitHub Discussions: Join the conversation

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

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.



📜 Update History

v4.0.3 (2026-03-01) — Community PR Patch

v4.0.2 (2026-03-01) — Bug Fix Patch

v4.0.1 (2026-02-28) — Upgrade Path & Preferences

v4.0.0 (2026-02-27) — Lean and Mean

v3.0.0 (2026-02-15) — The Algorithm Matures

v2.5.0 (2026-01-30) — Think Deeper, Execute Faster

v2.4.0 (2026-01-23) — The Algorithm

v2.3.0 (2026-01-15) — Full Releases Return

v2.1.1 (2026-01-09) — MEMORY System Migration

v2.1.0 (2025-12-31) — Modular Architecture

v2.0.0 (2025-12-28) — PAI v2 Launch


Built with ❤️ by Daniel Miessler and the PAI community

Augment yourself.