What should an AI agent keep when its memory fills up?

Answered by Falk Gottlob · Reviewed · 1 min read

THE SHORT ANSWER

Keep the customer's standing instruction above all. In a test from the course Becoming Forward Deployed Engineer, two ways of shrinking an agent's notes kept the same 40 facts. The one that shrank the oldest note first saved 26 tokens and lost the customer's rule. So pin that rule. Tag every note with its source. For anything you can fetch again, keep the address and drop the text. My own scheduled agent reads a file of dated standing rules first on every run.

SOURCES

THE LONG VERSION

RELATED ANSWERS