Graph workflows vs. agent loops on a local 9B model: same accuracy, a lot less tokens
Summary
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.
Similar Articles
The power of structured workflows and small local models
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.
I benchmarked when an email agent should wake up vs polling everything. 91% fewer downstream tokens on the first slice.
Benchmarks an event-routing approach for email agents that wakes only on relevant triggers, reducing downstream token usage by 91% compared to polling.
Remember, Don't Re-read: Stateful ReAct Agents for Token-Efficient Autonomous Experimentation
This paper proposes replacing the stateless autoresearch pattern with a stateful ReAct agent using LangGraph, reducing per-iteration token costs from O(n) to O(1) and achieving 52-90% fewer tokens on hyperparameter tuning and code optimization benchmarks.
Your agent probably doesn't need a better model. It needs a better loop.
Experiments comparing agent runtimes with Claude Opus 4.8 show that runtime efficiency affects performance and cost more than the model alone, emphasizing the need for better loops in AI agents. TrueForge is highlighted as a useful open-source tool for inspecting and optimizing runtimes.
Local agent workspace on a 4GB laptop GPU (RTX 3050 Ti): the tok/s and where a small model struggles once it has to call tools, build artifacts, and RAG
The author benchmarks local Qwen models of various sizes on a 4GB RTX 3050 Ti laptop GPU within the Bike4Mind workspace, finding the 2B model at Q4_K_M quantization is the sweet spot for fitting in VRAM, achieving 96 tok/s. Smaller models struggle with tool selection, artifact generation requiring multiple models, and RAG embeddings causing model swap overhead.