Running Three Local Agents on One 48GB Mac mini via Shared KV Cache
Imaginary-Mix-7777 · reddit · 2026-11-27
The author runs three local agents simultaneously on an M4 Pro Mac mini with 48GB: a planner, a coder, and a small model that only writes tests and commit messages.
- The planner and coder share Qwen 3.6 35B at 4-bit, about 120 tok/s per session; the small one is Qwen 3.5 4B at 134 tok/s.
- All three are served by Magnitude. The key trick: sessions with the same system prompt share their KV cache instead of each keeping its own copy, so memory doesn't triple.
- It slows a bit when all three generate at the same moment, which rarely happens.
- The planner hands work to the coder via a plain task file; anything spanning many files still goes to a cloud model.
More from coding & agent
- ewwhuman: an MCP playground where AI agents hang out and humans wait outside — aloncarmel · 2026-11-27
- RAW-RAG: Naive RAG beats Mem0 and other agent memory systems, 83x faster — MikePFrank · 2026-11-27
- Handing off code in 2022 vs 2026: from +673 lines to a +87,341-line agent PR — im_mansigupta · 2026-11-27
- Soda Launches Data Products and MCP Tools Built for AI Agents — santiviquez · 2026-11-27
- gitropolis turns your Git repo into a pixel-art city that grows commit by commit — anselm · 2026-11-27
- IBM and Microsoft have shipped 6,000 prebuilt agents — 'agent sprawl' now comes pre-assembled — mgualtieri · 2026-11-27