---
title: "How Much Memory Does Your Agent Actually Need?"
description: "The right amount of self-distilled agent memory depends on model capability: on AppWorld across eight models, strong models with headroom gain most from injecting the full guideline set (DeepSeek-V3.2 +9.5pp TGC, +16.1pp SGC), weaker models do best with a compact high-confidence core plus per-task retrieved guidelines (gpt-oss-120b +16.1pp TGC), and saturated models like GLM-5 show no gain."
url: "https://swe.quest/articles/how-much-memory-does-your-agent-actually-need-90fd1750802569c1"
canonical: "https://huggingface.co/blog/ibm-research/altk-evolve-hmm"
source: "Hugging Face"
published: "2026-08-18"
difficulty: "medium"
kind: "Research"
reading_minutes: 9
tags: ["ai-agents","evals","llms","rag"]
---

# How Much Memory Does Your Agent Actually Need?

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-08-18, 9 min read, Research. Original: [https://huggingface.co/blog/ibm-research/altk-evolve-hmm](https://huggingface.co/blog/ibm-research/altk-evolve-hmm)

## Summary

The right amount of self-distilled agent memory depends on model capability: on AppWorld across eight models, strong models with headroom gain most from injecting the full guideline set (DeepSeek-V3.2 +9.5pp TGC, +16.1pp SGC), weaker models do best with a compact high-confidence core plus per-task retrieved guidelines (gpt-oss-120b +16.1pp TGC), and saturated models like GLM-5 show no gain. Curated retrieval can be both the most accurate and cheapest option, adding only 5% tokens versus 51–78% for full injection, and prompt caching of a stable guideline prefix keeps the full set affordable in production. ALTK-Evolve distills guidelines from successful and failed trajectories without weight updates or human annotation. Planned next steps include a learned guideline selector to replace cosine-similarity ranking.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)

## Prerequisites

- LLM agents and ReAct loops ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- retrieval by embedding similarity
- prompt caching ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))

## Keywords

ALTK-Evolve, AppWorld, ACE, DeepSeek-V3.2, gpt-oss-120b, GLM-5, ReAct

## Related posts

- [Thinking of ACE? We Can Do It with Fewer Tokens](https://swe.quest/articles/thinking-of-ace-we-can-do-it-with-fewer-tokens-2dc38e3991553657.md): Hugging Face · 2026-08-11 · Hard · 8 min read · AI agents, LLMs, Evaluation, Cost optimization
  ALTK-Evolve and ACE both turn an LLM agent's past trajectories into reusable lessons without weight updates.
- [The components of agent memory](https://swe.quest/articles/the-components-of-agent-memory-6ad54605491f6c6e.md): Anthropic Engineering · 2026-11-06 · Medium · 21 min read · AI agents, LLMs, Evaluation
  Agent memory works best as a layered hierarchy: transcripts as an event log, notes Claude writes in-session, richer representations such as wikis, and context injected into every session, with an offline "dreaming" pass that reflects on transcripts to correct and reorganize memory.
- [How to build a retrieval system for agents](https://swe.quest/articles/how-to-build-a-retrieval-system-for-agents-08b9b297721895b1.md): Turso · 2026-02-20 · Medium · 5 min read · AI agents, Vector search, SQLite, AI for coding, RAG & retrieval
  Memelord is a fully local memory system for coding agents that keeps a per-project SQLite database (via Turso) of corrections, insights and user-requested memories, embedded with all-MiniLM-L6-v2 and retrieved by cosine vector search at task start.
- [ReasoningBank: Enabling agents to learn from experience](https://swe.quest/articles/reasoningbank-enabling-agents-to-learn-from-experience-c24d005f6ce31b05.md): Google Research · 2026-04-21 · Hard · 5 min read · AI agents, LLMs, Evaluation
  ReasoningBank is an agent memory framework that distills generalizable reasoning strategies from both successful and failed trajectories, stored as structured items (title, description, content) in a closed loop of retrieval, LLM-as-a-judge self-assessment, extraction and append-only consolidation.
- [Your Agent Aced the Task. Will It Do It Again?](https://swe.quest/articles/your-agent-aced-the-task-will-it-do-it-again-9e1e6a898bac9ad8.md): Hugging Face · 2026-09-15 · Medium · 11 min read · AI agents, Evaluation, LLMs
  LLM agents that score well on average often fail to repeat their successes: a GPT-4.1 ReAct agent on AppWorld reaches 77.4% Mean@5 but only 53.0% Pass^5 (success on all five runs), a 24.4-point consistency gap, even at temperature 0.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
