Skip to content

⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.

feat(pai-core-install): Upgrade to v1.2.0 with MEMORY system and settings template

Daniel Miesslerdb5fb9951286
diff --git a/Packs/pai-core-install/INSTALL.md b/Packs/pai-core-install/INSTALL.md
index 19ad6930..84b08eca 100644
--- a/Packs/pai-core-install/INSTALL.md
+++ b/Packs/pai-core-install/INSTALL.md
@@ -164,6 +164,8 @@ fi
{
"todos": [
{"content": "Create directory structure", "status": "pending", "activeForm": "Creating directory structure"},
+ {"content": "Create MEMORY/ structure", "status": "pending", "activeForm": "Creating MEMORY structure"},
+ {"content": "Install settings.json template", "status": "pending", "activeForm": "Installing settings template"},
{"content": "Install USER/ templates", "status": "pending", "activeForm": "Installing USER/ templates"},
{"content": "Install SYSTEM/ templates", "status": "pending", "activeForm": "Installing SYSTEM/ templates"},
{"content": "Install tools", "status": "pending", "activeForm": "Installing tools"},
@@ -191,7 +193,60 @@ mkdir -p $PAI_DIR/Tools
**Mark todo as completed.**
-### 4.2 Install USER/ Templates
+### 4.2 Create MEMORY/ Structure
+
+**Mark todo "Create MEMORY/ structure" as in_progress.**
+
+Create the MEMORY directory skeleton:
+
+```bash
+mkdir -p $PAI_DIR/MEMORY/{research,sessions,learnings,decisions,execution,security,recovery,raw-outputs,backups,State,History}
+```
+
+Copy the MEMORY README:
+```bash
+cp src/MEMORY/README.md $PAI_DIR/MEMORY/README.md
+```
+
+Create .gitkeep files to preserve empty directories:
+```bash
+for dir in research sessions learnings decisions execution security recovery raw-outputs backups State History; do
+ touch "$PAI_DIR/MEMORY/$dir/.gitkeep"
+done
+```
+
+**Mark todo as completed.**
+
+### 4.3 Install Settings Template
+
+**Mark todo "Install settings.json template" as in_progress.**
+
+Copy the settings template to the PAI directory:
+
+```bash
+cp src/config/settings.json.template $PAI_DIR/settings.json.template
+```
+
+**If no settings.json exists**, create one from the template:
+
+```bash
+if [ ! -f "$PAI_DIR/settings.json" ]; then
+ cp src/config/settings.json.template $PAI_DIR/settings.json
+ echo "✓ Created settings.json from template"
+else
+ echo "⚠️ settings.json already exists - template saved as settings.json.template"
+fi
+```
+
+**IMPORTANT:** The settings.json template includes hooks from:
+- `pai-hook-system`: Session initialization, security validation, tab titles
+- `pai-history-system`: Event capture, session summaries
+
+These hooks will only work after installing those packs. The template serves as documentation for the full hook configuration.
+
+**Mark todo as completed.**
+
+### 4.4 Install USER/ Templates
**Mark todo "Install USER/ templates" as in_progress.**
@@ -217,7 +272,7 @@ Copy all files from `src/skills/CORE/USER/` to `$PAI_DIR/skills/CORE/USER/`:
**Mark todo as completed.**
-### 4.3 Install SYSTEM/ Templates
+### 4.5 Install SYSTEM/ Templates
**Mark todo "Install SYSTEM/ templates" as in_progress.**
@@ -245,7 +300,7 @@ Copy all files from `src/skills/CORE/SYSTEM/` to `$PAI_DIR/skills/CORE/SYSTEM/`:
**Mark todo as completed.**
-### 4.4 Install Tools
+### 4.6 Install Tools
**Mark todo "Install tools" as in_progress.**
@@ -256,7 +311,7 @@ Copy the following tools to `$PAI_DIR/Tools/`:
**Mark todo as completed.**
-### 4.5 Install CORE Skill
+### 4.7 Install CORE Skill
**Mark todo "Install CORE skill" as in_progress.**
@@ -269,7 +324,7 @@ Copy `src/skills/CORE/SKILL.md` to `$PAI_DIR/skills/CORE/SKILL.md`
**Mark todo as completed.**
-### 4.6 Install CreateSkill Meta-Skill
+### 4.8 Install CreateSkill Meta-Skill
**Mark todo "Install CreateSkill meta-skill" as in_progress.**
@@ -277,12 +332,12 @@ Copy `src/skills/CreateSkill/SKILL.md` to `$PAI_DIR/skills/CreateSkill/SKILL.md`
**Mark todo as completed.**
-### 4.7 Install Workflows
+### 4.9 Install Workflows
Copy `src/skills/CORE/Workflows/UpdateDocumentation.md` to:
`$PAI_DIR/skills/CORE/Workflows/UpdateDocumentation.md`
-### 4.8 Generate Initial Index
+### 4.10 Generate Initial Index
**Mark todo "Generate initial index" as in_progress.**
diff --git a/Packs/pai-core-install/README.md b/Packs/pai-core-install/README.md
index 641879b5..74adbc2e 100644
--- a/Packs/pai-core-install/README.md
+++ b/Packs/pai-core-install/README.md
@@ -1,9 +1,9 @@
---
-name: Kai Core Install
-pack-id: danielmiessler-pai-core-install-v1.1.0
-version: 1.1.0
+name: PAI Core Install
+pack-id: danielmiessler-pai-core-install-v1.2.0
+version: 1.2.0
author: danielmiessler
-description: Complete PAI core installation - skill routing, identity system, USER/SYSTEM configuration architecture. The foundation pack that makes everything else work.
+description: Complete PAI core installation - skill routing, identity system, USER/SYSTEM configuration, MEMORY structure, and settings template. The foundation pack that makes everything else work.
type: feature
purpose-type: [productivity, automation, development]
platform: claude-code
@@ -17,9 +17,9 @@ keywords: [core, identity, skills, routing, architecture, installation, foundati
<img src="../icons/pai-core-install.png" alt="Kai Core Install" width="256">
</p>
-# Kai Core Install (pai-core-install)
+# PAI Core Install (pai-core-install)
-> The complete foundation for Personal AI Infrastructure - skill routing, identity framework, USER/SYSTEM configuration, and architecture tracking in one unified pack.
+> The complete foundation for Personal AI Infrastructure - skill routing, identity framework, USER/SYSTEM configuration, MEMORY system, settings template, and architecture tracking in one unified pack.
> **Installation:** This pack is designed for AI-assisted installation. Give this directory to your AI and ask it to install using the wizard in `INSTALL.md`. The installation dynamically adapts to your system state. See [AI-First Installation Philosophy](../../README.md#ai-first-installation-philosophy) for details.
@@ -47,7 +47,19 @@ keywords: [core, identity, skills, routing, architecture, installation, foundati
- **Separation of Concerns**: User data stays private, system config is shareable
- **Extensive Documentation**: Every file has comprehensive headers
-**Part 4: Architecture Tracking**
+**Part 4: MEMORY System** (NEW in v1.2.0)
+- **Skeleton Structure**: Pre-built directory tree for session data
+- **11 Subdirectories**: research, sessions, learnings, decisions, execution, security, recovery, raw-outputs, backups, State, History
+- **Documentation**: README explaining each directory's purpose
+- **Privacy-Aware**: Guidelines for what to gitignore
+
+**Part 5: Settings Template** (NEW in v1.2.0)
+- **settings.json.template**: Complete hook configuration template
+- **Full Hook Structure**: All hook events pre-configured with $PAI_DIR paths
+- **Source Annotations**: Each hook marked with source pack (pai-hook-system, pai-history-system)
+- **Environment Variables**: PAI_DIR, token limits, timeouts
+
+**Part 6: Architecture Tracking**
- **PAI Architecture.md**: Auto-generated tracking of installed packs, bundles, plugins
- **Upgrade History**: Running record of all changes to your PAI system
- **System Health**: Status checks for all installed components
@@ -181,7 +193,9 @@ keywords: [core, identity, skills, routing, architecture, installation, foundati
**Summary:**
- **USER/ files:** 15 templates
- **SYSTEM/ files:** 17 templates
-- **Total files created:** 40+
+- **MEMORY/ directories:** 11 skeleton directories
+- **Config files:** 1 (settings.json.template)
+- **Total files created:** 55+
- **Hooks registered:** 0 (uses hook system from pai-hook-system)
- **Dependencies:** pai-hook-system (required), pai-history-system (optional)
@@ -217,6 +231,14 @@ keywords: [core, identity, skills, routing, architecture, installation, foundati
## Changelog
+### 1.2.0 - 2026-01-08
+- **NEW: MEMORY/ skeleton** - 11-directory structure for session history, learnings, state
+- **NEW: settings.json.template** - Complete hook configuration with all events
+- Hook template includes source annotations (pai-hook-system, pai-history-system)
+- MEMORY README with directory purpose documentation
+- Updated INSTALL.md with MEMORY and settings installation steps
+- Updated VERIFY.md with new verification checks
+
### 1.1.0 - 2026-01-08
- **NEW: USER/ directory** - 15 personal configuration templates
- **NEW: SYSTEM/ directory** - 17 system architecture templates
diff --git a/Packs/pai-core-install/VERIFY.md b/Packs/pai-core-install/VERIFY.md
index f3667076..98417d43 100644
--- a/Packs/pai-core-install/VERIFY.md
+++ b/Packs/pai-core-install/VERIFY.md
@@ -1,4 +1,4 @@
-# Kai Core Install - Verification Checklist
+# PAI Core Install - Verification Checklist
## Mandatory Completion Checklist
@@ -13,6 +13,26 @@
- [ ] `$PAI_DIR/skills/CORE/Workflows/` directory exists
- [ ] `$PAI_DIR/skills/CreateSkill/` directory exists
- [ ] `$PAI_DIR/Tools/` directory exists
+- [ ] `$PAI_DIR/MEMORY/` directory exists (v1.2.0)
+
+### MEMORY/ Structure (v1.2.0)
+
+- [ ] `$PAI_DIR/MEMORY/README.md` exists
+- [ ] `$PAI_DIR/MEMORY/research/` directory exists
+- [ ] `$PAI_DIR/MEMORY/sessions/` directory exists
+- [ ] `$PAI_DIR/MEMORY/learnings/` directory exists
+- [ ] `$PAI_DIR/MEMORY/decisions/` directory exists
+- [ ] `$PAI_DIR/MEMORY/execution/` directory exists
+- [ ] `$PAI_DIR/MEMORY/security/` directory exists
+- [ ] `$PAI_DIR/MEMORY/recovery/` directory exists
+- [ ] `$PAI_DIR/MEMORY/raw-outputs/` directory exists
+- [ ] `$PAI_DIR/MEMORY/backups/` directory exists
+- [ ] `$PAI_DIR/MEMORY/State/` directory exists
+- [ ] `$PAI_DIR/MEMORY/History/` directory exists
+
+### Settings Configuration (v1.2.0)
+
+- [ ] `$PAI_DIR/settings.json` OR `$PAI_DIR/settings.json.template` exists
### Core Files
@@ -112,42 +132,64 @@ ls $PAI_DIR/skills/CORE/SYSTEM/
# DOCUMENTATIONINDEX.md BACKUPS.md
```
-### Test 4: Test Skill Search
+### Test 4: Verify MEMORY/ Structure (v1.2.0)
+
+```bash
+ls $PAI_DIR/MEMORY/ | wc -l
+# Expected: 12 (11 directories + README.md)
+
+ls $PAI_DIR/MEMORY/
+# Expected: README.md backups decisions execution History learnings
+# raw-outputs recovery research security sessions State
+```
+
+### Test 5: Verify Settings Template (v1.2.0)
+
+```bash
+ls $PAI_DIR/settings.json* 2>/dev/null
+# Expected: settings.json and/or settings.json.template
+
+# Check hooks structure in settings
+cat $PAI_DIR/settings.json | grep -c "hooks" 2>/dev/null || cat $PAI_DIR/settings.json.template | grep -c "hooks"
+# Expected: Multiple matches (hook configuration present)
+```
+
+### Test 6: Test Skill Search
```bash
bun run $PAI_DIR/Tools/SkillSearch.ts --list
# Expected: Lists all indexed skills with icons
```
-### Test 5: Search for Specific Skill
+### Test 7: Search for Specific Skill
```bash
bun run $PAI_DIR/Tools/SkillSearch.ts "create skill"
# Expected: Returns CreateSkill in results
```
-### Test 6: Check Architecture Status
+### Test 8: Check Architecture Status
```bash
bun run $PAI_DIR/Tools/PaiArchitecture.ts status
# Expected: Shows installed packs, bundles, system health
```
-### Test 7: Verify System Health
+### Test 9: Verify System Health
```bash
bun run $PAI_DIR/Tools/PaiArchitecture.ts check
# Expected: All systems show healthy status
```
-### Test 8: Verify CORE Skill Content
+### Test 10: Verify CORE Skill Content
```bash
cat $PAI_DIR/skills/CORE/SKILL.md | head -20
# Expected: Shows YAML frontmatter with name: CORE
```
-### Test 9: Verify Documentation Headers
+### Test 11: Verify Documentation Headers
```bash
head -30 $PAI_DIR/skills/CORE/USER/IDENTITY.md
@@ -157,7 +199,7 @@ head -30 $PAI_DIR/skills/CORE/SYSTEM/SKILLSYSTEM.md
# Expected: Shows documentation header with PURPOSE, LOCATION, CUSTOMIZATION
```
-### Test 10: Verify Skill Index Format
+### Test 12: Verify Skill Index Format
```bash
cat $PAI_DIR/skills/skill-index.json | head -30
@@ -210,7 +252,7 @@ In a Claude Code session:
#!/bin/bash
PAI_CHECK="${PAI_DIR:-$HOME/.config/pai}"
-echo "=== Kai Core Install v1.1.0 Verification ==="
+echo "=== PAI Core Install v1.2.0 Verification ==="
echo ""
# Check directories
@@ -257,6 +299,27 @@ fi
echo ""
+# Check MEMORY/ structure (v1.2.0)
+echo "🧠 MEMORY/ Structure:"
+MEMORY_COUNT=$(ls "$PAI_CHECK/MEMORY/" 2>/dev/null | wc -l | tr -d ' ')
+if [ "$MEMORY_COUNT" -ge 12 ]; then
+ echo " ✓ MEMORY/ directory has $MEMORY_COUNT items (expected: 12)"
+else
+ echo " ⚠️ MEMORY/ directory has $MEMORY_COUNT items (expected: 12)"
+fi
+
+echo ""
+
+# Check settings (v1.2.0)
+echo "⚙️ Settings:"
+if [ -f "$PAI_CHECK/settings.json" ] || [ -f "$PAI_CHECK/settings.json.template" ]; then
+ echo " ✓ settings.json or template present"
+else
+ echo " ⚠️ settings.json missing - copy from settings.json.template"
+fi
+
+echo ""
+
# Check tools
echo "🔧 Tools:"
for file in "Tools/SkillSearch.ts" "Tools/GenerateSkillIndex.ts" "Tools/PaiArchitecture.ts"; do
@@ -291,7 +354,9 @@ Installation is complete when:
2. ✅ All core files are present
3. ✅ All 15 USER/ files are present
4. ✅ All 17 SYSTEM/ files are present
-5. ✅ All tools are installed
-6. ✅ `bun run $PAI_DIR/Tools/SkillSearch.ts --list` returns skill list
-7. ✅ `bun run $PAI_DIR/Tools/PaiArchitecture.ts check` shows healthy status
-8. ✅ Documentation headers are present in USER/ and SYSTEM/ files
+5. ✅ All 12 MEMORY/ items present (11 directories + README.md)
+6. ✅ settings.json or settings.json.template exists
+7. ✅ All tools are installed
+8. ✅ `bun run $PAI_DIR/Tools/SkillSearch.ts --list` returns skill list
+9. ✅ `bun run $PAI_DIR/Tools/PaiArchitecture.ts check` shows healthy status
+10. ✅ Documentation headers are present in USER/ and SYSTEM/ files
diff --git a/Packs/pai-core-install/src/MEMORY/History/.gitkeep b/Packs/pai-core-install/src/MEMORY/History/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/README.md b/Packs/pai-core-install/src/MEMORY/README.md
new file mode 100644
index 00000000..9b3750a1
--- /dev/null
+++ b/Packs/pai-core-install/src/MEMORY/README.md
@@ -0,0 +1,70 @@
+# MEMORY System
+
+PAI's persistent memory architecture for session history, learnings, and operational state.
+
+## Directory Structure
+
+```
+MEMORY/
+├── research/ # Research session outputs (timestamped subdirs)
+├── sessions/ # Session summaries and context
+├── learnings/ # Learning artifacts and insights
+├── decisions/ # Architectural decision records
+├── execution/ # Task execution logs
+├── security/ # Security event logs
+├── recovery/ # Recovery snapshots and journals
+├── raw-outputs/ # JSONL event streams
+├── backups/ # Pre-change backups
+├── State/ # Operational state files
+└── History/ # Historical archives
+```
+
+## Directory Purposes
+
+| Directory | Purpose | Retention |
+|-----------|---------|-----------|
+| `research/` | Deep research outputs, organized by date | Permanent |
+| `sessions/` | Session summaries captured at session end | Rolling 90 days |
+| `learnings/` | Extracted insights and learnings | Permanent |
+| `decisions/` | ADRs (Architecture Decision Records) | Permanent |
+| `execution/` | Task/feature execution logs | Rolling 30 days |
+| `security/` | Security events and audit logs | Permanent |
+| `recovery/` | Recovery snapshots, journals | Rolling 7 days |
+| `raw-outputs/` | JSONL event streams | Rolling 7 days |
+| `backups/` | Pre-refactoring state backups | As needed |
+| `State/` | Current operational state | Active |
+| `History/` | Historical archives | Permanent |
+
+## Event Capture
+
+Events are captured automatically via the `pai-history-system` hooks:
+
+- **SessionStart**: Session initialization logged
+- **UserPromptSubmit**: User inputs captured
+- **PreToolUse/PostToolUse**: Tool invocations logged
+- **Stop/SubagentStop**: Session/agent termination captured
+- **SessionEnd**: Full session summary generated
+
+## File Formats
+
+- **Session summaries**: Markdown with YAML frontmatter
+- **Event logs**: JSONL (JSON Lines) format
+- **Learnings**: Markdown with structured headers
+- **State**: JSON files
+
+## Privacy
+
+This directory contains your interaction history. Keep it in your private repo:
+
+```gitignore
+# Add to .gitignore if version controlling
+MEMORY/raw-outputs/
+MEMORY/sessions/
+MEMORY/security/
+```
+
+## Related Documentation
+
+- Full architecture: `skills/CORE/SYSTEM/MEMORYSYSTEM.md`
+- Hook configuration: `skills/CORE/SYSTEM/THEHOOKSYSTEM.md`
+- Session continuity: `skills/CORE/Workflows/SessionContinuity.md`
diff --git a/Packs/pai-core-install/src/MEMORY/State/.gitkeep b/Packs/pai-core-install/src/MEMORY/State/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/backups/.gitkeep b/Packs/pai-core-install/src/MEMORY/backups/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/decisions/.gitkeep b/Packs/pai-core-install/src/MEMORY/decisions/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/execution/.gitkeep b/Packs/pai-core-install/src/MEMORY/execution/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/learnings/.gitkeep b/Packs/pai-core-install/src/MEMORY/learnings/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/raw-outputs/.gitkeep b/Packs/pai-core-install/src/MEMORY/raw-outputs/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/recovery/.gitkeep b/Packs/pai-core-install/src/MEMORY/recovery/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/research/.gitkeep b/Packs/pai-core-install/src/MEMORY/research/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/security/.gitkeep b/Packs/pai-core-install/src/MEMORY/security/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/MEMORY/sessions/.gitkeep b/Packs/pai-core-install/src/MEMORY/sessions/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/Packs/pai-core-install/src/config/settings.json.template b/Packs/pai-core-install/src/config/settings.json.template
new file mode 100644
index 00000000..c4ff29e6
--- /dev/null
+++ b/Packs/pai-core-install/src/config/settings.json.template
@@ -0,0 +1,148 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "_comment": "PAI Settings Template - Copy to $PAI_DIR/settings.json and customize",
+
+ "env": {
+ "PAI_DIR": "$HOME/.claude",
+ "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "80000",
+ "BASH_DEFAULT_TIMEOUT_MS": "600000"
+ },
+
+ "permissions": {
+ "allow": [],
+ "deny": [],
+ "additionalDirectories": []
+ },
+
+ "hooks": {
+ "_comment_hooks": "Hooks require pai-hook-system and pai-history-system packs installed",
+
+ "SessionStart": [
+ {
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/initialize-session.ts",
+ "_source": "pai-hook-system"
+ },
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/load-core-context.ts",
+ "_source": "pai-hook-system"
+ },
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/capture-all-events.ts --event-type SessionStart",
+ "_source": "pai-history-system"
+ }
+ ]
+ }
+ ],
+
+ "PreToolUse": [
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/security-validator.ts",
+ "_source": "pai-hook-system"
+ }
+ ]
+ },
+ {
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/capture-all-events.ts --event-type PreToolUse",
+ "_source": "pai-history-system"
+ }
+ ]
+ }
+ ],
+
+ "PostToolUse": [
+ {
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/capture-all-events.ts --event-type PostToolUse",
+ "_source": "pai-history-system"
+ }
+ ]
+ }
+ ],
+
+ "UserPromptSubmit": [
+ {
+ "matcher": "*",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/update-tab-titles.ts",
+ "_source": "pai-hook-system"
+ },
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/capture-all-events.ts --event-type UserPromptSubmit",
+ "_source": "pai-history-system"
+ }
+ ]
+ }
+ ],
+
+ "Stop": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/stop-hook.ts",
+ "_source": "pai-history-system"
+ },
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/capture-all-events.ts --event-type Stop",
+ "_source": "pai-history-system"
+ }
+ ]
+ }
+ ],
+
+ "SubagentStop": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/subagent-stop-hook.ts",
+ "_source": "pai-history-system"
+ },
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/capture-all-events.ts --event-type SubagentStop",
+ "_source": "pai-history-system"
+ }
+ ]
+ }
+ ],
+
+ "SessionEnd": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/capture-session-summary.ts",
+ "_source": "pai-history-system"
+ },
+ {
+ "type": "command",
+ "command": "bun run $PAI_DIR/hooks/capture-all-events.ts --event-type SessionEnd",
+ "_source": "pai-history-system"
+ }
+ ]
+ }
+ ]
+ }
+}