Memory Use in AI Game Tasks and Prompting Effects
Memory usage in game tasks varies based on AI strategies, with selective memory approaches improving performance, while prompting can significantly influence memory utilization in large language models.
Memory Usage in Game Tasks
Memory usage in game tasks varies significantly based on the approach taken by AI agents. For instance, Fable 5’s method involved storing information not explicitly provided by the game, which allowed it to progress further than Sonnet 3.7, which redundantly stored data like the player’s money or map location—information that could be read directly from the screen. Opus 5.5 adopted a similar strategy, maintaining a small memory folder that tracked its current goal and next steps, rewriting it as it played, which helped it beat the game. This general guidance also benefited Opus 4.7 and Opus 5, giving both a noticeable performance boost (Figure 3). However, when a rule was set to “record only failures,” both Opus 5 and Opus 4.7 lost much of that performance advantage (Figure 5, right). These examples highlight how selective and strategic memory use can influence an agent’s success in game tasks.
Impact of Prompting on Memory Utilization
The impact of prompting on memory utilization in large language models is evident in how guidance influences their performance. For example, Sonnet 4.6 on the CL-Bench database task showed improved results when prompted to guide memory usage, as noted in Hacker News. Similarly, when models were instructed to record only failures, their gains from memory usage changed accordingly, as described in Hacker News. In some cases, such as with Sonnet 4.6, the model often failed to read files from its memory directory and did not test its theories about why an answer was wrong, as stated in Hacker News. However, when prompted to read its memory files before answering and to explicitly test its theories, Claude’s benchmark score nearly doubled, as shown in Figure 5 (left), according to Hacker News. Additionally, without being prompted, Sonnet 4.6 read its memory before answering 9 out of 10 times, as noted in Hacker News.
Dreaming and Memory Representation
Dreaming plays a crucial role in the formation and organization of memory representations within Claude. According to research, dreaming can build new memory representations, enabling Claude to navigate its memory more effectively (Figure 9). Additionally, dreaming can promote notes up the memory hierarchy, allowing the agent harness to preemptively load them into Claude’s context at the start of every session (Figure 13). In one study, the benefit of wikis as a memory representation was explored using a corpus of internal documents from Stainless, a software company, consisting of about 350,000 files and 420M tokens. When using only the wiki to answer questions, Claude achieved a score of 48%. Furthermore, in a test where one agent per contract wrote its own page and quoted terms word for word, 57 of 57 facts survived.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.