Personal AI Infrastructure

Magnify what
you're capable of.

PAI is an open-source AI-based Life Operating System — a dedicated Digital Assistant that moves you from your current state to your ideal state through self-understanding, goal definition, and autonomous, continuous advancement.

PAI startup banner — Kai here, ready to go — with live system stats
pai — the startup banner you see every session
01 — Thesis

AI should magnify everyone — not just the top 1%.

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. Without activation, there is no high-agency. This is the P0 problem PAI exists to solve.

PAI is a Personalized AI Platform designed to magnify your capabilities. It pairs you with a Digital Assistant that knows your goals, preferences, and context — and moves you from your current state toward your ideal state. Not a chatbot. Not a stateless agent. A persistent partner that improves over time.

It's open-source so this quality of AI infrastructure isn't reserved for the rich or technical elite. Everyone gets the best AI.

02The Statusline

Your life, quantified across five dimensions. Every minute.

PAI runs a statusline at the top of every terminal window. Real-time temperature, the five Life OS dimensions (Health, Creativity, Freedom, Relationships, Finances), loaded context files, token burn rate, learning histograms across 6m / 1d / 1mo, and a rotating aphorism. This is what your AI sees when it helps you — and what you see when you open a shell.

HEALTH
sleep · movement
CREATIVE
writing · building
FREEDOM
autonomy · time
RELATIONS
family · friends
FIN
income · runway
PAI statusline showing live health/creative/freedom/relations/fin percentages, context bar, loaded files, usage burn, learning histograms, and a rotating aphorism
pai statusline — live, 60s refresh · terminal-native · always on
03TELOS

Know who you are. Write it down.

TELOS is ten files that capture the whole of you — mission, goals, projects, beliefs, mental models, strategies, narratives, lessons, challenges, and ideas. Your Digital Assistant reads these first. Every suggestion it makes, every plan it writes, is anchored in what you've already articulated about yourself.

10 filesmission · goals · beliefs · models · strategies · …
USER/TELOS/
MISSION.md
GOALS.md
PROJECTS.md
BELIEFS.md · MODELS.md · STRATEGIES.md
NARRATIVES.md · LEARNED.md · CHALLENGES.md · IDEAS.md
kai › Loaded 10 TELOS files. I know who you are now.
04Memory

Continuous learning, not stateless chat.

A three-tier memory (hot / warm / cold) with phase-based learning directories. Every interaction emits signals — ratings, sentiment, successes, failures — that feed back into the system. Corrections become rules. Preferences become defaults. The system stops asking the same questions because it writes down the answers.

3 tiershot · warm · cold · phase-based
memory/feedback — logged
you › Stop asking me — just pick the obvious path.
[MEMORY] feedback_stop_asking_just_build.md
kai › Rule captured. Reversible tech decisions will auto-execute going forward.
→ signal logged · MEMORY.md indexed
05Skills

CODE → CLI → PROMPT → SKILL.

A deterministic hierarchy for getting work done. Code first when you can. CLI tools next. Prompts after that. Skills at the top — composable capabilities that route intelligently based on context. Research, web design, blog writing, OSINT, security assessment, billing, voice, calendar. All one invocation away.

63+skills shipped in v4 (more every release)
/cs — cold-start context recovery
you › /cs ourpai redesign
[Skill] ContextSearch — 2-phase scan
→ 5 sessions · 3 PRDs loaded · MEMORY/WORK indexed
kai › Cold-start recovered in 1.4 seconds. Here's where we were.
06Hooks

Eight event types. Your runtime opinions.

Hooks respond to lifecycle events — session start, tool use, prompt submit, stop, notification, pre-compact, post-compact, session end. Validate. Inject context. Notify. Log. Block. The system behaves the way you want, not the way a vendor decided.

8 eventsSessionStart · PreToolUse · PostToolUse · …
PreToolUse — ContainmentGuard
PreToolUse: Write src/components/Footer.tsx
[ContainmentGuard] scanning content
🚨 BLOCKED: private reference outside Z1–Z4 zones
kai › Rerouted. Footer now references only public repo.
07Agents

Persistent assistant. Parallel specialists.

PAI treats AI as a persistent assistant — friend, coach, mentor — not a stateless agent. When depth is needed, it dispatches specialists in parallel: engineers, architects, researchers, QA. Each with its own personality and voice. Each isolated, scoped, and background by default.

14+agent personalities · composable teams
Task — 4 researchers in parallel
you › Research landing pages for OSS frameworks + AI tools.
[Task] spawning: dev-platform · AI-native · opinionated · life-OS
→ 4 agents · bg · 16 references · 2m 04s
kai › Synthesis done. Manifesto register, single-accent, numbered chapters.
08Voice

Your AI has a voice.

ElevenLabs TTS on every response. Named character voices per agent. Prosody enhancement so speech sounds natural — not the default robot. Hear task completions, session summaries, important updates spoken aloud while your eyes stay on the work.

ElevenLabsprosody-enhanced · per-agent voices
voice lane — Kai speaking
[voice] Pushed PAI docs with clearer install paths.
[voice] Found four more hardcoded paths. All fixed and staged.
[voice] Design gallery ready with 80 concepts. Want me to open it?
[voice] The Last Algorithm is now live on your blog.
09Stack

What PAI actually is.

A small set of composable primitives, each you can read, fork, or replace. No black boxes. No vendor lock.

Foundation
  • Claude Code
  • TypeScript
  • Bun
  • Bash
Identity
  • TELOS (10 files)
  • USER/SYSTEM separation
  • upgrade-safe customization
Execution
  • Skills (63+)
  • Hooks (21)
  • Agents (14+)
  • Workflows (180+)
Memory
  • 3-tier hot/warm/cold
  • phase-based learning
  • continuous signal capture
Surfaces
  • CLI
  • Terminal statusline
  • Voice (ElevenLabs)
  • Notifications (ntfy · Discord)
Security
  • policy hooks
  • no --dangerously-skip-permissions
  • containment zones
Installation
  • AI-based GUI installer
  • platform detection
  • identity wizard
License
  • MIT
  • open-source
  • self-hosted
10Install

Clone it. Run the installer. You're running PAI.

The GUI installer detects your system, installs prerequisites (Bun, Git, Claude Code), asks for your identity and preferences, and configures the repo into ~/.claude/. USER/ files are preserved on every upgrade.

install — v4.0.3
$ git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
$ cd Personal_AI_Infrastructure/Releases/v4.0.3
$ cp -r .claude ~/ && cd ~/.claude && bash install.sh
$ source ~/.zshrc && pai

Upgrading from an earlier version? The installer auto-detects existing installs, merges settings non-destructively, and never overwrites your USER/ files or custom hooks.

11Community

People are building this with us.

PAI is open-source on GitHub. Star it, fork it, open an issue, send a PR. The list below is live — pulled from the repo right now.

Stars
Forks
Open issues