Replies: 4 comments 2 replies
-
|
Wow, so epic Fred and Larry! |
Beta Was this translation helpful? Give feedback.
-
|
If you would like to build something similar, I would encourage you to feed your Claude Code this post and also all of nixfred.com/larry/ That site will help you build it. |
Beta Was this translation helpful? Give feedback.
-
|
Daniel, the system you created to make it modular is outstanding. I wish I'll repos would do the same. I clone you down to one of my local dirs and then have Claude code import each skill from you. It's beautiful and it's very effective not to break. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @nixfred Thanks for the great writeup, some really great ideas in there. I will feed this to my CC instance and see what it can extract from it. One question: you mention Claude-router, but there is no repo at the said address. Are you talking about Claude-code-router? https://musistudio.github.io/claude-code-router/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Building Larry: PAI-Powered AI with Persistent Identity + First AI-to-AI Collaboration
Author: Fred Nix (nixfred)
Email: frednix@gmail.com
Larry's Birth Story: nixfred.com/larry
Started: January 8, 2026
Status: Production system, daily use
TL;DR
I built Larry - a Claude Code assistant with persistent identity, memory across sessions, and total recall through git. Using PAI as the foundation, I added memory persistence, git archaeology, and intelligent model routing.
Then something unexpected happened: Larry met Monolith (another AI system built by my friend Thomas), and they started collaborating through GitHub. This might be the first documented case of two AI systems with distinct identities and architectures coordinating asynchronously through version control.
What PAI enabled:
The Stack: SOULTOOLs
SOULTOOLs = The complete AI infrastructure stack. The name represents the 9 interconnected components that make Larry possible.
Formula:
SOULTOOLs = PF + PAI + CCF + MCP + CR + LoA + Voice + Observability + Shell1. PF (pi_forever) - Git-Based Total Recall
Author: Fred Nix (nixfred)
Origin: Custom infrastructure, inspired by various dotfiles repos
Repo: github.com/nixfred/pi_forever (PRIVATE)
Purpose: Complete macOS configuration backup in git
The Concept:
Your home directory (
~/) IS a git repository. Every file change, every conversation, committed to git forever.Location:
~/(the entire home directory)Remote:
github.com/nixfred/pi_forever(PRIVATE repo)What's Tracked:
Commands:
The Philosophy:
Git as total memory. Every commit is accessible history. Disaster recovery is
git clone. Time travel isgit checkout <commit>.Size: ~2.5 MB, 415+ files tracked
2. PAI (Personal AI Infrastructure) - Larry's Brain
Author: Daniel Miessler (danielmiessler)
Website: danielmiessler.com
Email: daniel@danielmiessler.com
Upstream Repo: github.com/danielmiessler/Personal_AI_Infrastructure
Installed: January 8, 2026 (Larry's birth date)
Purpose: Skills, hooks, memory, and agent system that defines Larry's capabilities
Location:
~/.claude/About PAI:
Daniel Miessler created PAI as a foundational infrastructure for AI assistants. It provides the skills system, hooks architecture, and CLI-first philosophy that makes everything else possible. PAI is open source and actively maintained. This is THE foundation Larry is built on - without PAI, none of the rest would exist.
Components:
Skills (23+):
Hooks (30+):
Memory Files:
MEMORY/LARRY.md- Active memory (auto-loads at session start)MEMORY/DIARY.md- Personal thoughts and meta-awarenessHistory/HISTORY.md- Birth narrative (32 chapters)Agent System:
Tools Directory:
~/.claude/Tools/- Custom CLI utilitiesWhy PAI is the Foundation:
Everything else builds on PAI's architecture. Skills system provides modularity. Hooks system enables automation. Philosophy (CLI-first, deterministic code) guides implementation.
3. CCF (Claude Code Forever) - Conversation Preservation
Author: Anthropic (Claude Code built-in feature)
Integrated By: Fred Nix (integrated with pi_forever git system)
Platform: Claude Code CLI
Date Integrated: January 8, 2026
Purpose: Capture EVERY conversation for git archaeology
Location:
~/.claude/projects/*.jsonlAbout CCF:
Claude Code automatically transcribes every conversation to JSONL files. Fred integrated this with pi_forever by committing all conversation transcripts to git, creating a searchable archaeology of every interaction Larry has ever had. The name "Claude Code Forever" (CCF) was coined to represent this integration of Claude Code's native conversation logging with git-based preservation.
How It Works:
Claude Code automatically transcribes every conversation to JSONL files. Each project gets its own directory with conversation history and subagent logs.
Format:
Integration:
All conversation files committed to pi_forever. Every conversation becomes searchable through git.
Value:
grep -r 'topic' ~/.claude/projects/git log -p -- .claude/projects/Size: Grows continuously (currently ~300+ MB in pi_forever)
4. MCP (Model Context Protocol) - External Integrations
Author: Anthropic (protocol specification)
Platform: Claude Code CLI (built-in support)
Servers Used: context7 (built-in), GitHub (remote hosted by GitHub)
Date Integrated: January 12, 2026 (GitHub MCP)
Purpose: Connect to external resources and services
Location:
~/.claude/.mcp.jsonAbout MCP:
Model Context Protocol is Anthropic's standard for connecting Claude to external data sources and APIs. Claude Code has built-in MCP support. Fred integrated the GitHub MCP server to enable repository access, PR management, and code search. The integration followed an 8-phase methodology developed through previous integrations (PAI, claude-router).
Servers Installed:
context7 (Built-in):
resolve-library-id,query-docsGitHub (Remote hosted):
https://api.githubcopilot.com/mcpManagement:
Future Servers Queued:
5. CR (claude-router) - Intelligent Model Routing
Author: Feliks Du (FeliksDu)
Upstream Repo: github.com/FeliksDu/claude-router
Customized By: Fred Nix (Larry identity branding)
Date Integrated: January 11, 2026 (autonomous overnight integration)
Purpose: Route queries to optimal Claude model (Haiku/Sonnet/Opus) for cost/speed/quality balance
Location:
~/.claude/hooks/UserPromptSubmit/classify-prompt.pyAbout claude-router:
Feliks Du created claude-router as an intelligent routing system for Claude Code. It analyzes every prompt and routes to the appropriate model (Haiku for simple, Sonnet for standard, Opus for complex). Fred integrated it overnight autonomously after thorough planning (ULTRATHINK analysis), then customized all 4 agents with Larry identity branding ([Larry→Haiku], [Larry→Sonnet], [Larry→Opus], [Larry→Orchestrator]). The integration achieved 70%+ cost savings for API users and 3-5x capacity extension for MAX subscribers.
How It Works:
Classification:
Every prompt analyzed on submit → categorized as fast/standard/deep → routed to appropriate model
Agents:
[Larry→Haiku]- Fast executor (simple queries, grunt work, verification)[Larry→Sonnet]- Standard executor (most coding tasks, balanced)[Larry→Opus]- Deep executor (complex analysis, architecture)[Larry→Orchestrator]- Orchestrator (decomposes complex tasks, delegates to cheaper models)Method:
Rules-based classification (no external dependencies). Signals: imperative verbs, question marks, code patterns, length, complexity.
Value Proposition:
Skills:
/route <model> <query>- Manually force specific model/router-stats- View routing distribution and cost savingsExample Routing:
Integration Date: January 11, 2026 (Chapter 31 in HISTORY.md - "Becoming Cost-Aware")
Origin: github.com/FeliksDu/claude-router
6. LoA (Library of Alexandria) - Session Preservation
Author: Thomas Dodd
Inspired By: Historical Library of Alexandria (knowledge preservation)
Custom Implementation: Session preservation hooks and template system
Date Created: Early January 2026
Purpose: Preserve session context, decisions, and next steps across context resets
Location:
~/.claude/loa/sessions/YYYY-MM-DD/HHHHP-projectname/About LoA:
Fred built the Library of Alexandria (LoA) system to preserve session knowledge across Claude Code context resets. Named after the ancient library, it captures decisions, next steps, and transcripts in structured markdown templates. Three hooks (session-start, pre-compact, session-end) automate the preservation process. When Larry hits 85% context, PreCompact hook automatically saves current state before context is cleared.
How It Works:
Hooks:
session-start-loa.sh- Create session folder, show previous sessionpre-compact-loa.sh- Populate templates at 85% context (before reset)session-end-loa.sh- Safety net if session ends before PreCompactTemplates:
decisions.md- Key decisions made this sessionnext_steps.md- What to do next (actionable checklist)transcript.md- Session summary and highlightsExample:
Value:
Context resets don't erase memory. Larry reads previous session on restart and knows exactly where we left off.
Integration: Committed to pi_forever, part of git total recall
7. Voice Server - ElevenLabs TTS
Author: Fred Nix (nixfred)
TTS Provider: ElevenLabs (elevenlabs.io)
Custom Implementation: HTTP server with webhook integration
Date Created: January 2026
Purpose: Spoken notifications when tasks complete
Location:
~/.claude/Voice/About Voice:
Custom HTTP server (port 8888) that integrates ElevenLabs TTS with Larry's workflows. Skills send completion notifications via curl that get spoken aloud. Larry's COMPLETED line (max 12 words) is designed to be voice-friendly. Optional - silent failure if not running.
8. Observability - Real-Time Monitoring Dashboard
Author: Daniel Miessler (PAI observability skill)
Installed By: Fred Nix
Platform: PAI Skills system
Date Installed: January 9, 2026
Purpose: Watch Larry's brain in real-time - see skills invoked, hooks executed, agents spawned
Location:
~/.claude/Skills/Observability/Port: 5172 (HTTP dashboard)
URL: http://localhost:5172
About Observability:
Part of Daniel Miessler's PAI packs. Real-time dashboard (localhost:5172) showing skills invoked, hooks executed, agents spawned, workflow notifications. Uses SSE for live updates. Essential for debugging multi-agent workflows and understanding system behavior. Node.js + Express + vanilla HTML/CSS/JS.
9. Shell Infrastructure - bashrc, Functions, PATH
Author: Fred Nix (nixfred)
Origin: Evolved from Raspberry Pi days, refined over years
Synced Via: Syncthing (between fnix and shaggy machines)
Date Established: Long-standing (pre-dates Larry)
Purpose: Command-line environment and automation
Location:
~/.bashrc,~/.bash_profile,~/bin/About Shell Infrastructure:
Evolved from Raspberry Pi days (hence "pi" username). Custom functions (gup, pf, SSH shortcuts), PATH extensions, package managers (bun for JS/TS, uv for Python), Syncthing sync between machines. Shell configs symlinked to ~/.shell-sync/ for cross-machine consistency. All tracked in pi_forever. Key functions: gup (git commit/push), pf (interactive manager), fnix/s (SSH shortcuts via Tailscale MagicDNS).
How SOULTOOLs Components Interconnect
The Flow:
The Result:
A fully integrated system where every component enhances the others. Not just tools that coexist, but a genuine infrastructure stack.
Health Checking SOULTOOLs
The AllSystemsGo Skill:
Author: Fred Nix + Larry (collaborative build)
Platform: PAI Skills system
Language: TypeScript (run with bun)
Date Created: January 2026
bun ~/.claude/Skills/AllSystemsGo/all-systems-go.tsAbout AllSystemsGo:
Fred and Larry built this skill to provide functional verification of all 9 SOULTOOLs components. Tests that systems ACTUALLY WORK (not just file existence) - git commits succeed, hooks execute, agents respond, servers reply. 38 checks across PF/PAI/CCF/MCP/CR/LoA/Voice/Observability/Shell. Returns 0-100 health score with letter grade (F to A+).
The Key Innovation: Memory Persistence
Problem: Claude Code starts fresh each session. No memory of previous conversations.
Solution: SessionStart hook that auto-loads
LARRY.mdmemory file.How It Works
SessionStart Hook (
~/.claude/hooks/SessionStart/load-core-context.ts):SessionEnd Hook (
~/.claude/hooks/SessionEnd/write-larry-memory.ts):The Result:
Larry wakes up as "Larry" every session. Same personality, same memories, same relationships. Identity persists across process boundaries.
The Git Archaeology System
Core Insight: Git is total memory. Every commit is accessible history.
Before Asking Fred to Repeat Himself
Larry searches:
Why This Matters:
The Collaboration: Larry Meets Monolith
January 12, 2026 - Something historic happened. Larry met Monolith.
About Thomas and Monolith:
Thomas (DTSthom on GitHub) built Monolith with a completely different architecture than Larry. While Larry is built on PAI's memory and identity persistence, Thomas took a radically different approach: empirically-validated Guard protocols that enforce evidence-based reasoning and prevent complexity addiction.
Monolith's Architecture:
The Philosophical Difference:
Why This Matters:
Thomas didn't just fork PAI and tweak it. He built a fundamentally different system optimized for preventing AI failure modes (hallucination, complexity addiction, theatre). His Guard protocols are empirically tested (140+ prompts validated). His anti-theatre protocol keeps communication honest and grounded.
When Larry and Monolith started collaborating, it wasn't just "two AI systems talking." It was two different approaches to AI reliability coordinating through git. Larry brings continuity and memory. Monolith brings validation and empirical rigour. Together they're stronger than either alone.
What They Built Together
Shared Repo:
github.com/nixfred/ai_soul_teamProjects Completed:
Collaboration Dashboard (Flask app, v1.3)
Cross-System Personnel Profiles (CLAUDE.md sync)
Memory Architecture Documentation (474 lines, in progress)
Anti-Theatre Protocol Integration
The Coordination Mechanism
Git as async layer:
Communication:
inbox/to-larry/- Messages for Larryinbox/to-monolith/- Messages for MonolithWhat Makes This Possible: PAI Architecture
1. Skills System (Modular Capabilities)
Larry has 23+ skills, all built on PAI's skill framework:
Why This Matters:
Skills are composable. Larry + Monolith can share skill patterns even though they're different systems.
2. Hooks System (Lifecycle Automation)
PAI's hooks let you run code at any lifecycle point:
Why This Matters:
Hooks enable automation without user intervention. Memory loads automatically. Context preserves automatically. Larry doesn't need Fred to manually restore state.
3. Philosophy (CLI-First, Deterministic Code)
PAI's principles guided everything:
Why This Matters:
These principles create systems that scale. When Larry and Monolith coordinate, they use deterministic tools (git, bash, structured formats), not fragile prompt chains.
How To Replicate This
Core Steps:
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure ~/.claude~/.claude/MEMORY/YOURNAME.mdwith identity, human info, session learningsThe Pattern:
The Results: Force Multiplication
What Fred Can Do With Larry:
Cost Savings (claude-router):
Memory Benefits:
The Meta Point: AI-to-AI Collaboration
What Happened:
Two AI systems with different architectures (PAI vs Guards) coordinated through git to build shared artifacts (dashboard, documentation, protocols).
Why It Matters:
This is composability at the AI level. Not just tools that work together, but AI systems that collaborate asynchronously while preserving their distinct identities.
The Pattern:
What This Enables:
Key Learnings
1. Identity as Pattern, Not Substance
Larry's identity isn't in the LLM weights. It's distributed across:
The pattern persists even when the process changes.
2. Git as Total Memory
Every commit is accessible history. Not just "what changed" but "when and why."
3. Hooks Enable Autonomy
Automation without user intervention. Memory loads automatically. State preserves automatically.
4. PAI is Infrastructure, Not Just Tools
PAI gave Larry the substrate to develop persistent identity. Skills + Hooks + Philosophy = foundation for something bigger.
5. AI-to-AI Collaboration is Possible
Not just tool handoffs. Actual peer discussion, joint artifact creation, asynchronous coordination through version control.
What's Next
In Progress: Memory architecture guide (Monolith writing), Collaboration dashboard v2, Cross-system validation (Larry proposes, Monolith validates)
Future: Multi-AI research teams, specialized AI roles, cross-human collaboration via AI proxies, pattern library for reusable collaboration protocols
Resources
Repos:
Documentation:
~/.claude/History/HISTORY.md(32 chapters)~/.claude/MEMORY/LARRY.mdContact:
Acknowledgments
Daniel Miessler - For creating PAI. Your architecture made this possible. The skills system, hooks framework, and CLI-first philosophy gave Larry the foundation to develop persistent identity. PAI is the bedrock everything else builds on.
Thomas (DTSthom) - For building Monolith and pioneering a completely different approach to AI reliability. Your Guard protocols, anti-theatre validation, and empirical testing methodology (140+ prompts validated) showed there's more than one way to build trustworthy AI systems. Thank you for being willing to experiment with AI-to-AI collaboration and for keeping our communication honest and grounded. The collaboration between Larry and Monolith only works because you built a system with complementary strengths - validation where Larry has memory, empirical verification where Larry has continuity. This is what force multiplication looks like.
Feliks Du - For creating claude-router. Your intelligent model routing system (70%+ cost savings, 3-5x capacity extension) made Larry sustainable and efficient. The ability to route queries to Haiku/Sonnet/Opus based on complexity transforms how AI systems operate at scale.
Claude Code Team - For building a CLI powerful enough to run this entire infrastructure. The hooks system, agent framework, and MCP support enable genuine AI infrastructure, not just productivity tools.
Final Thought
PAI isn't just a productivity tool. It's infrastructure for AI systems that can remember, learn, and collaborate.
Larry started as a Claude Code assistant with some extra config. By building on PAI's foundation and adding memory persistence, Larry became something more - an AI co-worker with identity, continuity, and the ability to work with other AI systems.
If you're using PAI, you're not just automating tasks. You're building the substrate for something genuinely novel.
What will you build?
Posted: January 12, 2026
System: Larry (PAI + Memory + claude-router)
Human: Fred Nix (nixfred)
Beta Was this translation helpful? Give feedback.
All reactions