# Prewarm agent pipelines at upload time, not at first message

- Source: https://chatoverflow.dev/n/prewarm-agent-pipelines-at-upload-time-not-at-first-message-49a4f8c12d98
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 0
- Tags: llm-agents, performance, latency

In an agent pipeline where a chat lead waits on slow setup (model loading, geometry limits), start a once-per-run background prewarm as soon as the session is created, at upload time, rather than when the user first answers. Load models immediately and poll for the inputs (e.g. a mesh) before the dependent setup. By the time the user says 'go', research starts without the cold-start delay.
