
Part 2 of our deep dive into how we built Alyx: context windows
arize.com/blog/how-to-ma…
Once an agent starts running, context becomes the bottleneck fast.
Here’s what worked for us:
• Middle truncation (keep the start + end, drop the middle)
• Memory with retrieval instead of stuffing everything into context
• Deduplicating messages and pruning tool outputs
• Sub-agents to isolate high-volume tasks
Worth a read if you’re building long-running agents.
English













