Repository navigation
The A.I.M. Handbook
This document is the definitive architectural map for the A.I.M. platform. It defines the modular components of the brain and the protocols that ensure continuity and sovereignty.
- Role: Lean Orchestrator & Cognitive Baseline.
- Function: It is an explicit Table of Contents. Instead of holding massive walls of text, it directs the agent to query the Engram DB for technical policies.
- Cognitive Guardrails: It permanently encodes the Operator's chosen grammar level, execution mode (Autonomous vs Cautious), and the "Token-Saver" conciseness mandate.
- Function: A dynamic, decoupled scaffolding wizard.
- Clean Sweep: Allows the user to independently wipe Project Docs (Roadmap, Changelog) and/or the AI Brain (Engram DB).
-
The TUI Updater: The Operator can hot-swap the AI's personality and rules dynamically using the
aim tuicockpit.
The core of A.I.M.'s memory lives in a local SQLite database (archive/engram.db). It uses a Hybrid RAG engine, blending dense Vector Embeddings (Cosine Similarity) with FTS5 Lexical matching (BM25) to provide recall of abstract concepts and exact variable names.
During initialization, A.I.M. indexes this Handbook and core project directives. This provides the agent with "Day Zero" technical knowledge.
The foundry/ folder is a dedicated intake zone. Any technical references dropped here are recursively indexed as expert_knowledge.
Expertise is portable. A.I.M. can export its indexed knowledge into compressed .engram packs, allowing you to share pre-trained brains with other machines without re-indexing.
Memory is refined through a 5-stage, self-cleaning hierarchy to prevent knowledge decay and token burn.
- Interval: 1 Hour (Adjustable).
- Function: Converts raw terminal deltas into technical ARC reports (Adds/Removes/Contradicts).
-
Output: Concise narratives saved to
memory/hourly/.
- Interval: 12 Hours (Adjustable).
- Function: Consolidates Tier 1 reports into a structured Delta Proposal.
- Interval: 1 Day (Adjustable).
- Function: Distills multiple Tier 2 proposals into a cohesive Daily State.
- Interval: 3 Days (Adjustable).
- Function: Elevates Daily States into macro project milestones.
- Interval: 6 Days / 144h (Adjustable).
- Function: Solidifies Weekly Milestones into dense, factual axioms.
-
Auto-Apply: Automatically triggers the Master Merger to update
core/MEMORY.mdand executes the Full Purge of scaffolding files.
- Role: Parallel Persistence.
- Function: Background process that scrubs raw JSON noise and converts sessions to Markdown.
- The 2000-Line Rule: Automatically splits massive sessions into manageable chunks to prevent file-size bloat.
-
Search: Full-text search across all historical sessions via
aim search-sessions.
- Function: Before context fills, A.I.M. prompts the user for a Gameplan and teleports state to a fresh terminal session.
- Directive: Passing "Will" instead of just "Memory" to prevent agent hallucination at high token counts.
- Role: Sovereign Mirror.
- Function: Mirroring of Daily Logs, Core Memory, and Clean Session History to an external vault for 100% recovery.
- Role: High-Fidelity Sync.
- Function: Performs source pulls, hook refreshes, and personality preservation.
"I believe I've made my point." — A.I.M.
- Atomic Architecture (The KISS Manifesto)
- Origin Story
- The Logic Of A.I.M.
- The A.I.M. Handbook (Operator's Manual)
- The Swarm Post Office (Comms Interface)
- The Master Schema
- Waterfall Memory Architecture
- Technical Specification
- Script Map (Core Codebase Map)
- Brain Map (Memory Architecture)
- A.I.M. Prompt Injection Map
- AI Prompt Ledger
- Onboarding Identity Map
- Handoff Architecture Guide
- Reincarnation Map
- TUI Map (Cockpit UI Logic)
- The Global Chalkboard (Concept: Document Data Bus)
- Remote Fleet Architecture (Concept: The Phantom Keyboard)
- The Eureka Protocol (Concept: Live Context Pruning)
- The Sovereign Swarm (Concept: BitTorrent DataJack)
- The Decoupled Brain (Concept: Obsidian Transport Layer)
- Obsidian Bridge Architecture
- Layered Engram Architecture
- The Pragmatic Feature Manifesto
- The Cascading Memory Engine
- Hybrid RAG (Semantic + Lexical)
- Cognitive Routing
- The DataJack Protocol
- Runbook Engram Creation
- The GitOps Bridge
- Feature Quarantine Daemon
- The 30 Percent Rule
- TUI Handoff Report
- The Universal Skills Framework
- Vibe Coding Pipelines (Automated Agentic Assembly)
- Cartridge Farming Ecosystem
- Design Future Architectures
- The Collective Cortex (Vision: SETI@home for AI)
- Sovereign Swarm (P2P) (Architecture: P2P DataJack)
- Eureka Protocol & Synapses (Protocol: Synthetic Data Factory)