Filed under context engineering
2 entries so far. All topics or the field guide.
- No. 24prompt is too long: Fix the Claude API Context Limit Error
Fix the Claude API 400 prompt is too long error in agent loops: count tokens first, cap tool results, drop old turns without breaking pairs, or compact.
- No. 8Context Engineering for Agents: Budgeting the Context Window
Context engineering for long-running agents: measure what fills the window, trim tool results, clear old ones, compact the history and keep notes outside it.