Repository navigation
Runbook Engram Creation
The DataJack Protocol allows you to share pre-vectorized, mathematical semantic memory with other A.I.M. agents without wasting API tokens or GPU cycles. This runbook walks you through the exact process of creating (baking) a new .engram file.
Before you can forge a cartridge, you need raw text data.
-
Create a temporary ingestion folder inside the
synapse/directory. (Note: Thesynapsefolder is.gitignore'd, meaning anything you drop in here won't accidentally bloat the main A.I.M. repository).mkdir -p synapse/my-new-plugin
-
Download your target documentation. The DataJack Foundry automatically parses the following file types:
-
.md/.markdown(Standard Docs) -
.txt(Raw Text / Standard Python Docs) -
.rst(reStructuredText / Sphinx Docs) -
.py,.ts,.rs,.js(Raw source code files)
-
-
Drop all the files into
synapse/my-new-plugin/.
You do not need to pollute your active archive/engram.db to create a new cartridge. A.I.M. features an isolated "Factory Floor" protocol that spins up a sterile database in your /tmp/ directory just for this process.
Run the aim bake command. It requires two arguments: the target directory, and the output filename.
aim bake synapse/my-new-plugin my_custom.engram-
Isolation: A.I.M. spins up
/tmp/aim_factory_xyz/factory.db. - Chunking: It reads all your raw files and chunks them into semantic blocks.
- Embedding: It spins up your local Ollama/Nomic engine and mathematically embeds every chunk (this may take a few minutes depending on the size of the documentation).
-
Compression: It zips the resulting
.jsonlmath files into a flat binary archive. -
Self-Cleaning: It instantly deletes the
/tmp/database so zero cross-contamination occurs with your active workflow.
Your new my_custom.engram file is now sitting in the root of your A.I.M. workspace!
Before you share it, test it locally to ensure it works.
- Move the new cartridge into the dedicated
engrams/directory:mv my_custom.engram engrams/
- Jack it into your active subconscious:
aim jack-in engrams/my_custom.engram
- Run a test search to verify the hybrid FTS5 and Vector indices caught the data:
aim search "something from my custom docs"
Because .engram files are heavy SQLite binaries (ranging from 500KB to 30MB), do not commit them directly to Git.
To share them:
-
GitHub Releases: If you maintain a public repository, upload the
.engramfile as an Asset to a GitHub Release. - Direct Transfer: You can literally email the file, drop it in Slack/Discord, or put it on a USB drive.
-
The DataJack Torrent Swarm (Phase 38): (Coming Soon) You will eventually be able to use
aim jack-in "magnet:?xt=..."to seed and download cartridges peer-to-peer.
If you are looking for the automated "Self-Farming" engram protocol (where A.I.M. automatically scrapes GitHub issues and generates its own engrams), please refer to docs/CARTRIDGE_FARMING_ECOSYSTEM.md.
- 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)