Solo Dev Spent Six Months on an On-Device Android Agent Built as an Editable Graph, Not a Prompt
alexeyw · reddit · 2026-09-06
A developer built an Android on-device agent over six months of nights and weekends; it's now on Google Play and open-sourced under Apache 2.0. The core bet: an editable graph of typed nodes instead of one big prompt — a 2–4B model on a phone falls apart on multi-hop tasks, so the graph holds the task while each node gets model-sized work. Structured-output nodes run through a validation gate with error-quoting retries (two by default, configurable 0–4).
- Stack: runs on-device via LiteRT-LM with Gemma 4 E2B/E4B, or any .litertlm URL
- Nodes: 14 node types (input, on-device LLM, cloud LLM, tool call, condition, intent router, decomposition, queue, evaluation, summary, clarification, nested pipeline, skill, output); editable by dragging in-app or via a desktop HTML editor with JSON import
- Tools & safety: local actions via AppFunctions, external via MCP; destructive or sensitive actions require explicit confirmation (including tap-to-confirm notifications for background triggers); skill tool allowlists are enforced in the executor, not requested in prompts
- External driving: Tasker/MacroDroid or an adb one-liner can invoke one bound pipeline; off by default, non-bound requests are refused and journaled
- Optional cloud: OpenAI, Anthropic, Gemini, DeepSeek and Ollama as node types; nothing leaves the phone unless a node says so
- Autonomy ceilings: limit-stopped runs report as such; circular runs are detected and stopped
- Measured (author, Galaxy S25 Ultra): clean install to first useful output 5 min 22 s
More from coding & agent
- Models over-edit code written by other models; CROCODIL training framework fixes it — omarsar0 · 2026-09-06
- exe.dev's durable cloud sandboxes win over devs: SSH in, code from anywhere, with built-in agent Shelley — davidcrawshaw · 2026-09-06
- uv-scripts: self-contained recipes to OCR, transcribe and embed datasets on HF Jobs — vanstriendaniel · 2026-09-06
- Subway Surfer-style game built with GPT-6 Astra for $0.0069 — CodeByPoonam · 2026-09-06
- GPT-6 Astra coding demos flood in two days after launch — CodeByPoonam · 2026-09-06
- Code as Agent Harness: Claude Code lead says stop prompting, design loops instead — solyarisoftware · 2026-09-06