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.

原文来源:discuss.huggingface.co