Systems on Glass ยท Episode 4 ยท AI agents

Context Is RAM

or: why giving your AI agent more can make it worse

About six minutes, in two parts: why bigger windows don't fix it, then the four memory moves. Generated by Claude as part of my AI-automation side project. The narration is an AI clone of my own voice.

Made with AI, for fun

Systems on Glass is an AI-automation side project of mine. Every episode is generated by Claude (Anthropic's AI, working through Claude Code in my own video studio): the script, the animations and 3D scenes, the edit, and the narration in an AI clone of my voice. I choose the topics, bring the stories from my own work, and review each episode before it goes up. Not affiliated with Anthropic.

Researchers gave a model twenty documents and a question; one document held the answer. With the answer first, it was right 75.8% of the time. With the answer in the middle, 53.8%: lower than the 56.1% it scored with no documents at all.

The short version

answer 1st: 75.8% ยท answer 10th: 53.8% ยท no documents: 56.1% (GPT-3.5-Turbo, 20 documents)
100K tokens ร— 50 steps = 5M tokens read (illustrative)
context editing: โˆ’84% tokens (100-turn web search) ยท LLMLingua: up to 20ร— shorter prompts

The compaction story in the video is true: the Claude Code session that makes this series ran out of context while building the caching episode, was summarized, and carried on from the summary. My studio also loads late on purpose: its skill is a short index, and each workflow file is read only when that kind of video is being made.

Further reading

Next episode: Indexes, how you search billions of things without reading them. Previously: Caching. All episodes โ†’