Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

PAI v4.0.3 — Community PR Patch

4 community-contributed fixes: JSON parsing, dead references, portability, upgrade migration.

Skills Categories Hooks Workflows Tips Algorithm


What Changed

Community-contributed fixes from open PRs — no new features, no breaking changes.

Inference & Parsing

PR Fix
#800 Inference.ts JSON parsing only matched objects {} — now handles arrays [] too, with validation via JSON.parse

Documentation & Portability

PR Fix
#836 CONTEXT_ROUTING.md had 29 dead references to files removed in v4.0 — consolidated to 4 README pointers
#817 WorldThreatModelHarness hardcoded ~/.claude/ path — now uses $PAI_DIR for portability

Installer

PR Fix
#846 Upgrading from v2.5/v3.0 stranded user context at skills/PAI/USER/ — installer now migrates files to PAI/USER/ and creates symlinks for backwards compatibility

Files Changed (from v4.0.2)

File Fixes
PAI/Tools/Inference.ts #800 (JSON array parsing)
PAI/CONTEXT_ROUTING.md #836 (dead reference cleanup)
skills/Thinking/WorldThreatModelHarness/SKILL.md #817 (PAI_DIR portability)
PAI-Install/engine/actions.ts #846 (user context migration)

Installation

Fresh Install

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

Upgrading from v4.0.x

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

# 2. Clone and copy
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
cd ~/.claude && bash install.sh

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

Quick Manual Upgrade (from v4.0.2)

Copy these files from this release over your existing ones:

  • PAI/Tools/Inference.ts — JSON array parsing fix
  • PAI/CONTEXT_ROUTING.md — dead reference cleanup
  • skills/Thinking/WorldThreatModelHarness/SKILL.md — PAI_DIR portability
  • PAI-Install/engine/actions.ts — user context migration for upgrades

Upgrading from Older Versions

See the main README for the general upgrade procedure. The installer auto-detects existing installations regardless of which version you're upgrading from.