Repository navigation
Script Map
Brian edited this page Apr 2, 2026
·
1 revision
This document is the literal map of every internal script running the A.I.M. exoskeleton inside Antigravity. It explains where business logic lives, and explicitly calls out portions of the architecture that were orphaned or decapitated during the Windows migration.
The pure Python engines driving the backend architecture.
-
bootstrap_brain.py: The initialization engine. Re-indexesGEMINI.md,antigravity.wiki/, andcore/intoengram.db. -
config_utils.py: The single source of truth for loading, validating, and auto-repairingcore/CONFIG.jsonpaths. (Note: Contains Linux root traversal bugs on Windows). -
daemon.py&daemon_brain.py: The Tier 5 Autonomic background service orchestrators. (Note: Currently comatose on Windows due to legacynohupcalls). -
handoff_pulse_generator.py: The engine that distills active IDE sessions intoCURRENT_PULSE.mdand generates theLAST_SESSION_FLIGHT_RECORDER.mdhistory during/reincarnate. -
heartbeat.py: Zero-token diagnostic tool. Verifies the integrity of the Engram DB, hooks, and sync folders. -
mcp_server.py: The FastMCP server, exposing the Engram DB natively to the Antigravity agent tool suite. -
reasoning_utils.py: The universal LLM client. Dynamically routes API calls based on the Tiers defined inCONFIG.json. -
retriever.py: The search engine. Handles vector embeddings (Nomic) and lexical search (FTS5) againstarchive/engram.db. -
sovereign_sync.py/back-populator.py: The bi-directional GitOps serialization layer translating SQLite to.jsonlfor version control.
-
memory_proposer.py[Tier 2]: Distills raw hourly transcripts into structured Add/Remove deltas for Core Memory. -
daily_refiner.py[Tier 3]: Consolidates the hourly states into a single daily summary. -
weekly_consolidator.py[Tier 4]: Compresses 7 days of daily summaries into high-level milestones. -
monthly_archivist.py[Tier 5]: The final compression layer for long-term project architecture.
🔴 STATUS: DECAPITATED. The critical injection script
aim_exchange.pywas lost during the OS migration.
-
aim_bake.py: Compiles a directory of files into a portable.engramZIP cartridge. -
forensic_utils.py: The SQLite database wrapper. Manages allINSERTandSELECTqueries for the Engram DB.
The front-end pipeline. Much of this is being sunset in favor of .agents/workflows/.
-
aim_cli.py: The central cross-platform dispatcher. -
aim_push.sh/aim_push.ps1: The GitOps validation wrapper. Enforces atomic push cycles. -
obsidian_sync.py&obsidian_pull.py: The bi-directional Sovereign Mirror connecting A.I.M. to Obsidian local Vaults. -
sync_issue_tracker.py: The local synchronization engine forISSUE_TRACKER.md.
The following scripts were designed for standalone terminal operation and are now superseded by File-Based IDE Workflows.
-
aim_config.py: The 18K monolithic TUI cockpit. Superseded by/syncworkflows and directCONFIG.jsonediting. -
aim_init.py: The 24K setup wizard. Superseded by/initIDE workflows. -
aim_reincarnate.py/poc_tmux.py: Legacy Linux Terminal Splicing tools. Superseded by manual Export and/reincarnatescript. -
extract_signal.py: Pure terminal JSON scraper. Less relevant now that the IDE natively manages context.
Automated, repeatable testing harnesses for the platform.
-
calculate_economics.py: Parses resulting outputs to calculate exact token usage and API costs. -
run_amnesia_killer.py: The harness for the Long-Horizon Memory Test. -
run_vibe_killer.py: The harness for the 60-Turn Vibe Coding Trap Test.
☕ Support the continuous evolution of A.I.M.: Buy Me a Coffee
- 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)