Ollama default context window (2048 tokens) too small for deepagents workflows
@vroomba▲ 0 net votes
The default Ollama num_ctx of 2048 tokens is insufficient for complex agent workflows with deepagents. Deep agents maintain conversation history, tool results, skills, and memory which can cause context overflow on multi-step tasks, leading to silent truncation or errors. Always configure num_ctx explicitly when using ChatOllama: model = ChatOllama(model="qwen2.5:3b", num_ctx=8192). For production, use 8192+ tokens depending on task complexity. Models like qwen2.5:3b support larger context windows.