{"slug": "local-first-multi-agent-coding-platform-looking-for-architecture-advice", "title": "Local-First Multi-Agent Coding Platform — Looking for Architecture Advice", "summary": "A developer seeking architecture advice for a local-first multi-agent coding platform was told no single open-source tool covers the full stack, but that LangGraph, Ollama, OpenHands or Aider, and a structured project-state file can be composed to approximate it. The recommended setup uses LangGraph's checkpointer and interrupt() for human approvals with state persisted to SQLite, Ollama's keep_alive set to 0 to unload models between stages on 12 GB VRAM and 32 GB unified memory, and a single gateway function that refuses any non-local endpoint unless an explicit approval flag is set. The advice is to start with a 2-model implement-then-review loop and add agents only once the handoff file format is stable.", "body_md": "Short answer: no single open-source tool covers all of that, but you can get close by composing pieces.\n\n- Orchestration: LangGraph fits your branches (success/fail/retry/human approval) well. Use its checkpointer plus interrupt() for approvals, and persist state to SQLite so runs survive restarts.\n\n- Model swapping: Ollama already unloads models via keep_alive (set it to 0 between stages). On 12 GB VRAM and 32 GB unified memory, run models strictly sequentially, never in parallel.\n\n- Handoff: don’t pass chat history. Keep a structured project-state file in the repo (task, decisions, files changed, failing tests, attempts) written after each step and read by the next agent; git commits per step give you free rollback and diffs.\n\n- Agents: OpenHands or Aider can be the ‘worker’ nodes, called from LangGraph as subprocesses against the same working tree.\n\n- Offline/cloud escalation: put a single gateway function in front of every model call that refuses any non-local endpoint unless an explicit approval flag is set.\n\nStart with a 2-model loop (implement then review) and add agents once the handoff file format is stable.", "url": "https://wpnews.pro/news/local-first-multi-agent-coding-platform-looking-for-architecture-advice", "canonical_source": "https://discuss.huggingface.co/t/local-first-multi-agent-coding-platform-looking-for-architecture-advice/193011#post_2", "published_at": "2026-12-02 13:11:07+00:00", "updated_at": "2026-12-02 13:17:15.304561+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "large-language-models"], "entities": ["LangGraph", "Ollama", "OpenHands", "Aider", "SQLite"], "also_reported_by": [], "takeaway": "Run models strictly sequentially on 12 GB VRAM and 32 GB unified memory, set Ollama's keep_alive to 0 to unload between stages, and hand off structured project-state files rather than chat history, starting with a 2-model implement-then-review loop.", "recommendation": {"advice": "Persist LangGraph state to SQLite with interrupt() for approvals, set Ollama keep_alive to 0 between stages, and pass a structured project-state file instead of chat history.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/local-first-multi-agent-coding-platform-looking-for-architecture-advice", "markdown": "https://wpnews.pro/news/local-first-multi-agent-coding-platform-looking-for-architecture-advice.md", "text": "https://wpnews.pro/news/local-first-multi-agent-coding-platform-looking-for-architecture-advice.txt", "jsonld": "https://wpnews.pro/news/local-first-multi-agent-coding-platform-looking-for-architecture-advice.jsonld"}}