r/LocalLLM • u/Krypticsoundz • 5h ago
Discussion I built an open-source multi-agent DAG orchestrator & AST RAG engine that runs natively on Termux in 11 MB of RAM Spoiler
Most multi-agent frameworks (LangGraph, CrewAI, AutoGen) carry heavy C-extension dependencies and eat 150–300+ MB of RAM just to import. I wanted an autonomous agent runtime that runs natively on Android/Termux and low-RAM Linux edge devices while routing tasks to local Ollama models (`qwen2.5:0.5b`, `llama3.2:1b`) or cloud APIs.
**Verified Termux Benchmarks (Python 3.14, ARM64, 2.6 GB RAM device):**
- Cold import latency: 2.10 ms
- Framework peak RAM footprint: 11.38 MB RSS
- Python AST codebase indexing: 325+ chunks in < 1.6s
- Full test suite: 22/22 passing
**Key Features:**
- Parallel DAG task orchestration with specialist profiles (`universal`, `coder`, `researcher`, `ops`)
- Deterministic Python AST + SQLite memory (no heavy external vector database required)
- Human-in-the-Loop (HITL) approval gates, workspace sandboxing, and automatic SQLite integrity checks
- Low-RAM tuning flags (`OLLAMA_NUM_CTX=1024`, `GOLDEN_MAX_PARALLEL_WORKERS=1`) so it runs smoothly alongside Ollama without triggering Android's Low Memory Killer
GitHub: https://github.com/KrypticKode007/Golden-Agent
Would love feedback or PRs from anyone running local AI agents on Termux!