The AgenticSTS project improved AI agent play in Slay the Spire 2 by replacing long chat logs with five structured memory layers, The Decoder reported. The system kept the active prompt near 5,000 tokens rather than letting it grow past 500,000.

The result matters beyond games because many agents degrade when their context becomes too large, repetitive, or poorly organized. Structured memory can preserve useful state while avoiding the cost and confusion of dumping every prior interaction into the prompt.

For agent developers, the work reinforces a practical lesson: memory architecture can be as important as the base model when tasks require long-horizon planning.