IN THIS BREAKDOWN · 10 SECTIONS
You can read 23% of this breakdown.
The paper in one minute
There are two ways to make an LLM system better after training: change its weights, or change its context, meaning the instructions, examples, memory and evidence it sees. Context changes are cheap, readable and reversible, so most production improvement happens there. The question is how to accumulate what the system learns without someone hand-editing a prompt forever.
The authors identify two failure modes in existing automated approaches. Brevity bias: prompt optimizers reward short, general instructions and drop the specific tactics, tool quirks and failure modes that agents need. Context collapse: methods that ask an LLM to rewrite the whole accumulated context at every step tend to compress it. In one case study a context of 18,282 tokens was rewritten to 122 tokens in one step, and accuracy fell from 66.7 to 57.1, below the 63.7 the agent scored with no adaptation at all.
ACE (Agentic Context Engineering) treats context as a growing playbook of itemized bullets. A Generator attempts tasks with the current playbook. A Reflector reads what happened and extracts concrete lessons. A Curator turns those into small additions, a "delta", which are merged into the playbook without rewriting it. Each bullet carries counters for how often it helped or hurt, duplicates are merged by embedding similarity, and the whole thing grows and gets refined.
On the AppWorld agent benchmark and two financial reasoning benchmarks, ACE beat strong baselines by 10.6% and 8.6% on average, cut adaptation latency by 86.9% on average, and, using an open model, roughly matched the top production agent on the AppWorld leaderboard.
Research notes: the problem, approach and results
a full-rewrite baseline's context in one step, with accuracy falling below no adaptation
AppWorld average with an open model, against 60.3% for the top production agent on the leaderboard
average adaptation latency against prior context-optimization methods
Agents can improve by updating their instructions and memory, but prompt optimizers favor short summaries, and repeated full rewrites shrink contexts until lessons are lost.
Keep the context as an itemized playbook. A Generator works, a Reflector extracts lessons, a Curator adds small delta updates; duplicates merge and harmful bullets get pruned.
+10.6% on agent tasks and +8.6% on finance benchmarks over strong baselines, at a fraction of the adaptation cost, with one caveat: without reliable feedback it can make things worse.
Why it matters to an FDE
Every deployment generates lessons: this API paginates at 20, that date field is UTC, refunds above a threshold need approval. Today those lessons live in an engineer's head or get pasted into a system prompt that grows until someone "cleans it up" and deletes half of them. ACE is a disciplined version of that loop.
Keep lessons itemized. A playbook of separate, scored bullets can be added to, audited and pruned one item at a time. A single prompt rewritten by a model or a person loses things silently. The 18,282-to-122 collapse is the extreme version of the cleanup every team has done.
Self-improvement needs a trustworthy signal. ACE learned well from execution feedback in the agent tasks: code ran or failed, the API call succeeded or not. On the finance tasks without ground-truth labels, it degraded; online, without labels, it scored 67.3 on FiNER against a base of 70.7. A system that learns from its own guesses learns its own mistakes. Wire adaptation to real outcomes, such as test results, API errors or human corrections, or do not turn it on.
Contexts are auditable; weights are not. The authors point out that an itemized playbook supports selective unlearning: a lesson that turns out wrong, or that encodes data that must be forgotten, can be removed, which compliance teams will ask about.
Understand the mechanism. Try it on a real problem.
Unlock this breakdown and 49 more papers.
Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.
6 months · One payment · No auto-renewal
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦3 results tables
- ?5 interview questions with answers
- 03Key takeaways
The ideas to keep, the three roles, results with and without labels, and the misreadings to avoid
Free account - 04How it works
The three roles, delta updates, grow-and-refine and the offline and online modes, with a diagram
Premium - 05The numbers that matter
Benchmark results, cost reductions, the collapse example and the robustness checks
Premium - 06Try it yourself
A playbook with delta merges, dedup and pruning, against a full rewrite under length pressure
Premium - 07Where it breaks
The dependence on feedback, the Reflector, and where long playbooks do not help
Premium - 08Using it on a deployment
Building a reviewed lesson loop for a customer's agent
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
