Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Google Research 5 min read Research hardMaster

ReasoningBank: Enabling agents to learn from experience

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. Memory-aware test-time scaling (MaTTS) feeds parallel (self-contrast across k trajectories) or sequential (iterative refinement) exploration back into memory. With Gemini-2.5-Flash and ReAct, it beat a memory-free baseline by 8.3% on WebArena and 4.6% on SWE-Bench-Verified, saved about 3 steps per task on SWE-Bench, and MaTTS (k=5) added another 3% success on WebArena. Learning from failures yields preventative rules, and memories evolve from simple checklists into compositional strategies over time.

Related posts

  • The components of agent memory

    Anthropic Engineering mediumAdept

    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. On a CL-Bench database task, newer Claude models closed the learning loop by recording validated rules, raising mean reward from about 0.56–0.66 to about 0.83. In Pokémon Red, a model that kept 10 focused files earned four badges, while one that logged everything into 413 files earned one. Stronger models do better when told what memory is for rather than given fixed rules, and dreaming caught a wrong navigation note that otherwise trapped the agent in a loop.

  • TextQuests: How Good are LLMs at Text-Based Video Games?

    Hugging Face easyNovice

    TextQuests is an agent benchmark built on 25 classic Infocom interactive fiction games. It tests LLMs on long-context reasoning and learning through exploration, with no external tools. Each model gets 500-step runs with and without official hints, keeps the full untruncated history, and is scored on checkpoint-based game progress and a harm metric for unethical in-game actions. As context grows past 100K tokens, models hallucinate past actions, loop, repeat old actions instead of planning, and fail at spatial tasks like reversing a climb in Wishbringer or solving Zork I's maze. More reasoning tokens help only up to a point, which suggests agents should scale their thinking effort to each step.

  • Your Agent Aced the Task. Will It Do It Again?

    Hugging Face mediumAdept

    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. The gap comes from flat next-token distributions at certain decision points, where near-ties flip under platform noise and the flips compound across a trajectory. IBM's Consistency Analyzer in ALTK-Evolve finds these flip-prone steps from a single recorded trace by resampling k completions per step, with no ground truth or replay needed, and turns them into injected guidelines. The guidelines cut the gap to 12.0pp (Pass^5 53.0% to 69.0%) without lowering mean accuracy, and they transfer to similar tasks. The authors recommend reporting Pass^k next to Mean@k.

  • Turning Database Grading into RL Rewards: Post-Training Agents with ThinkingBox

    Hugging Face hardMaster

    Executable checks on terminal database state, originally built to grade agents in ThinkingBox-Bench, double as binary RL rewards for post-training tool-using agents. Fine-tuning Qwen3.8-27B with token-mean GRPO for 50 steps on 187 out-of-distribution tasks raised pass@1 from 51.70% to 60.78% and tasks solved on all 20 attempts from 38 to 107, while pass@20 coverage dipped slightly, consistent with sharpening. The key lever is offline policy-relative difficulty: candidate tasks are probed against the base policy, a Jeffreys Beta posterior estimates success probability, and only tasks likely to yield mixed reward groups (non-zero GRPO advantage) are kept. Cost per dependable task fell from $24.36 to $8.00, approaching frontier models.

  • Give Your Coding Agents a Memory You Own

    Hugging Face mediumAdept

    funes is an open-source, single-binary memory layer that indexes the session traces of coding agents (Claude Code, Codex, pi, Hermes) so any agent can recall past decisions and rationale with exact provenance. A deterministic pipeline parses traces into a common turn-and-block shape, chunks and embeds them locally into an append-only Lance dataset, and answers queries with hybrid vector+BM25 search, rank fusion, cross-encoder reranking, recency reweighting and neighbor-chunk expansion. Memories can be published to a private Hugging Face dataset with secret redaction, letting them follow you across machines, agents and teammates. On a handoff-vs-recall benchmark, recall was 4-8x cheaper than a written handoff, while compaction failed on one task because its summary flattened key findings.

The quest for software engineering knowledge.

Look:
Layout: