Slow prompt processing? Reddit user proposes pre-submitting agent overhead to warm the KV cache

butterfly_labs · reddit · 2026-09-20

A developer running large models (DS4 Flash, Qwen3.8 Flash) locally on an M2 Ultra with slow prompt processing reports that the fixed overhead an agent harness passes — system prompt, tool definitions, skills — takes 2-3 minutes to process before the first turn, after which the context is cached and subsequent turns get much faster.

Since this overhead is identical for a given project, they propose having the harness (they use Opencode) submit it as soon as the project opens, letting the machine warm the cache while the user types their first prompt. The post asks whether this pre-caching approach is viable.

Original post →

More from coding & agent

coding & agent channel →