# AgenticSTS 用固定记忆层替代增长日志，在《Slay the Spire 2》中胜率翻倍

- 来源：The Decoder：AI News（RSS）
- 作者：Jonathan Kemper
- 发布时间：2026-07-12 15:45
- AIHOT 分数：49
- AIHOT 链接：https://aihot.virxact.com/items/cmrhi3rfa00gebimnokmso8g8
- 原文链接：https://the-decoder.com/ai-agents-win-at-slay-the-spire-2-after-researchers-replace-growing-chat-logs-with-structured-memory

## AI 摘要

Alaya Lab 与上海交通大学等机构提出的 AgenticSTS 项目，用五个固定记忆层（L1 协议指令、L2 状态模式、L3 检索规则、L4 历史对局摘要、L5 策略技能库）替代不断增长的对话日志，每次决策仅构建约 5,000 token 的提示词。在最低难度 A0 下，无记忆层时胜率 3/10，启用 L5 技能库后升至 6/10。对比公开智能体 STS2MCP 和 CharTyr，AgenticSTS 每得一分仅消耗其 1/66 至 1/90 的 token 量，且耗时仅为四分之一。跨模型迁移测试中，Gemini 3.1 Pro 积累的记忆使 Qwen 3.6-27B 平均分提升 84.5%，但 Deepseek V4-Pro 分数下降 18.1%，记忆内容与创建模型强绑定。

## 正文

Frontier models have repeatedly failed at the digital card game Slay the Spire 2. A new memory architecture shows that the problem isn't so much the model itself but what it carries forward from previous moves.

How much of its past conversation should an AI agent even see when it's chasing a goal across hundreds of decisions? The AgenticSTS project, built at Alaya Lab with Shanghai Jiao Tong University and other institutions, flips the usual answer. The agent never sees its own chat log but instead rebuilds each decision from a fixed catalog of neatly organized information.

AgenticSTS doesn't carry an ever-growing log. It rebuilds each decision from five organized memory layers. | Image: Cheng et al.

The researchers picked the deck-building roguelike Slay the Spire 2 as their test bed. A single playthrough involves hundreds of decisions, from picking cards and planning fights to choosing routes on the map and buying items. The rules translate fully into text, randomness is high, and runs are long. Human players win 16 percent of the time on the lowest difficulty level, A0, according to the developers. Frontier models used in the AGI-Eval assessment didn't win a single game across five tested setups. The game is hard but open-ended enough that architectural differences show up clearly.

A battle in Slay the Spire 2. The agent derives its decisions from game states like this one, with cards, enemies, and stats all represented as text. | Image: Cheng et al.

Five slots replace a growing log

Typical LLM agents like ReAct or Reflexion append past observations, tool calls, and self-reflections to the next prompt. The context grows with every step until the window overflows or the model's attention gets diluted. AgenticSTS does the opposite. For each decision, the prompt is freshly built from five clearly separated slots.

The five slots in detail. L1 and L2 are fixed, L3 is retrievable, and L4 and L5 learn between runs. The chart on the right shows the point lead over tested models. | Image: Cheng et al.

L1 holds fixed protocol instructions, L2 holds state schemas with currently valid actions, L3 holds retrieved game rules, L4 holds summaries of previous runs, and L5 holds strategy skills triggered for specific situations. Anything the agent wants to carry over from a prior decision must first be written into one of these storage areas. This keeps the prompt short no matter how long a run lasts and because each layer is addressed on its own, researchers can pin down which component actually drives an improvement.

A skill library doubles the win rate

For the main comparison, the team ran five setups against each other, ten runs each at the lowest difficulty, A0. Without any memory layers, the agent wins 3 out of 10 games. Once the L5 skill library is turned on, storing tactical rules for recurring situations, the win rate jumps to 6 out of 10. That holds whether the skills were written by hand or generated from templates.

Only when the agent keeps learning between runs does it reach the higher Ascension levels A6 through A8. Without that memory, it tops out at A2 through A4. | Image: Cheng et al.

With just ten runs per condition, the authors themselves admit the doubling could be noise. Episodic memories of past runs (L4) don't help at A0 and only matter when the agent, in a second test mode, attempts the next higher difficulty after each win. With active memory that updates between runs, the agent reaches levels A6 through A8. Without it, runs stall at A2 through A4.

In a separate experiment, the researchers tested whether knowledge built by one model transfers to others. They froze a memory stack that Gemini 3.1 Pro had accumulated during its own games and passed it unchanged to two other models. Qwen 3.6-27B saw its average score rise by 84.5 percent, while Deepseek V4-Pro's score dropped by 18.1 percent. Neither model won a game. The memory contents appear tied to the model that created them and don't transfer well.

Token costs expose the real gap

More interesting than tweaks to the team's own codebase is the comparison with two publicly available Slay the Spire 2 agents that follow the classic growing-transcript pattern, STS2MCP and CharTyr. All agents used Gemini 3.1 Pro for strategic decisions. Neither competitor won any of its 5 runs.

Compared to two public agents with growing transcripts, AgenticSTS wins more often and uses far less time and fewer tokens. | Image: Cheng et al.

The cost numbers are even more striking: for every point the two competitors score, they send 66 to 90 times as many tokens to the language model as AgenticSTS does. The reason is the growing log. In STS2MCP, a single model call near the end of a game hit about 527,000 tokens because the entire game history gets resent with every new decision. AgenticSTS keeps the actual user text at around 5,000 tokens no matter how long the game has been running.

The accumulating agents pay a time penalty too, taking four times as long to reach the same level. According to the provider's stats, 96 percent of that time loss comes from model latency, meaning the pure wait for the language model's response rather than the control software around it.

The core of the efficiency gap. Competitors' prompts per turn grow into six-digit token counts, while AgenticSTS stays at roughly 5,000 tokens regardless of run length. | Image: Cheng et al.

The authors acknowledge this isn't a clean ablation study. STS2MCP and CharTyr also differ from AgenticSTS in routing and decision batching, so the gap reflects the current state of the public landscape rather than the isolated effect of the memory concept, they say.

What's still missing

The team still hasn't run the real test: running an accumulating context within the same codebase using the same scoring. The key metrics are based on 50 runs, and so far only one character (Silent) has been tested on a single game version. Whether the approach works for other characters and patches remains open.

The team is publishing 298 complete game runs, frozen memory snapshots, and evaluation scripts on Hugging Face, so other research groups can test alternative memory architectures in the same environment. The paper's actual claim is more modest than the numbers might suggest when stacked against the competition. By splitting an agent's memory into clearly named layers, you can later figure out which layer drives which behavior.

Efficient memory for AI agents is a busy research area right now. The chat log that grows with every turn makes models slower, more expensive, and less accurate. Researchers call this problem "context rot."

AgenticSTS isn't alone in tackling it. Anthropic uses Memory Tool and Context Editing to automatically strip outdated tool results from the context and store important info in external files. In their own tests, this cut token use for a 100-round web search by 84 percent. The Chinese GAM framework splits archiving and retrieval across two specialized agents. The open-source framework Mastra condenses conversations into concise text notes stored outside the context window, modeling how humans handle memory.
