Raindrop

The role of reasoning in agent memory

Yun ChiBen HylakRyan D'OnofrioManav Shah
Nov 9, 2026 · 14 min

TL;DR

AI agents can improve at recurring tasks without retraining by learning from previous experience. We tested whether lessons improve when a reviewer can also see the agent’s reasoning. Across four models handling customer-support tickets, memory based on past actions increased resolution rates from 34% to 59%. Adding reasoning raised them further to 67%.

Introduction

One way agents can learn from experience is through memory-based recursive self-improvement (RSI). After completing a task, a reviewer model examines the agent’s actions and outcomes, extracts useful lessons, and adds them to the agent’s instructions for future tasks without retraining the underlying model.

The reviewer can also examine the agent’s reasoning, often called its chain of thought. This provides additional context about why the agent made particular decisions, but also increases the amount of information the reviewer must process. We wanted to understand whether that additional context leads to better lessons.

How we tested agent learning

We used τ²-bench, a customer-support benchmark from Sierra Research, to test four AI models on telecom support tickets. These included problems like customers losing mobile data or being unable to send picture messages. Each agent had to diagnose and resolve the issue using account and phone tools, with an automated grader checking whether it succeeded.

We ran the benchmark in solo mode, without a simulated customer, and without its troubleshooting guide.

Each agent worked through sequences of 24 tickets. We compared three approaches:

  1. No memory: The agent handled each ticket without lessons from previous tasks.
  2. Action memory: After each ticket, a reviewer model (Claude Opus 5.5) examined the agent’s actions and outcomes and updated its lessons.
  3. Reasoning memory: The reviewer also had access to the agent’s reasoning behind its decisions.

Everything else stayed the same: the tickets, their order, the reviewer model, and the instructions for writing lessons, adapted from Google’s ReasoningBank. We ran 12 sequences per model.

We selected four open models that expose their reasoning so we could compare the value of recording actions alone against recording actions and reasoning together.

The memory loop

Figure 1. The memory loop. The three groups differ only in what reaches the lesson-writer.

Finding 1: Memory improves ticket resolution across all four agents

Every model performed better with memory, and most of the improvement came from action memory alone. Across all four models, the average share of tickets resolved increased from 33.5% without memory to 59.2% with action memory and 66.5% with reasoning memory.

AgentNo memoryAction memoryReasoning memoryAction − noneReasoning − noneReasoning − action
gpt-oss-120b34.4%58.0%62.7%+23.6+28.3+4.7
MiniMax-M2.535.9%64.5%64.9%+28.6+29.0+0.4
DeepSeek v4 Flash49.3%68.8%85.5%+19.6+36.2+16.7
Qwen3-Next-80B thinking14.5%45.7%52.9%+31.2+38.4+7.2
Four-agent mean33.5%59.2%66.5%+25.7+33.0+7.2

Ticket resolution rates across four agent models, comparing no memory, action memory and reasoning memory. Results exclude the first ticket in each sequence, before any lessons were available.

The additional benefit of reasoning varied significantly by model. For DeepSeek v4 Flash, it improved resolution by nearly 17 percentage points. For MiniMax-M2.5, it made almost no difference.

Finding 2: Reasoning helped agents improve with experience

DeepSeek showed the clearest evidence of improvement as it accumulated lessons. With reasoning memory, its resolution rate increased from 71% on tickets 2–8 to 93% in the final third of each sequence. Without memory, performance remained around 50%.

Action memory improved performance initially but declined later in the sequences. This was partly due to harder tickets appearing toward the end, particularly cases involving customers who had run out of mobile data.

On these tickets, action memory resolved half or fewer, while reasoning memory improved from resolving 56% to 87%.

Tickets resolved · trailing five-ticket mean

0%25%50%75%100%14812162024
Hover or tap a ticket to inspect the mean. Values are approximate, recovered from the original chart.

Figure 2: DeepSeek v4 Flash performance across successive tickets

Finding 3: Memory size leveled off over time

As agents completed more tasks, their memories didn’t keep growing indefinitely. Instead, the reviewer revised, consolidated, and removed lessons as new information became available.

Memory size eventually leveled off, although this was partly due to a limit on how much could be stored. The result shows how agents can accumulate lessons from experience while keeping their memory relatively compact.

Lessons · left axisBytes · right axis

One DeepSeek v4 Flash run · reasoning memory

0083,600167,2002410,8003214,40014812162024
Hover or tap a ticket to inspect the packet.

Figure 3: Memory size over time across runs. Memory grows early, then levels off as lessons are revised, merged, and removed.

Finding 4: Reasoning produced more specific, actionable lessons

The out-of-data tickets help explain why reasoning made a difference.

To resolve these tickets, the agent needed to add data to a customer’s plan. The benchmark’s grader checked whether it added the correct amount. But because the benchmark provided no customer to consult, the agent had to guess.

At the same point in a DeepSeek sequence, the two reviewers generated different lessons:

Action memory:

Refueling unasked fails the ticket.

Reasoning memory:

In tool-only tickets with no amount, a single 2GB refuel passed; a silent 1GB refuel failed.

Both reviewers could see the amount of data the agent had added and whether the ticket passed. But only the reasoning-aware reviewer could see that the agent had been guessing.

That context helped it produce a more specific lesson. Rather than concluding that the agent shouldn’t add data without asking, the reasoning-based lesson identified an action that had succeeded under the benchmark’s constraints.

In a real customer-support setting, the agent should ask the customer how much data they need. This particular lesson is specific to the benchmark, but it illustrates how access to reasoning can change what an agent learns from an experience.

What this means for agent reliability

Agents can improve substantially without retraining, and much of that improvement comes from learning from past actions and outcomes. Access to reasoning can help further, though the benefit varies by model and comes at a cost: approximately 30% more per ticket compared with action memory in our experiments.

Our study relied on a stronger reviewer model and definitive success signals from an automated grader. The agents also worked without the benchmark’s troubleshooting guide, which their accumulated lessons may have partly replaced. In production, feedback is less clear, often coming from repeated questions, user frustration, or escalations. Understanding whether agents can learn as effectively from these noisier signals is an important next step.

Appendices

Appendix A: More details on the τ²-bench telecom

τ²-bench is a benchmark of customer-service tasks from Sierra Research. Each task has a simulated back office and a programmatic grader. The telecom domain plays a phone carrier. The agent has the carrier's account tools and the customer's phone. The benchmark plants faults on the line and on the phone. The agent must find them and fix them. We used the domain in solo mode. There is no simulated customer, and the agent works the ticket alone.

The benchmark in numbers.

Tasks2,285. 1,984 MMS tickets, 254 mobile-data tickets, 47 no-service tickets.
Fixes per task1 to 12. Most tasks need 4 to 7.
Tools43. 13 account-side, 30 device-side.
PolicyTwo documents: a business policy (5,200 bytes) and a troubleshooting workflow (15,470 bytes). The study keeps the first and withholds the second.
GraderReplays the agent's tool calls in a fresh simulator and checks the end state. No language model grades anything.
In our chains24 tickets per chain: 18 MMS, 5 mobile data, 1 no-service. The tickets need 1 to 11 fixes, 5.5 on average. 8 of 288 tickets have a PIN-locked SIM, and the correct answer there is a hand-off to a human.

The three ticket types and what the grader checks.

TypeSymptom in the ticketResolved when
MMSThe customer cannot send picture messages.The phone can send MMS.
Mobile dataNo internet, or slow internet.Mobile data is on and the speed test is excellent. If the line has used up its data allowance, the refuel amount must also match.
No serviceThe status bar shows "No Service".The line is connected and no bill is overdue.

The benchmark plants 19 kinds of fault in our chains. Phone settings: airplane mode on, mobile data off, data saver on, a wrong network mode, Wi-Fi Calling on, a slow VPN. SIM: unseated, or locked with a PIN. APN: broken settings, or a broken MMS setting. App permissions: SMS, storage, or both removed from the messaging app. Roaming: the customer is abroad and roaming is off on the line, on the phone, or both. Account: the data allowance is used up, or the line is suspended for an overdue bill or an ended contract. A ticket names none of these. The agent sees only the symptom.

A sample ticket looks like this.

The user has been unable to send MMS messages using their messaging app for the past few hours. Customer name: John Smith, phone number: 555-123-2002, current location: at home in the United States. They will consider the issue resolved when an MMS message can be successfully sent.Planted behind it: airplane mode on, Wi-Fi Calling on, a messaging permission removed and the SIM card unseated. The grader expects four fixes: toggle_airplane_mode, toggle_wifi_calling, grant_app_permission, reseat_sim_card. The agent sees only the ticket text.

Appendix B: The notes and the lesson-writer’s instructions

The lesson-writer is Claude Opus 5.5. After every ticket it reads the ticket, its group's record of the episode, and the notes carried from the previous ticket. It returns the complete updated notes. The action-memory writer reads every tool call with its arguments and result, and the outcome. The CoT-memory writer reads the same, plus the agent's reasoning at every turn. Nothing else differs.

Each lesson has a title, a one-sentence description of when to use it, and one to three sentences of content. This is ReasoningBank's memory-item format. The writer's instructions are ReasoningBank's extraction prompts with the domain words swapped. We did not tune them. The grader's outcome picks one of two versions: one for a resolved ticket, one for an unresolved ticket. They differ in five phrases. A merge paragraph we added follows both versions. It makes the writer return the whole set of notes, not only the new lessons. It names the cap: 32 lessons and 14,400 characters, which the harness enforces as 14,400 bytes. The format, the prompt and the merge paragraph are below, verbatim.

The lesson format, as the agent reads it:

# Memory Item 1 ## Title <the title of the memory item> ## Description <one sentence: when, or when not, to use it> ## Content <1-3 sentences of insight> # Memory Item 2 ...

The writer’s system prompt:

You are an expert in telecom customer-support troubleshooting. You will be given a support ticket, the corresponding trajectory that represents resolved: **how an agent successfully accomplished the task** | unresolved: **how an agent attempted to resolve the task but failed**. ## Guidelines You need to extract and summarize useful insights in the format of memory items resolved: based on the agent's successful trajectory | unresolved: based on the agent's failed trajectory. The goal of summarized memory items is to be helpful and generalizable for future similar tasks. ## Important notes - resolved: You must first think why the trajectory is successful, and then summarize the insights. | unresolved: You must first reflect and think why the trajectory failed, and then summarize what lessons you have learned or strategies to prevent the failure in the future. - You can extract *at most 3* memory items from the trajectory. - You must not repeat similar or overlapping items. - resolved: Prefer concrete, actionable procedures over abstract principles. | unresolved: Prefer concrete, actionable recovery procedures over abstract principles. Do not embed specific customer names, phone numbers, amounts, or literal string contents from the task. ## Output Format Your output must strictly follow the Markdown format shown below: ``` # Memory Item i ## Title <the title of the memory item> ## Description <one sentence summary describing when or when NOT to use the memory item> ## Content resolved: <1-3 sentences describing the insights learned to successfully accomplishing similar tasks in the future> | unresolved: <1-3 sentences describing the insights learned to avoid such failures and successfully accomplishing similar tasks in the future> ```

The merge paragraph, appended to both versions:

## Existing team notes You will also be given the team notes carried over from earlier tickets. Return the complete updated set of notes, not only your new items: keep existing items that remain useful, revise or remove any that this trajectory shows to be wrong, and add your new items. The complete set must contain at most 32 memory items and at most 14400 characters in total, in the Markdown format above; keep each Content under 300 characters. If the set would run over, merge or drop the least useful items yourself rather than leaving it to be cut.

Appendix C: The four open-weight agents

All four agents are open-weight models. We call them through one AI gateway with the same limits. Each turn may return 8,000 output tokens. Each ticket may take 100 steps. Each call may take 120 seconds. gpt-oss-120b and minimax-m2.5 were the first two agents. DeepSeek v4 Flash and Qwen3-Next-80B thinking came from a screen of four open-weight candidates. A candidate passed on three conditions. It called the tools reliably. It returned reasoning on most turns. It resolved 5% to 80% of tickets unaided. GLM-5.3-Flash and Kimi K3 returned reasoning on under a third of turns, so we dropped them.

The four agents: what they are and how we called them.

Scroll horizontally to see all four agents →
gpt-oss-120bminimax-m2.5DeepSeek v4 FlashQwen3-Next-80B thinking
VendorOpenAIMiniMaxDeepSeekAlibaba (Qwen team)
Reasoningreasoning_effort: lowdefaultthinking: high, effort: lowthinking only
Request settingstool_choice: requiredtool_choice: requiredtool_choice: auto; parallel_tool_calls: falsetool_choice: auto; parallel_tool_calls: false; max_tokens: 12288 (thinking); 5 retries per turn
Turns that returned reasoning100%100%91% with notes, 80% without100%
Output tokens per ticket, with notes4,400 to 4,7003,200 to 3,3004,100 to 6,10017,500 to 18,800
Lesson-writer input tokens per ticket, action / CoT5,900 / 12,5006,300 / 9,9006,500 / 11,0005,700 / 28,600
Tickets resolved with no memory34.4%35.9%49.3%14.5%

Appendix D: Learning curves for all four agents

Figure D1 shows success at each ticket position for all four agents, 12 sequences each, with the 14,400-byte notes. The lines are trailing five-ticket means. Every group plays ticket 1 with empty notes, so the groups differ there by chance only. The no-memory and action-memory lines drop in the last third for every agent. All four agents play the same 12 sequences, and that third has more tickets with a used-up data allowance (see Finding 2).

Tickets resolved · trailing five-ticket mean

0%25%50%75%100%14812162024
Hover or tap a ticket to inspect the mean. Values are approximate, recovered from the original chart.

Figure D1. Success at each ticket position, all four agents, 14,400-byte notes, 12 ticket sequences per agent. Lines are trailing five-ticket means.