Stanford CS329Z Lecture: Stuffing the Context Window Degrades Agent Accuracy
stanfordnlp · x · 2026-11-13
A Stanford CS329Z lecture by Michael Ryan gives a comprehensive overview of the LLM stack for building AI agents. Key context-engineering takeaways:
- Avoid context rot: stuffing information into the context window degrades performance; as context length grows, retrieval accuracy drops significantly.
- Avoid bloat: you don't need every tool or document — focused agent harnesses with a limited set of essential tools often outperform those with excessive unused data.
- Sequential updates: in long-running conversations, append information sequentially; inserting new content at the start of a prompt shifts existing tokens and invalidates prior positional references.
More from coding & agent
- Cloudflare's AI Bets: Small-Model Wager Missed, Edge Compute Wins as Latency Returns — michellechen · 2026-11-13
- Burkov roasts Codex: nudging it repeatedly just to get from 15% to 26% done — burkov · 2026-11-13
- lclip CLI turns Liveclip tables into a Redis-style key-value store with a built-in web admin — firasd · 2026-11-13
- Founder vibe-codes a Calendly clone and shares the result — kylegawley · 2026-11-13
- HeyGen shares its MCP prompts for free, again — HeyGen · 2026-11-13
- Orchestrator rolls out to Pro subs, pairing Hydrogen and Argon to save quota — clmt · 2026-11-13