Urgent.News

What's breaking now, across thousands of outlets.

AI

Your AI Agent Doesn't Need a Bigger Context Window. It Needs an Eviction Policy.

Every few weeks another framework ships a bigger context window and someone declares agent memory solved. It isn't. I've watched three separate production agents degrade in the exact same way — not because they forgot something important, but because they remembered too much and couldn't tell what mattered anymore. The fix wasn't more storage. It was an eviction policy. The thesis Here's the hot…

The article argues that simply increasing the context window size in AI agents doesn't solve memory issues. In fact, adding more context can create problems, especially when the agent retains too much information and can't discern what's relevant. The author suggests that forgetting is the real challenge in agent memory. Most teams are building append-only logs with a vector index for search, which is not true memory.

A production agent might remember outdated information and contradict itself, looking like a prompting problem rather than a memory problem. The author explains that treating memory like a cache, rather than a log, can help. They outline three mechanisms: explicit supersession, salience decay, and write-time contradiction checks.

Explicit supersession allows marking outdated facts, salience decay prioritizes facts based on retrieval frequency, and write-time checks catch contradictions early, reducing token costs during retrieval. While bigger context windows might work for short-lived, single-task agents, they become impractical for long-running agents managing state across months or weeks.

At that scale, retaining too much data leads to inefficient memory usage. The article concludes that for agents with long-running interactions, eviction policies are crucial to prevent stale facts from dominating the memory.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

May the Source Be With You: Why Your AI Agent Is Only as Good as Its Knowledge

Everyone seems to be building AI agents. Give a model some instructions, connect a few tools, add a system prompt, and suddenly we have an "agent." Except there's a problem.

  • AI agents need relevant knowledge to make informed decisions.
  • Knowledge architecture should precede agent development.
  • Improving source material and retrieval methods can mitigate risks.

Node.js Healthtech Text Summarization SaaS — 4 Chat Completions API Trade-offs

Short answer: start a Node.js ticket-summarization SaaS with chat completions, put the provider behind one tiny adapter, and choose the vendor only after checking model availability, context limits…

  • Construct single adapter layer around chat completions API
  • Verify model availability, context limits, US/EU compliance
  • Maintain stable input, summary instruction, and output

More from Saturday 22 August →