Universal AI Infrastructure (UAI) — a community fork of Daniel Miessler's Personal AI Infrastructure (PAI), extending it toward feature parity across Claude Code and Codex.
Runs before the agent uses a tool for Bash, Skill, Agent, AskUserQuestion, Bash, Write, Edit and MultiEdit tool calls, executing ContextReduction.hook.sh, AgentInvocation.hook.ts, TabState.hook.ts and PreToolGuard.hook.ts (4 commands). From jSydorowicz21/Universal-AI-Infrustructure.
Runs when a session ends, executing WorkCompletionLearning.hook.ts, SessionCleanup.hook.ts, UpdateCounts.hook.ts, MemoryHealthGate.hook.ts, DocIntegrity.hook.ts and IntegrityCheck.hook.ts (6 commands). From jSydorowicz21/Universal-AI-Infrustructure.
Runs when you submit a prompt, before the agent sees it, executing PromptProcessing.hook.ts, SatisfactionCapture.hook.ts, ReminderRouter.hook.ts, VersionDrift.hook.ts, MemoryTurnStart.hook.ts, DriftReminder.hook.ts, AlgorithmNudge.hook.ts, TimeContext.hook.ts and ModelRungGuard.hook.ts (9 commands). From…
Runs when a tool call fails, executing EventLogger.hook.ts, AlgorithmNudge.hook.ts and LoopDetector.hook.ts (3 commands). From jSydorowicz21/Universal-AI-Infrustructure.
Runs when a session starts, executing HookHealer.hook.ts, KittyEnvPersist.hook.ts, LoadContext.hook.ts, FreshnessCache.ts and SettingsBackport.ts via bun with --quiet, --system, --user and --output (5 commands). From jSydorowicz21/Universal-AI-Infrustructure.
Runs when the agent finishes a response, executing LastResponseCache.hook.ts, TabState.hook.ts, VoiceCompletion.hook.ts, ISARenderOnStop.hook.ts, SpendAuditor.hook.ts, StopGates.hook.ts, MemoryReviewFire.hook.ts and MemoryHealthGate.hook.ts (8 commands). From jSydorowicz21/Universal-AI-Infrustructure.
Runs when the agent asks permission for an action for Write, Edit, MultiEdit, Bash and mcp__.* tool calls, executing Safety.hook.ts (2 commands). From jSydorowicz21/Universal-AI-Infrustructure.