Researchers have developed a new AI agent, AgenticSTS, that achieves surprising success in the deck-building roguelike game Slay the Spire 2 by replacing the traditional growing chat log with a structured memory system. The agent uses five distinct memory layers instead of accumulating every past observation, keeping prompts short and efficient.
In tests at the lowest difficulty level (A0), the agent won 3 out of 10 games without memory layers. Adding a skill library (L5) that stores tactical rules for recurring situations doubled the win rate to 6 out of 10. The team notes that with only ten runs per condition, this doubling could be statistical noise.
When the agent was allowed to learn between runs using episodic memory (L4), it reached higher Ascension levels (A6-A8), compared to A2-A4 without such memory. The researchers also found that memory created by one model (Gemini 3.1 Pro) did not transfer well to others: Qwen 3.6-27B saw a score increase of 84.5%, but Deepseek V4-Pro's score dropped by 18.1%.
Compared to two public agents (STS2MCP and CharTyr) that use growing transcripts, AgenticSTS won more often and used far fewer tokens. For every point scored, competitors sent 66 to 90 times as many tokens to the language model, with one call nearing 527,000 tokens, while AgenticSTS stayed at about 5,000 tokens per call. The accumulating agents also took four times longer due to model latency.
The researchers acknowledge limitations: the results are based on only 50 runs with one character (Silent) on a single game version, and the comparison agents differ in routing and decision batching. They have released 298 complete game runs, memory snapshots, and evaluation scripts on Hugging Face for other researchers to test alternative memory architectures.
This work addresses the problem of "context rot," where growing chat logs make models slower, more expensive, and less accurate. Other approaches like Anthropic's Memory Tool and Context Editing, the GAM framework, and the Mastra framework are also tackling this issue.