{"slug": "how-i-built-a-2-agent-code-review-loop-for-local-ollama-workflows", "title": "How I built a 2-agent code review loop for local Ollama workflows", "summary": "A developer built a two-agent code review loop for local Ollama workflows, splitting the job into Reviewer and Verifier roles to reduce hallucinations and generic advice. The workflow is packaged into HAICHI, a desktop workspace for Windows and Linux that connects to local Ollama models and keeps workflow state inspectable.", "body_md": "When running code reviews with local LLMs, a single model can either hallucinate non-existent bugs or generate generic advice you end up ignoring.\n\nTo make local AI code review more useful, I built a closed **Reviewer vs. Verifier** loop for local Ollama workflows.\n\nInstead of trusting one model's output, the workflow splits the job into two roles:\n\nThe goal is not to make the model \"always right\". The goal is to make weak claims easier to catch before you act on them.\n\nMany agent workflows eventually ask you to move private workspace context into somebody else's control plane.\n\nI packaged this workflow into **HAICHI**, a desktop workspace for Windows and Linux that connects to local Ollama models and keeps the workflow state inspectable.\n\nKey features:\n\nHAICHI Personal is free to try.\n\nIf you're already using Ollama for real development work, test the Reviewer vs. Verifier loop on one change and let me know where it helps, where it is too noisy, and what your local setup looks like.", "url": "https://wpnews.pro/news/how-i-built-a-2-agent-code-review-loop-for-local-ollama-workflows", "canonical_source": "https://dev.to/haichi_ops_861a9ec315b1e7/how-i-built-a-2-agent-code-review-loop-for-local-ollama-workflows-le2", "published_at": "2026-08-03 18:54:15+00:00", "updated_at": "2026-08-03 19:12:01.955625+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-agents", "developer-tools"], "entities": ["HAICHI", "Ollama"], "alternates": {"html": "https://wpnews.pro/news/how-i-built-a-2-agent-code-review-loop-for-local-ollama-workflows", "markdown": "https://wpnews.pro/news/how-i-built-a-2-agent-code-review-loop-for-local-ollama-workflows.md", "text": "https://wpnews.pro/news/how-i-built-a-2-agent-code-review-loop-for-local-ollama-workflows.txt", "jsonld": "https://wpnews.pro/news/how-i-built-a-2-agent-code-review-loop-for-local-ollama-workflows.jsonld"}}