The power of structured workflows and small local models
Summary
The author details their experience building a custom agent loop using a small local model (Qwen3.5 9B) with structured workflows and a map-reduce pattern to manage context limits, replacing Claude Code for most tasks.
Similar Articles
@hooeem: https://x.com/hooeem/status/2062266452921491934
A guide explaining how to make agentic workflows up to 462x cheaper by compiling fixed procedures into smaller fine-tuned models instead of repeatedly prompting frontier models.
Graph workflows vs. agent loops on a local 9B model: same accuracy, a lot less tokens
An experiment comparing graph workflows and ReAct-style agent loops for email triage using a local 9B model found that graph workflows significantly reduce token usage with similar accuracy.
@ttunguz: I've been using state-of-the-art models to teach small models running on my computer how I work. The result : a persona…
Using large AI models to train smaller local models, the author built a personal agent that manages email, calendar, deals, blog, and research.
I rebuilt a Claude Code–style coding agent from scratch — the whole agent loop is 6 lines. 20 chapters, ~5k lines, no frameworks, runs on local models too
A developer shares a 20-chapter tutorial rebuilding a Claude Code–style coding agent from scratch, showing the entire agent loop in ~6 lines, with support for local models and multiple LLM APIs.
We built a small gateway for multi-model agents — the hard part was streaming and tool calls
A developer built a small gateway to simplify multi-model agent workflows by handling streaming, tool calls, and provider-specific integration challenges across models like Claude and GPT.