Models & Research

AI agents win at Slay the Spire 2 after researchers replace growing chat logs with structured memory

· July 12, 2026
AI agents win at Slay the Spire 2 after researchers replace growing chat logs with structured memory

What changed

Researchers working on the AgenticSTS project replaced AI agents’ traditional chat logs with a system of five separate memory layers. This structured memory approach keeps the prompt size stable at roughly 5,000 tokens, avoiding the exponential growth seen with growing chat logs that can balloon beyond 500,000 tokens. The method was tested in the card game Slay the Spire 2, where the AI agent won 6 out of 10 games. Competing agents relying on standard prompts without structured memory failed to win any games.

Why builders should care

Large or growing chat logs pose a real bottleneck for long-running or complex AI tasks. Without managing memory better, prompt sizes can become unmanageable, raising inference costs, slowing execution, and causing reliability issues. Using structured memory layers forces the AI to operate with a more focused context rather than dumping near-complete histories into each prompt. This is a practical step toward scalable AI agents that must reason over lengthy interactions or complex environments without hitting token limits or exploding costs.

The practical takeaway

Builders designing AI agents for multi-step, interactive tasks should rethink memory management instead of relying solely on chat histories. Structured memory layers can maintain relevant facts, decisions, and context in digestible chunks. This leads to more consistent agent performance and lowers inference footprint. The AgenticSTS result shows the approach not only contains costs but also improves task success rates. Developers working on game AI, customer interactions, or autonomous workflows will find this especially relevant.

What to watch next

Look for structured memory systems making their way into agent frameworks and API designs, especially as token limits and cost pressures rise with larger language models. It will be important to see if memory layering techniques can extend beyond game scenarios into real-world applications with richer, more open-ended tasks. Investors and operators should track projects that reduce AI inference bloat while boosting agent reliability, since this addresses a growing pain point in operational AI today.

AI Quick Briefs Editorial Desk

Stay ahead of AI Get the most important AI news delivered to your inbox — free.