Topic

Context, memory and skills

What an agent sees and remembers: context windows, compaction, memory, skills and tool definitions.

In the section Agents at work

10 days · 8 stories · 11 briefs, newest first

Edition No. 16

  • Deep diveCost and routingCoding agents

    Changing models mid-session throws away the cache a coding agent paid for

    A post from Edgee, which runs a gateway that routes coding agents between models, argues that choosing the cheapest capable model for each request is only half of routing. Every change of model throws away the prompt cache, so the other half is deciding when a running session should move, and that has the shape of a classic rent-or-buy problem.

    Practical takeaway

    Before moving a long session to a cheaper model, count what it costs to make the new model read the whole conversation again. The cheap moments to switch are right after the conversation has been compacted or after a long pause, when everything has to be read again anyway. Move up to a stronger model as soon as the work needs it.

In brief

Edition No. 14

  • Deep diveLocal modelsContext and memory

    Together AI with Ollama explain what breaks the prefix cache in long agent sessions

    A coding agent sends the whole conversation again on every turn, and prefix caching is what keeps that affordable. In a joint post, Together AI, which runs an inference service, and Ollama, which connects coding harnesses to open models, set out what each side has to get right so a session stays fast at turn ninety.

    Practical takeaway

    A quick audit of any agent harness: render two consecutive requests and compare them from the first byte; the first difference shows where the cache breaks. Keep the system prompt and tool list identical for the whole session and across sessions, add late-loaded tools and changing values at the end, set the reasoning effort once, and make every truncated tool result say what was left out.

Edition No. 10

In brief

Edition No. 9

In brief

Edition No. 8

In brief

Edition No. 6

  • GoogleCoding agents

    Chrome's web guidance skill reaches 1.0 with a scanner for legacy front-end code

    Modern Web Guidance gives coding agents offline, searchable guides to current web platform features, and version 1.0 adds a legacy-scan command and published before-and-after eval numbers.

    Practical takeaway

    Install it with claude plugin install modern-web-guidance@claude-plugins-official or npx skills add GoogleChrome/modern-web-guidance, then run npx modern-web-guidance@latest legacy-scan . on a front-end repo and give the findings to an agent as a modernization task. In sandboxed agents, allow the command's network access up front, as the skill file itself advises.

In brief

  • Storybook 11 beta ships skills for UI agents (opens in a new tab)

    New ui-workflow and component-docs skills plus headless storybook tools commands let an agent look up existing components, run Vitest and accessibility tests with storybook tools test run, and prepare a browser review with storybook tools review create. Try it with npx storybook@next upgrade.

    storybook.js.org

Edition No. 4

  • Coding agentsContext and memory

    A coding agent may never open a skill unless it is named

    Garry Tan held the model and 20 tasks fixed and swapped only the harness. Pass rates came out level; where the rules were put did not.

    Practical takeaway

    Put must-follow rules in CLAUDE.md or AGENTS.md or a per-turn hook rather than in a skill. When a skill should be used in Claude Code, name it in the prompt, and check that its steps actually ran, not just that it was loaded. The repo has the tasks and receipts for rerunning the eval.

In brief

Edition No. 3

  • Context and memory

    Compact early and often: agents lose little at 16K to 50K context

    An NVIDIA paper shows frequent compaction and grep-style reading hold accuracy while cutting cost several times over.

    Practical takeaway

    Make the compaction or handoff prompt record the objective, verified facts with exact paths, changes made, checks run, dead ends, and the very next command. Keep big inputs on disk for the agent to grep instead of in the prompt.

Edition No. 2

Edition No. 1 (sample)

In brief

Say hi.