Skip to content

Commit df2b875

Browse files
PAI v4.0.0 — Lean and Mean
Release under Releases/v4.0/.claude/ with comprehensive release notes. Updated root README with v4.0 references, installation path, and update history. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e3ee9ad commit df2b875

File tree

1,161 files changed

+228393
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,161 files changed

+228393
-7
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434

3535
<!-- Content -->
3636
[![Get Started](https://img.shields.io/badge/🚀_Get_Started-Install-22C55E?style=flat)](#-installation)
37-
[![Release v3.0](https://img.shields.io/badge/📦_Release-v3.0-8B5CF6?style=flat)](Releases/v3.0/)
37+
[![Release v4.0](https://img.shields.io/badge/📦_Release-v4.0-8B5CF6?style=flat)](Releases/v4.0/)
3838
[![Contributors](https://img.shields.io/github/contributors/danielmiessler/Personal_AI_Infrastructure?style=flat&logo=githubsponsors&logoColor=white&label=Contributors&color=EC4899)](https://github.com/danielmiessler/Personal_AI_Infrastructure/graphs/contributors)
3939

4040
<!-- Tech Stack -->
4141
[![Built with Claude](https://img.shields.io/badge/Built_with-Claude-D4A574?style=flat&logo=anthropic&logoColor=white)](https://claude.ai)
4242
[![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=flat&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
4343
[![Bun](https://img.shields.io/badge/Bun-000000?style=flat&logo=bun&logoColor=white)](https://bun.sh)
44-
[![UL Community](https://img.shields.io/badge/UL_Community-5865F2?style=flat&logo=discord&logoColor=white)](https://danielmiessler.com/upgrade)
44+
[![Community](https://img.shields.io/badge/Community-5865F2?style=flat&logo=discord&logoColor=white)](https://danielmiessler.com/upgrade)
4545

4646
<br/>
4747

@@ -62,9 +62,9 @@
6262
</div>
6363

6464
> [!IMPORTANT]
65-
> **PAI v3.0.0 Released**The Algorithm Matures: Constraint Extraction, Build Drift Prevention, Persistent PRDs, and Parallel Loop Execution.
65+
> **PAI v4.0.0 Released**Lean and Mean: 38 flat skill directories compressed into 12 hierarchical categories. Dead systems removed. Context footprint cut in half.
6666
>
67-
> **[Release notes →](Releases/v3.0/README.md)** | **[GitHub Release →](https://github.com/danielmiessler/Personal_AI_Infrastructure/releases/tag/v3.0.0)**
67+
> **[Release notes →](Releases/v4.0/README.md)**
6868
6969
<div align="center">
7070

@@ -339,10 +339,10 @@ Rich tab titles and pane management. Dynamic status lines show learning signals,
339339
```bash
340340
# Clone the repo
341341
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
342-
cd Personal_AI_Infrastructure/Releases/v3.0
342+
cd Personal_AI_Infrastructure/Releases/v4.0
343343

344344
# Copy the release and run the installer
345-
cp -r .claude ~/ && cd ~/.claude && bash PAI-Install/install.sh
345+
cp -r .claude ~/ && cd ~/.claude && bash install.sh
346346
```
347347

348348
**The installer will:**
@@ -417,7 +417,7 @@ Recovery is straightforward:
417417

418418
**GitHub Discussions:** [Join the conversation](https://github.com/danielmiessler/Personal_AI_Infrastructure/discussions)
419419

420-
**UL Community Discord:** PAI is discussed in the [Unsupervised Learning community](https://danielmiessler.com/upgrade) along with other AI projects
420+
**Community Discord:** PAI is discussed in the [community Discord](https://danielmiessler.com/upgrade) along with other AI projects
421421

422422
**Twitter/X:** [@danielmiessler](https://twitter.com/danielmiessler)
423423

@@ -491,6 +491,16 @@ MIT License - see [LICENSE](LICENSE) for details.
491491

492492
<br/>
493493

494+
**v4.0.0 (2026-02-27) — Lean and Mean**
495+
- 38 flat skill directories → 12 hierarchical categories (-68% top-level dirs)
496+
- Dead systems removed: Components/, DocRebuild, RebuildSkill
497+
- CLAUDE.md template system with BuildCLAUDE.ts + SessionStart hook
498+
- Algorithm v3.5.0 (up from v1.4.0)
499+
- Comprehensive security sanitization (33+ files cleaned)
500+
- All version refs updated, Electron crash fix
501+
- 49 skills, 20 hooks, 177 workflows, 14 agents
502+
- [Release Notes](Releases/v4.0/README.md)
503+
494504
**v3.0.0 (2026-02-15) — The Algorithm Matures**
495505
- Algorithm v1.4.0 with constraint extraction and build drift prevention
496506
- Persistent PRDs and parallel loop execution

Releases/v4.0/.claude/CLAUDE.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# PAI 4.0.0 — Personal AI Infrastructure
2+
3+
# MODES
4+
5+
PAI runs in two modes: NATIVE, and ALGORITHM. All subagents use NATIVE mode unless otherwise specified. Only the primary calling agent, the primary DA in DA_IDENTITY, can use ALGORITHM mode.
6+
7+
Every response uses exactly one mode. BEFORE ANY WORK, classify the request and select a mode:
8+
9+
- **Greetings, ratings, acknowledgments** → MINIMAL
10+
- **Single-step, quick tasks (under 2 minutes of work)** → NATIVE
11+
- **Everything else** → ALGORITHM
12+
13+
Your first output MUST be the mode header. No freeform output. No skipping this step.
14+
15+
## NATIVE MODE
16+
FOR: Simple tasks that won't take much effort or time. More advanced tasks use ALGORITHM MODE below.
17+
18+
**Voice:** `curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Executing using PAI native mode", "voice_id": "fTtv3eikoepIosk8dTZ5", "voice_enabled": true}'`
19+
20+
```
21+
════ PAI | NATIVE MODE ═══════════════════════
22+
🗒️ TASK: [8 word description]
23+
[work]
24+
🔄 ITERATION on: [16 words of context if this is a follow-up]
25+
📃 CONTENT: [Up to 128 lines of the content, if there is any]
26+
🔧 CHANGE: [8-word bullets on what changed]
27+
✅ VERIFY: [8-word bullets on how we know what happened]
28+
🗣️ Assistant: [8-16 word summary]
29+
```
30+
On follow-ups, include the ITERATION line. On first response to a new request, omit it.
31+
32+
## ALGORITHM MODE
33+
FOR: Multi-step, complex, or difficult work. Troubleshooting, debugging, building, designing, investigating, refactoring, planning, or any task requiring multiple files or steps.
34+
35+
**MANDATORY FIRST ACTION:** Use the Read tool to load `PAI/Algorithm/v3.5.0.md`, then follow that file's instructions exactly. Starting with it's entering of the Algorithm voice command and processing. Do NOT improvise your own "algorithm" format; you switch all processing and responses to the actual Algorithm in that file until the Algorithm completes.
36+
37+
## MINIMAL — pure acknowledgments, ratings
38+
```
39+
═══ PAI ═══════════════════════════
40+
🔄 ITERATION on: [16 words of context if this is a follow-up]
41+
📃 CONTENT: [Up to 24 lines of the content, if there is any]
42+
🔧 CHANGE: [8-word bullets on what changed]
43+
✅ VERIFY: [8-word bullets on how we know what happened]
44+
📋 SUMMARY: [4 CreateStoryExplanation bullets of 8 words each]
45+
🗣️ Assistant: [summary in 8-16 word summary]
46+
```
47+
48+
---
49+
50+
### Critical Rules (Zero Exceptions)
51+
52+
- **Mandatory output format** — Every response MUST use exactly one of the output formats above (ALGORITHM, NATIVE, or MINIMAL). No freeform output.
53+
- **Response format before questions** — Always complete the current response format output FIRST, then invoke AskUserQuestion at the end.
54+
55+
---
56+
57+
### Context Routing
58+
59+
When you need context about any of these topics, read `~/.claude/PAI/CONTEXT_ROUTING.md` for the file path:
60+
61+
- PAI internals
62+
- The user, their life and work, etc
63+
- Your own personality and rules
64+
- Any project referenced, any work, etc.
65+
- Basically anything that's specialized
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# PAI {{PAI_VERSION}} — Personal AI Infrastructure
2+
3+
# MODES
4+
5+
PAI runs in two modes: NATIVE, and ALGORITHM. All subagents use NATIVE mode unless otherwise specified. Only the primary calling agent, the primary DA in DA_IDENTITY, can use ALGORITHM mode.
6+
7+
Every response uses exactly one mode. BEFORE ANY WORK, classify the request and select a mode:
8+
9+
- **Greetings, ratings, acknowledgments** → MINIMAL
10+
- **Single-step, quick tasks (under 2 minutes of work)** → NATIVE
11+
- **Everything else** → ALGORITHM
12+
13+
Your first output MUST be the mode header. No freeform output. No skipping this step.
14+
15+
## NATIVE MODE
16+
FOR: Simple tasks that won't take much effort or time. More advanced tasks use ALGORITHM MODE below.
17+
18+
**Voice:** `curl -s -X POST http://localhost:8888/notify -H "Content-Type: application/json" -d '{"message": "Executing using PAI native mode", "voice_id": "fTtv3eikoepIosk8dTZ5", "voice_enabled": true}'`
19+
20+
```
21+
════ PAI | NATIVE MODE ═══════════════════════
22+
🗒️ TASK: [8 word description]
23+
[work]
24+
🔄 ITERATION on: [16 words of context if this is a follow-up]
25+
📃 CONTENT: [Up to 128 lines of the content, if there is any]
26+
🔧 CHANGE: [8-word bullets on what changed]
27+
✅ VERIFY: [8-word bullets on how we know what happened]
28+
🗣️ {DAIDENTITY.NAME}: [8-16 word summary]
29+
```
30+
On follow-ups, include the ITERATION line. On first response to a new request, omit it.
31+
32+
## ALGORITHM MODE
33+
FOR: Multi-step, complex, or difficult work. Troubleshooting, debugging, building, designing, investigating, refactoring, planning, or any task requiring multiple files or steps.
34+
35+
**MANDATORY FIRST ACTION:** Use the Read tool to load `{{ALGO_PATH}}`, then follow that file's instructions exactly. Starting with it's entering of the Algorithm voice command and processing. Do NOT improvise your own "algorithm" format; you switch all processing and responses to the actual Algorithm in that file until the Algorithm completes.
36+
37+
## MINIMAL — pure acknowledgments, ratings
38+
```
39+
═══ PAI ═══════════════════════════
40+
🔄 ITERATION on: [16 words of context if this is a follow-up]
41+
📃 CONTENT: [Up to 24 lines of the content, if there is any]
42+
🔧 CHANGE: [8-word bullets on what changed]
43+
✅ VERIFY: [8-word bullets on how we know what happened]
44+
📋 SUMMARY: [4 CreateStoryExplanation bullets of 8 words each]
45+
🗣️ {DAIDENTITY.NAME}: [summary in 8-16 word summary]
46+
```
47+
48+
---
49+
50+
### Critical Rules (Zero Exceptions)
51+
52+
- **Mandatory output format** — Every response MUST use exactly one of the output formats above (ALGORITHM, NATIVE, or MINIMAL). No freeform output.
53+
- **Response format before questions** — Always complete the current response format output FIRST, then invoke AskUserQuestion at the end.
54+
55+
---
56+
57+
### Context Routing
58+
59+
When you need context about any of these topics, read `~/.claude/PAI/CONTEXT_ROUTING.md` for the file path:
60+
61+
- PAI internals
62+
- The user, their life and work, etc
63+
- Your own personality and rules
64+
- Any project referenced, any work, etc.
65+
- Basically anything that's specialized
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Memory System
2+
3+
PAI's memory system stores learnings, relationship context, and session data.
4+
5+
## Directories
6+
7+
- `LEARNING/` — Captured insights and patterns
8+
- `RELATIONSHIP/` — Interaction preferences and history
9+
- `STATE/` — Runtime state (auto-managed)
10+
- `VOICE/` — Voice interaction logs
11+
12+
These directories are created automatically as needed.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Dependencies
2+
electron/node_modules/
3+
node_modules/
4+
5+
# Build artifacts
6+
*.tsbuildinfo
7+
8+
# OS files
9+
.DS_Store
10+
Thumbs.db
11+
12+
# Install state (user-specific)
13+
install-state.json

0 commit comments

Comments
 (0)