# Local-First Multi-Agent Coding Platform — Looking for Architecture Advice

> Source: <https://discuss.huggingface.co/t/local-first-multi-agent-coding-platform-looking-for-architecture-advice/193011#post_2>
> Published: 2026-12-02 13:11:07+00:00

**Recommendation:** 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.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

Short answer: no single open-source tool covers all of that, but you can get close by composing pieces.

- 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.

- 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.

- 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.

- Agents: OpenHands or Aider can be the ‘worker’ nodes, called from LangGraph as subprocesses against the same working tree.

- 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.

Start with a 2-model loop (implement then review) and add agents once the handoff file format is stable.
