Paper deep dive
Memento-Skills: Let Agents Design Agents
Huichi Zhou, Siyuan Guo, Anjie Liu, Zhongwei Yu, Ziqin Gong, Bowen Zhao, Zhixun Chen, Menglong Zhang, Yihang Chen, Jinsong Li, Runyu Yang, Qiangbin Liu, Xinlei Yu, Jianmin Zhou, Na Wang, Chunyang Sun, Jun Wang
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 96%
Last extracted: 3/22/2026, 6:08:31 AM
Summary
Memento-Skills is a generalist, continually-learnable LLM agent system that employs a 'Read-Write Reflective Learning' mechanism to autonomously construct and refine task-specific agents. By using a memory-based reinforcement learning framework with stateful prompts and an evolving skill library (stored as markdown files), the system enables continual learning without updating LLM parameters. It demonstrates significant performance gains on benchmarks like GAIA and Humanity's Last Exam.
Entities (5)
Relation Signals (4)
Memento-Skills â utilizes â Read-Write Reflective Learning
confidence 100% ¡ the agent continually improves via the ReadâWrite Reflective Learning mechanism
Memento-Skills â evaluatedon â General AI Assistants
confidence 95% ¡ Experiments on the General AI Assistants benchmark
Memento-Skills â evaluatedon â Humanity's Last Exam
confidence 95% ¡ and Humanity's Last Exam demonstrate sustained gains
Read-Write Reflective Learning â instantiates â Stateful Reflective Decision Process
confidence 90% ¡ We instantiate the SRDP framework of Memento 2 with a concrete system, Memento-Skills
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:We introduce \emph{Memento-Skills}, a generalist, continually-learnable LLM agent system that functions as an \emph{agent-designing agent}: it autonomously constructs, adapts, and improves task-specific agents through experience. The system is built on a memory-based reinforcement learning framework with \emph{stateful prompts}, where reusable skills (stored as structured markdown files) serve as persistent, evolving memory. These skills encode both behaviour and context, enabling the agent to carry forward knowledge across interactions. Starting from simple elementary skills (like Web search and terminal operations), the agent continually improves via the \emph{Read--Write Reflective Learning} mechanism introduced in \emph{Memento~2}~\cite{wang2025memento2}. In the \emph{read} phase, a behaviour-trainable skill router selects the most relevant skill conditioned on the current stateful prompt; in the \emph{write} phase, the agent updates and expands its skill library based on new experience. This closed-loop design enables \emph{continual learning without updating LLM parameters}, as all adaptation is realised through the evolution of externalised skills and prompts. Unlike prior approaches that rely on human-designed agents, Memento-Skills enables a generalist agent to \emph{design agents end-to-end} for new tasks. Through iterative skill generation and refinement, the system progressively improves its own capabilities. Experiments on the \emph{General AI Assistants} benchmark and \emph{Humanity's Last Exam} demonstrate sustained gains, achieving 26.2\% and 116.2\% relative improvements in overall accuracy, respectively. Code is available at this https URL.
Tags
Links
- Source: https://arxiv.org/abs/2603.18743v1
- Canonical: https://arxiv.org/abs/2603.18743v1
Trouble viewing inline? Open PDF directly â
Full Text
55,646 characters extracted from source content.
Expand or collapse full text
Memento-Skills: Let Agents Design Agents Memento-Team Abstract We introduce Memento-Skills, a generalist, continually-learnable LLM agent system that functions as an agent-designing agent: it autonomously constructs, adapts, and improves task-specific agents through experience. The system is built on a memory-based reinforcement learning framework with stateful prompts, where reusable skills (stored as structured markdown files) serve as persistent, evolving memory. These skills encode both behaviour and context, enabling the agent to carry forward knowledge across interactions. Starting from simple elementary skills (like Web search and terminal operations), the agent continually improves via the ReadâWrite Reflective Learning mechanism introduced in Memento 2 [17]. In the read phase, a behaviour-trainable skill router selects the most relevant skill conditioned on the current stateful prompt; in the write phase, the agent updates and expands its skill library based on new experience. This closed-loop design enables continual learning without updating LLM parameters, as all adaptation is realised through the evolution of externalised skills and prompts. Unlike prior approaches that rely on human-designed agents, Memento-Skills enables a generalist agent to design agents end-to-end for new tasks. Through iterative skill generation and refinement, the system progressively improves its own capabilities. Experiments on the General AI Assistants benchmark and Humanityâs Last Exam demonstrate sustained gains, achieving 26.2% and 116.2% relative improvements in overall accuracy, respectively. Code is available at https://github.com/Memento-Teams/Memento-Skills. R0R1R2R3 Round 20 30 40 50 60 70 Performance (%) Eng. 27.6 Eng. 42.1 (+14.5) CS 19.8 CS 46.5 (+26.7) Phy. 21.1 Phy. 47.4 (+26.3) Math 30.0 Math 51.2 (+21.2) Other 41.8 Other 57.0 (+15.2) Bio. 30.3 Bio. 60.7 (+30.4) Chem. 38.8 Chem. 62.4 (+23.6) Human. 36.9 Human. 66.7 (+29.8) (a) Humanity's Last Exam R0R1R2R3 Round 40 50 60 70 80 90 100 Level 3 45.5 Level 3 72.7 (+27.2) Level 2 74.4 Level 2 93.0 (+18.6) Level 1 58.6 Level 1 96.6 (+38.0) (b) General AI Assistants Total: 41 skills (c) After GAIA Learning Total: 235 skills (d) After HLE Learning Legend Learning Curves Round 0 Rounds 1-2 Round 3 Skill Types Atomic skills (5) Learned skills Skill Clusters Search / Web (48) Quantum / Physics (47) Math / Chemistry (44) Code / Text (38) Download / Verify (28) Clinical / Excel (27) Chess / Game (20) Python / Script (19) Skill Clusters Search / Web (48) Quantum / Physics (47) Math / Chemistry (44) Code / Text (38) Download / Verify (28) Clinical / Excel (27) Chess / Game (20) Python / Script (19) Figure 1: Overview of self-evolving results of Memento-Skills on two benchmarks. (a,b) depict the progressive improvement in task performance across reflective learning rounds on HLE and GAIA. (c,d) depict the corresponding growth of the skill memory, while organising learned skills into semantically meaningful clusters. arXiv:2603.18743v1 [cs.AI] 19 Mar 2026 Memento-Skills: Let Agents Design Agents1 1 The Self-Evolving Agent Problem c THE LOBBY Monday 9:47am, a startup office. The espresso machine is broken. J a : (arrives carrying a thermos of tea, surveying a wall of red Grafana dashboards) Good morning. I see the agent is still performing at exactly 73%. Remarkable consistency, really. Like a student who reliably gets a C+. H b : (spins around in chair, three monitors glowing) I tried throwing more GPUs at it over the weekend. Accuracy went from 73.2% to 73.4%. Progress! S c : (without looking up from terminal) Thatâs within the confidence interval, H. You spent $400 in compute to learn nothing. H: But what if we fine-tune it on the tickets it got wrong? J: And how many wrong tickets do you have? H: . . . about 200. J: (sips tea) Youâd overfit before the loss function finished its first cup of coffee. No. What we need is a system that learns the way you learn, H â by remembering your mistakes and not repeating them. Not by rewriting your neurons. S: So, a database. J: (smiling) A very principled database. With convergence guarantees. S: (finally looks up) You had me at âdatabaseâ and lost me at âconvergence guarantees.â But fine. Show me the architecture. J: (uncaps a marker, draws a loop on the whiteboard) Read from memory. Act. Get feedback. Write to memory. Repeat. I call it ReadâWrite Reflective Learning. H: Thatâs just. . . a for-loop with a vector store. J: (beaming) Exactly! But a for-loop with convergence guarantees. S: (sighs, opens a new terminal tab) Fine. Iâl build it. You prove it. H, you benchmark it. Letâs go. a Tenured theorist. b Second-year CS PhD student. c Senior ML engineer, 12 years in production. 1.1S 1 Why Frozen LLMs Need External Memory Modern machine learning is about learning from experience [14,16]. At the forefront of this evolution, Large Language Models (LLMs) have fundamentally reshaped the learning paradigm, demonstrating exceptional performance across diverse scenarios through few-shot learning [3], supervised fine-tuning [18], and post-training [5]. Despite their promise, however, achieving practical utility typically requires parameter optimisation via backpropagation [13], which in turn demands vast amounts of data and computational resources. In practice, the cost and complexity of continual parameter updates mean that most LLM agents are deployed as frozen models [20]: their parametersθremain fixed after pre-training (Figure 2). When such an agent encounters a novel task, it draws only on knowledge encoded in θ and whatever fits in its context window. ÂJ: This is the key premise. Ifθis fixed, all adaptation must come from the input â the prompt, the context, or in our case, the memory. Everything else is just expensive gradient descent cosplay. 1 This is the shared track, which presents material common to both research track and practitioner tracks. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents2 Pre-training θ â = arg min θ L LM Massive corpora Billions of tokens Fine-tuning θ Ⲡ= θ â â ΡâL task Task-specific data SFT / RLHF / DPO Deployment-time Learning M t+1 âWrite(M t ,r t ) Live experience Frozen θ, evolvingM Ours adapt θ freeze θ What learns: model weightsθ What learns: model weightsθ What learns: external memoryM âźtrillions of tokensâźthousands of examples each deployment interaction Figure 2: The three paradigms of LLM adaptation. Pre-training and fine-tuning update the model parametersθand require large data and compute budgets. Deployment-time learning (this work) keepsθfrozen and instead accumulates experience in an external skill memoryM, enabling continual adaptation from live interactions at zero retraining cost. State s t (New ticket) READ c t âź Îź(¡|s t ,M t ) LLM Act a t âź p LLM (¡|s t ,c t ) Environment feedback r t , s t+1 WRITE M t+1 â Write(M t ,s t ,a t ,r t ) Skill Memory M t next Figure 3: Overview of the ReadâWrite Reflective Learning loop. Given a new task, the agent retrieves a relevant skill from the skill memory (Read), executes it through the frozen LLM (Act), and uses the resulting feedback to reflectively optimise and update the skill library (Write). The LLM parameters remain fixed throughout; all adaptation occurs in the memory. This creates a fundamental limitation: the agent is stateless and it cannot learn from its own deployment experience. The Stateful Reflective Decision Process (SRDP) [17] resolves this by augmenting the agent with an episodic memory M t that grows over time (Figure 3): Ď Îź (a| s,M t ) = X câM t Îź(c| s,M t ) p LLM (a| s,c),(1) wherep LLM denotes the LLM decision kernel,sis the current state,crepresents a retrieved case from the episodic memory M t , and Îź is the retrieval policy. : Wait â so the LLM doesnât change, but the policy changes because the memory changes? Thatâs like. . . levelling up in a game without upgrading your character. You just get better items. ĂĄS: I prefer to think of it as a cache that makes you smarter. Which is basically what senior engineers are â junior engineers with better caches. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents3 1.2R 2 Stateful Reflective Decision Process e RESEARCH TRACK Formal Setup Definition 1.1 (Skill Memory). A skill memoryM t =c i N t i=1 is a finite, growing collection of reusable skill artefacts. Unlike traditional episodic memory that logs raw transitions, each c i encapsulates a declarative specification, prompts, and executable code. The space of all finite skill memories is denotedM. Definition 1.2 (SRDP).D SRDP =â¨S,A,P,R,Îł,M,p LLM âŠ, extending the standard MDP with episodic memoryM and an LLM decision kernel p LLM (a| s,c). ÂJ: The critical insight: by augmenting the state tox t := (s t ,M t ), we recover the Markov property. Everything old is new again â I said this in a 2003 workshop paper. The Reflected MDP reformulates this asD ReMDP =â¨X,C,P LLM ,R LLM ,ÎłâŠwith transition kernel: P LLM (x Ⲡ| x,c) = X aâA p LLM (a| s,c) 1x Ⲡ= (s Ⲡ, Write(M,s,a,r))P(s Ⲡ| s,a). (2) In Memento-Skills, theWrite(M,s,a,r) operation is not a simple append. It encapsulates the skill-level reflective updatesâperforming failure attribution and file-level rewriting to mutate the prompt or code insidec. By augmenting the state tox t := (s t ,M t ), the system remains Markovian even as the skill library evolves.  KEY RESULT Theorem 1.3 (Convergence, Memento 2 [17], Thm. 8). Under bounded rewards |r|⤠R max andÎł <1, the KL-regularised soft policy iteration over the Reflected MDP converges to the optimal retrieval policy Îź â . 1.3P 3 From Zero to Self-Evolving Agent Ă PRACTITIONER TRACK Getting Started in 5 Minutes \ H: Can I pip-install convergence guarantees? ĂĄ S: No, but you can pip-install the system that has them. Installation: git clone https :// github.com/Memento-Teams/Memento-Skills.git cd Memento-Skills python -m venv .venv && source .venv/bin/activate pip install -e . memento agent PDF copying may mangle this command. Click hereto copy from the repo. Configuration ( /memento_s/config.json): 2 This is research track, which presents theory setup, convergence proofs, and KL-regularised routing analysis. 3 This is practitioner track, which presents installation, API, retrieval pipeline, and benchmark recipes. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents4 # Memento-S configuration "llm": "active_profile": "default", "profiles": "default": "model": "your-provider/your-model", "api_key": "your-api-key", "base_url": "https :// your-api-url/v1" , "env": "TAVILY_API_KEY": "your-search-api-key" Your first self-evolving agent: Figure 4: The GUI of Memento-Skills. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents5 1.4S From Theory to Configuration BRIDGE In the foundational theory of Memento 2 [17], ReadâWrite Reflective Learning is cast as an implicit form of policy iteration operating over raw episodic memory (past states, actions, and rewards). Memento-Skills bridges this theory to production by upgrading the memory unit from passive trajectory logs to an active skill library. Under this skill-centric paradigm, the two key operations take on concrete engineering forms: ⢠Writing (Policy Evaluation): Instead of merely appending interaction logs as in Memento 2, writing in Memento-Skills actively mutates the memory. It evaluates execution traces and consolidates the feedback by directly rewriting the reusable skill artefacts (code, prompts, and declarative specs). The policy itself is materialised and optimised within these skill folders. â˘Reading (Policy Improvement): Reading retrieves the most behaviourally relevant skill to guide the frozen LLM. By conditioning the agentâs action on an actively refined skill rather than a static prompt or raw historical trace, the system achieves effective policy improvement for the current task. User Task Memento AgentSkillRouterSkill Library Read Execution Null Skill Generate New Skill State Reflection Write Skill Optimisation Utility Rate Update Continual Learning Figure 5: The architecture of the Self-Evolving Agent based on Read-Write Reflective Learning. When a user submits a task, the agent uses a skill router to either retrieve an executable skill from its skill library or generate a new one from scratch, which it then executes to solve the problem. Following execution, the system reflects on the outcome to write back to the library, either by increasing the skillâs utility score if the action was successful, or by optimising its underlying skill folders if it failed. This continuous read-write loop enables the agent to progressively expand and refine its capabilities through continual learning, entirely without updating the underlying LLM parameters. \ H: Figure 5 makes it look so simple. Read a skill, run it, write it back. Kind of elegant, actually. ÂJ: As it should. A good conceptual figure abstracts away the incidental complexity and reveals the governing loop. ĂĄS: Sure. And a stick figure abstracts away anatomy. Figure 4 is fine for explaining the idea, but if you want me to trust this thing, I need the engineering drawing â where the config lives, how the router talks to execution, what gets persisted, and which box wakes me up at 3am. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents6 c THE LOBBY Tuesday 11am. H has just shared his screen. Everyone wishes he hadnât. (An awkward silence. H minimises the figure and opens a file explorer. A single Python file glows ominously on screen: main.py â 30,000 lines.) H: (sheepishly) So. . . I do have a working prototype. Itâs all in one file. But it works! S: (leans in, squints at the screen, then recoils as if physically struck) H. H. This is thirty thousand lines in a single file. H: Twenty-nine thousand, eight hundred andâ S: Do not finish that sentence. (scrolling furiously) Why is there anif-elifchain from line 4,200 to line 5,700? Thatâs fifteen hundred lines of conditionals. For what? H: Skill routing. Each skill type has its own branch. S: (voice cracking) You hard-coded five thousandif-elseclauses. There is aelif task_type == "biology_question_about_frogs" on line 4,847. About frogs, H. H: Frogs came up a lot in the HLE benchmark. . . J: (peering over his glasses with academic detachment) Fascinating. Youâve essentially hand- compiled a policy table into imperative spaghetti. Itâs like watching someone implement a hash map with a thousand if statements. S: (has found something worse, whispers) H. Line 12,000 to 18,000 is the skill evolution engine. Itâs in a function calleddo_everything_v3_final_FINAL. There are seven nested try-exceptblocks, and one of them catchesBaseExceptionand just. . . prints âyoloâ to stderr. H: (very quietly) That was a 2am commit. S: (closes laptop, stands up, walks to whiteboard) OK. Hereâs whatâs going to happen. (draws a box labelled âAgent Coreâ, then six more boxes radiating outward) We are going to take this 30,000-line abomination and decompose it. There will be modules. There will be interfaces. There will be separation of concerns. And the frog handler is the first thing to go. H: But itâ S: The frog handler goes. J: (quietly amused) You know, S, this is actually a perfect pedagogical example. H built a monolith that works but cannot evolve. Just like a frozen LLM â all the knowledge is there, but itâs entangled and rigid. The refactoring youâre about to do is exactly what the ReadâWrite loop does to skills: decompose, modularise, and make each unit independently improvable. S: (pauses mid-drawing) . . . I hate that you just made my code review into a metaphor for your paper. J: Everything is a special case of something I published in 2003. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents7 BRIDGE Figure 6: Component architecture of Memento-Skills â or, as S calls it, âthe thing that replaced 30,000 lines ofif-else.â The system centres on a Memento-Skills agent that coordinates the LLM client, context manager, built-in tools, and the skills system. The skills system manages both built-in and generated skills, while an evolution engine improves the skill store from task feedback over time. Contributions. Our main contributions are: 1.Skill-level reflective learning. We instantiate the SRDP framework of Memento 2 with a concrete system, Memento-Skills, that treats reusable skill folders (code, prompts, and declarative specs) as the unit of memory, enabling continual learning without any parameter updates. 2.Behaviour-aligned skill router. We train a contrastive retrieval model via single-step offline RL, casting skill routing as a KL-regularised Boltzmann policy that optimises for execution success rather than semantic similarity. 3.Empirical validation. On GAIA and HLE, Memento-Skills substantially outperforms the static Read-Write baseline, improving test accuracy by 13.7 and 20.8 percentage points, respectively. The results further show that cross-task transfer is strongest when the learned skill library aligns with benchmark domain structure, highlighting when self-evolving skill memory is most effective. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents8 2 ReadâWrite Reflective Learning c THE LOBBY Wednesday 2pm, the whiteboard is covered in dried-out equations J: (pointing at the learning curve on Hâs monitor) See that? Accuracy went from 73% to 84% in three days. Without touching the model. H: I plotted the memory coverage radius too. (pulls up a chart) Itâs decreasing likeO(n â1/d ), just like you predicted! S: Iâm more interested in why it retrieved the wrong case for ticket #4,721. Customer asked about a refund, agent retrieved a case about password resets. Cosine similarity was 0.91. J: Ah, the curse of embedding similarity. High cosine doesnât mean behavioural utility. In a library of 8,000 skills, semantic overlap is just noise. H: Canât we just use end-to-end RL to fine-tune the router? Let the agent learn from its own interaction outcomes? S: (deadpan) H, we have 8,000 skills but only a few hundred real-world tasks. The exploration space is a desert. If we wait for the agent to âstumbleâ upon the right skill through random exploration, weâl all be retired before it converges. J: Correct. The exploration-exploitation gap is too wide for on-policy learning. Thatâs why we move to the one-step offline view. We use the LLM as a âSimulatorâ to synthesise a dense field of positive and hard-negative queries. We arenât just matching strings; we are fitting aQ-function that predicts execution success before the first token is even generated. H: (opening a notebook titled âThings Prof J Says That Turn Out To Be Rightâ) OK, so synthetic goals, behaviour-aligned routing and then one-step RL. Iâm listening. 2.1S The Skill-Level ReadâWrite Loop Memento-Skills is grounded in the theory of ReadâWrite Reflective Learning [17], which provides the theoretical foundation for readâwrite memory updates as policy iteration. Empirically Memento [22] and case-based reasoning LLM agents [6,7] validate this principle across deep search, data science, and software engineering. As illustrated in Figure 5, the skill library serves as an external, writable memory, and the agent alternates between (i) reading skills to induce an execution policy for the current goal and (i) writing updates back to the skill artefacts based on post-hoc reflection. This mirrors a policy-iteration view. Reading corresponds to policy improvement: the agent retrieves the most relevant skill via a router conditioned on the current query and the accumulated tip memory, then executes the skillâs multi-step workflow to produce an answer. Writing closes the loop by combining policy evaluation and policy improvement at the skill level: the agent first evaluates by recording execution outcomes and diagnostic traces, then improves by using those traces to revise the skill artefacts that will govern future episodes. Crucially, the memory is not limited to episodic traces but consists of reusable skills, each containing a declarative specification (SKILL.md) together with helper scripts and prompts. Because the write operation rewrites the prompt or program that will be executed next, each write step directly improves the policy embodied in the skill. This self-evolving mechanism draws on a principle familiar from biological motor learn- ing [9]: early in skill acquisition, performance depends on deliberate, high-level planning; with repeated practice, neural pathways consolidate and execution becomes increasingly automatic [2]. Analogously, a newly created skill in Memento-Skills may be brittle and narrowly scoped, but through iterative revision it is consolidated into a robust, reusable routine, finally forming muscle R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents9 memory for recurring task patterns. Existing approaches to automatic skill learning either produce text-only guides that amount to prompt optimisation [1,15,10] or overfit to single-task trajectories with limited transferability [8]. In contrast, Memento-Skills learns executable, multi-artefact skills and refines them through a reflective read-write learning pipeline. Concretely, after a failed attempt, an LLM-based failure attribution selector first examines the full execution trace and the judgeâs rationale to identify the single skill most responsible for the error, performing credit assignment at the skill level. Given this diagnosis, a skill rewriter then proposes targeted file-level updates that add guardrails or alternative strategies for the observed failure mode while preserving the skillâs generality. When the running utility of a skill (its empirical success rate) drops below a threshold, indicating that in-place patching is insufficient, the system escalates to skill discovery: it either restructures the existing skill folder with a fundamentally different approach or synthesises an entirely new skill, expanding the library to cover novel regions of the task space. To prevent regression, all mutations are guarded by an automatic unit-test gate, a synthetic test case is generated, executed through the updated skill, and scored by the judge [21]. KEY INSIGHT The ReadâWrite loop is the heartbeat of Memento-Skills. Every interaction follows five steps: Observe â Read â Act â Feedback â Write. Ă ALGORITHM ReadâWrite Reflective Learning Require: Utility threshold δ, minimum samples n min , max feedback rounds K 1: Initialise skill library S 0 âS base , tip memory T 0 â â , utility table U 0 (s)â 0.5 âs 2: for t = 0, 1, 2,... do 3: (1) Observe: Receive task q t ; form augmented input x t = (q t ,T t ) 4: (2) Read [Skill Selection]: 5:Route: c t â Router(x t , S t ) 6:if c t = â and CreateOnMiss enabled: 7:c t â CreateSkill(x t ); S t âS t âŞc t 8: (3) Execute: Execute multi-step workflow a t â LLM(x t ,c t ) 9: (4) Feedback [Judge]: 10: r t â Judge(q t ,a t ,a â t ) 11: (5) Write [Reflective Update]: 12:(5a) Utility update: U t+1 (c t )â n succ (c t ) n succ (c t )+n fail (c t ) 13:if r t = correct: continue 14:(5b) Tip memory: T t+1 âT t âŞGenericTip(q t ,a t ,r t ) 15:(5c) Skill evolution: 16:c â â TargetSelector(trace t , r t , S extra t ) 17:if U t (c â ) < δ and n(c â )⼠n min : 18:c Ⲡâ DiscoverSkill(c â ,x t , trace t ); S t+1 âS t âŞc Ⲡ19:else: optimise existing skill in-place 20:S t+1 â OptimiseSkill(c â ,x t , trace t , S t ) 21:if UnitTestGate: validate S t+1 (c â ); rollback on failure 22:(5d) Feedback retry (⤠K rounds): 23:a Ⲡt â LLM(x t ,c â updated ); r Ⲡt â Judge(q t ,a Ⲡt ,a â t ) 24:if r Ⲡt = incorrect: repeat (5b)â(5d) 25: end for ÂJ: Steps 2 and 5 are exactly policy improvement and policy evaluation. This is not a metaphor â it is a mathematical identity. I will die on this hill. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents10 ĂĄS: And steps 1â4 are basically what every web server does: receive request, look up cache, generate response, log result. Weâve been doing âreflective learningâ in production for decades. We just didnât have convergence guarantees. 2.2P Self-evolving Architecture Ă PRACTITIONER TRACK The core of the self-evolving mechanism Figure 7: This flowchart illustrates the Self-Evolution Engine designed to transform task failures into system growth. It depicts a closed-loop pipeline where an orchestrator audits execution logs to generate, validate, and optimise new skills before persisting them into the global skill catalog. 2.3R InfoNCE Routing as a One-Step Soft Policy e RESEARCH TRACK Contrastive Retrieval as KL-Regularised One-Step RL Offline RL Router for Behaviour-Similar Retrieval. We find that purely semantic routers (e.g., BM25 [12] or embedding routers such as Qwen-Embedding [19]) are insufficient for skill selection, because they primarily capture semantic similarity between the user goal and skill text rather than behavioural similarityâi.e., whether executing a skill would produce the desired trajectory and outcome. To better align routing with execution behaviour, we train the router with single-step offline RL on top of an embedding model, so that retrieval optimises for behaviour similarity instead of lexical or semantic proximity. Skill database and synthetic query generation. In order to train a behaviour-similar retrieval model, we first crawl a local skill database of roughly 8kskills, and randomly sample about 3kskills as seed data to synthesise realistic user routing goals. To align the synthesised goals with the agentâs logic stream, we generate queries using only the skill name and description (without access to the full skill file), and then apply an LLM-based judge [21] that does read the full skill file to filter and verify the quality of the synthetic queries. This produces high-quality paired data consisting of positive queries (the target skill should be selected) and hard negatives (same domain and terminology, but the target skill is not the right tool). We include the full prompt used for query synthesis in Appendix C. Router score and multi-positive InfoNCE. Letenc θ (¡) map a skill documentdand a routing goal q to embeddings in R m : e(d) = enc θ (d),u(q) = enc θ (q), s(d,q) = e(d) ⤠u(q). In a minibatch ofBskillsd i , eachd i has positivesQ + i and hard negativesQ â i . Using all in-batch queries Q = B [ k=1 (Q + k âŞQ â k ), we minimise the multi-positive InfoNCE loss (temperature Ď): L i =â log P qâQ + i exp (s(d i ,q)/Ď) P qâQ exp (s(d i ,q)/Ď) , L = 1 B B X i=1 L i . R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents11 One-step offlineQ-learning view. Cast routing as a one-step MDP: stateq, actiond, reward r(q,d) indicating whether d is the right skill. With horizon 1, Q â (q,d) = E[r(q,d)]. We interpret the learned score as a softQ-function,Q θ (q,d)â s(d,q), yielding a Boltzmann routing policy Ď Î¸ (d| q) = exp(Q θ (q,d)/Ď) P d Ⲡexp(Q θ (q,d Ⲡ)/Ď) . This policy is equivalently the maximiser of a KL-regularised objective (uniform priorĎ 0 ): Ď â (¡| q) = arg max Ď n E dâźĎ [Q θ (q,d)]â Ď KL(ĎâĽĎ 0 ) o . : So a smallĎmeans âIâm pretty sureâpick this one,â while a largeĎmeans âno rushâspread probability mass around and take a broader look.â Why InfoNCE matches âpolicy fittingâ in one step. InfoNCE has the form âpush up positives, push down competitorsâ under the same softmax normaliser used byĎ Î¸ . Hence minimisingLis (approximately, via in-batch normalisation) maximum-likelihood training that makesĎ Î¸ place high probability mass on the logged rewarding pairs (positives) while suppressing hard negativesâi.e., single-step offline policy improvement for routing. 2.4P Implementing the Retrieval Pipeline Ă PRACTITIONER TRACK The Retrieval Engine ĂĄS: Hereâs the core retrieval class. Every line maps to an equation. I added the references in comments so H stops asking âbut why?â Figure 8: Overview of the retrieval pipeline in Memento-Skills. The system combines sparse BM25 recall and dense embedding-based retrieval, fuses the candidates with score-aware reciprocal rank fusion, and optionally applies a cross-encoder reranker to produce the final top-k skills. SHARED TRACK Router Evaluation Skill source filtering and deduplication. We first collect candidate skills from public GitHub repositories and unify them into a JSONL catalog. To retain only mature and broadly adopted skills, we keep entries withstars >500 and drop the rest. We then normalise description whitespace, compute a SHA-256 hash of each normalised description, and deduplicate by hash to remove duplicated or near-duplicated skills. When multiple rows share the same hash, we keep a single representative by a deterministic score: higherstars, R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents12 then newerupdatedAt, then lexicographically largerid. We optionally apply a second pass of name-level deduplication with the same tie-breaking rule. The resulting curated catalog is used as the base skill universe for router training data generation. We publicly open-source the dataset at https://skills.memento.run/market/. @1@5@10 K 0.00 0.20 0.40 0.60 0.80 1.00 Recall 0.32 0.47 0.53 0.54 0.79 0.86 0.60 0.82 0.90 Synthetic Recall@K route_hit_ratejudge_success_rate Metric 0.00 0.20 0.40 0.60 0.80 1.00 Rate 0.29 0.50 0.53 0.79 0.58 0.80 Real Trajectory Metrics BM25QWEN3-emb-0.6BMemento-Qwen (ours) Figure 9: Router performance evaluation. Left: Offline recall of three routing models evaluated on synthetic query-skill pairs. Right: End-to-end execution success rates for each router. Experimental Setting. We evaluate the performance of the skill router from two complementary angles: (i) offline retrieval quality on synthetic queries, and (i) end-to- end effectiveness on real execution trajectories. We use the Qwen3-Embedding-0.6B a as embedding model. Results. We report Recall@K over 140 synthetic routing queries, where a query is a hit if the ground-truth skill appears in the top-K candidates. As shown in Fig. 9 (left), Memento-Qwen consistently outperforms both BM25 and the Qwen3 embedding baseline across all values of K. Most notably, Recall@1 rises from 0.32 (BM25) and 0.54 (Qwen3) to 0.60, a relative gain of 10% over the strongest semantic baseline. By K=10 the gap widens to 0.90, indicating that behaviour-aligned training not only sharpens the top-1 pick but also populates the candidate list with more relevant alternatives. To test whether offline retrieval gains translate into real execution improvements, we measure two end-to-end metrics: route hit rate (whether the routerâs top-1 choice is an appropriate skill for the task) and judge success rate (whether the full trajectory actually solves the task). Fig. 9 (right) reveals that Memento-Qwen lifts route hit rate from 0.29 (BM25) and 0.53 (Qwen3) to 0.58, and judge success rate from 0.50 and 0.79 to 0.80. The disproportionately large improvement over BM25 confirms that lexical matching is a poor proxy for behavioural utility: many skills share domain terminology yet require fundamentally different execution strategies. Meanwhile, the smaller but consistent gain over Qwen3 shows that even dense semantic embeddings under-represent execution-relevant features, and that the single-step RL fine-tuning effectively injects behavioural signal into the embedding space. a https://huggingface.co/Qwen/Qwen3-Embedding-0.6B R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents13 3 Self-Evolving Evaluation c THE LOBBY Wednesday 2pm, Zoom call. Cameras on. H: (shrugs, sharing screen with a confusion matrix) Look, synthetic data is enough. Generate 10K queries, measure classification accuracy, call it router quality. I can have results by Friday. Paper by Monday. J: (leans forward, frowning at the matrix) Not enough. Accuracy is a proxy. Your synthetic queries are clean little sentences â real users type âpls fix the thing from last time thx.â We need real trajectories and end-to-end execution success to claim improvement. H: (eyes lighting up) Wait â so youâre saying we need a second evaluation? Thatâs a second paper. âOn the Insufficiency of Offline Metrics for Skill Routing.â I can see the title already. S: (deadpan, arms crossed) You are missing the point. If the agent retrieves a case that says âdelete the userâs config and start freshâ and the LLM executes it, none of your metrics matter. The customerâs environment is on fire and your confusion matrix says 94%. H: (already typing a new LaTeX file) âSafety-Aware Evaluation of Autonomous Skill Retrieval Systems.â Thatâs three papers, S. You just gave me a third paper. S: I gave you a production incident. Please stop turning my trauma into publications. J: (pointing at the camera) H, focus. âLooks correct on paperâ and âworks end-to-endâ are fundamentally different failure modes. I have a 2007 paper about this. H: Can I cite it? J: You must cite it. S: (tilts head) And âworksâ and âsafe to run in productionâ are different failure modes again. I have a 3am incident report about this. H: Can I cite that? S: Itâs in a private Slack channel marked #incident-2023-pain, so no. H: (typing reluctantly, adding rows to a spreadsheet) Fine. So what do we actually put in this paper? Iâm trying to stay under a page limit here, but every time one of you opens your mouth, I gain a new ablation study. J: (counting on fingers) Two validations we can run now. One: synthetic retrieval quality â does the router pick the right case? Two: trajectory success â does the full loop actually solve the task? S: (nods once) And we state clearly: each one covers a different failure mode. Passing both is necessary. Passing only one is a press release, not a result. Sandbox safety â whether it solves the task without breaking anything else â is the third axis, but that requires a proper isolation harness. Future work. H: (muttering while typing, a dangerous gleam in his eyes) Three benchmarks. Three failure modes. Three papers. Iâm naming them Goku, Vegeta, and Piccolo. Goku is the main paper â strongest contribution, hits first. Vegeta is the follow-up â technically impressive, slightly bitter about being second. Piccolo is the safety paper â everyone forgets about it, but it saves the day in the end. S: We need one paper, H. One. H: Goku can fuse with Vegeta. Thatâs canon. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents14 3.1S Experimental Setup and Results SHARED TRACK Which Benchmark is suitable for Memento-Skills? Experimental Settings. To validate the progressive capability expansion and skill- learning proficiency of Memento-Skills, we evaluate our system on two representative benchmarks: General AI Assistants (GAIA) [11] and Humanityâs Last Exam (HLE) [4]. These datasets naturally align with our objective of testing an agentâs ability to create, refine, and reuse skills across diverse reasoning tasks. General AI Assistants (GAIA). GAIA [11] comprises non-trivial, real-world questions with unambiguous answers that demand a combination of multi-step reasoning, multi- modality handling, web browsing, and general tool use. This environment serves as an ideal testbed for our skill-learning scenario, requiring the agent to dynamically synthesise and apply distinct skills to solve varied problems. From the GAIA validation set, we utilise 165 questions, splitting them into 100 training examples and 65 test examples. Humanityâs Last Exam (HLE). Developed by human experts, HLE [4] is designed to assess the limits of broad-domain reasoning and contains 2,500 questions across 8 diverse academic subjects (e.g., mathematics, humanities, and natural sciences). For our experiments, we sample a subset of questions evenly distributed across these categories, resulting in 788 training examples and 342 test examples. This structure allows us to evaluate how effectively Memento-Skills leverages and transfers learned skills between different questions within the same subject domain. Baselines. To isolate the contribution of the self-evolving mechanism, we compare Memento-Skills (the full system) against a Read-Write ablation that retains the same readâwrite reflective learning loopâskill retrieval, LLM execution, and feedback collectionâ but disables all skill-level optimisation: no failure attribution, no skill rewriting, and no skill discovery. All the experiments in this paper use the Gemini-3.1-Flash as the underlying LLM. SHARED TRACK Results of GAIA. We evaluate Memento-Skills on the GAIA benchmark with a maximum of three reflective retries per question. As shown in Figure 10, the self-evolving mechanism continuously refines the skill library through iterative interaction: the overall training success rate climbs from 65.1% on the first attempt to 91.6% by the third round. On the unseen test set, the full Memento-Skills system achieves 66.0% overall accuracy, compared with 52.3% for the Read-Write ablation, confirming that the skill optimisation pipeline contributes a 13.7 percentage-point gain beyond what retrieval and execution alone can provide. Limited cross-task transfer on GAIA. The gap between training-peak and test-set accuracy reveals an important structural property of the benchmark: GAIA questions are highly diverse, with little overlap in the reasoning patterns required. A case study confirmed that most skills optimised during training were never triggered during testing, because no sufficiently similar test question existed. This result suggests that skill transfer depends on domain alignment, a hypothesis we test directly on HLE below, where structured subject categories provide natural opportunities for reuse. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents15 Level 1Level 2Level 3ALL Difficulty Level 0 20 40 60 80 100 Success Rate (%) 58.6 74.4 45.5 65.1 86.2 86.0 72.7 84.3 93.1 90.7 72.7 89.2 96.6 93.0 72.7 91.6 (a) Training Set Accuracy First TryRound 1Round 2Round 3 Level 1Level 2Level 3ALL Difficulty Level 0 20 40 60 80 100 Accuracy (%) 57.1 55.9 30.0 52.3 68.4 63.0 71.4 66.0 (b) Test Set Accuracy Read-Write Memento-S Figure 10: GAIA results: training accuracy across retries (left) and test-set comparison with the Read-Write baseline (right). SHARED TRACK Results of HLE. Figure 11 reports per-category accuracy on HLE across four training rounds (R0âR3) and the final test-set evaluation. During training, the overall success rate rises steadily from 30.8% (R0) to 54.5% (R3), with every subject category showing consistent improvement. Humanities and Biology benefit the most, reaching 66.7% and 60.7% respectively by R3, while Engineering saturates earlier at 42.1%, suggesting that some domains are harder to cover with skill-level abstractions alone. On the test set, Memento-Skills achieves 38.7% overall, more than doubling the Read-Write baseline (17.9%). Unlike GAIA, the structured subject taxonomy of HLE enables substantial skill transfer: a skill refined on one Biology training question is frequently reused for unseen Biology questions in the test set. This confirms that domain-aligned skill libraries are the key enabler of cross-task generalisation. Bio.Chem.CS Eng. Human.MathOtherPhy. Subject 0 10 20 30 40 50 60 70 Performance (%) 30.3 38.8 19.8 27.6 36.9 30.0 41.8 21.1 42.7 47.1 36.0 38.2 50.0 43.8 51.9 35.5 50.6 51.8 43.0 42.1 59.5 47.5 55.7 44.7 60.7 62.4 46.5 42.1 66.7 51.2 57.0 47.4 (a) Training Set Bio.Chem.CS Eng. Human.MathOtherPhy. Subject 0 10 20 30 40 50 60 Performance (%) 22.0 21.9 12.2 21.7 11.4 20.0 25.5 10.9 57.4 27.6 30.8 21.7 41.0 41.5 46.3 32.6 (b) Test Set R0R1R2R3Read-WriteMemento-S Figure 11: HLE results: training accuracy across retries (left) and test-set comparison with the Read-Write baseline (right). R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents16 SHARED TRACK Skill Library Growth. Figure 12 visualises the skill library after learning on each benchmark via t-SNE projections of skill embeddings. Starting from the same 5 atomic skills (red stars), GAIA learning produces a compact library of 41 skills, reflecting the benchmarkâs diverse but relatively small question set. In contrast, HLE learning expands the library to 235 skills that spread across a much wider embedding space, mirroring the breadth of its 8 academic domains. Notably, the learned skills (blue dots) cluster into semantically coherent neighbourhoods; each cluster corresponds to a domain-specific capability the agent acquired through reflective self- evolution. This progressive densification of the embedding space is precisely the mechanism that drives the convergence phenomenon analysed in the Bridge below: as the library grows denser, the memory coverage radius r M shrinks, and the performance gap narrows. Total: 41 skills (a) After GAIA Learning Total: 235 skills (b) After HLE Learning Atomic Skills (5)Learned SkillsAtomic Skills (5)Learned Skills Semantic Skill Classes Search / Web (48) Quantum / Physics (47) Math / Chemistry (44) Code / Text (38) Download / Verify (28) Clinical / Excel (27) Chess / Game (20) Python / Script (19) Figure 12: t-SNE projection of skill embeddings. Red stars denote the 5 atomic (seed) skills; blue dots denote skills learned through reflective self-evolution. (a) After GAIA learning the library grows to 41 skills. (b) After HLE learning the library expands to 235 skills spanning diverse academic domains. 3.2S From LLM Competence Radius to Embedding Quality BRIDGE Look again at Figure 11: training accuracy climbs from 30.8% (R0) to 54.5% (R3), with the steepest gain in the first round and progressively smaller increments thereafter. Two things are happening simultaneously with each round: (i) existing skills are refined: reflection patches failure modes, so each skill covers a wider neighbourhood of queries; and (i) new skills are added to the library, shrinking the gaps between covered regions. Together, these two forces drive the diminishing-returns curve we observe: early rounds yield large jumps because the library is sparse and skills are rough; later rounds yield smaller gains because most of the reachable space is already well-covered. Figure 12 makes this concrete: comparing the GAIA library (41 skills) with the HLE library (235 skills), we see that additional learning rounds fill in the gaps between existing clusters until the embedding space is densely covered, at which point adding more skills yields diminishing returns because nearby skills already exist. This convergence behaviour is not accidental; it is exactly what the theory of Memento 2 predicts. The R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents17 asymptotic value gap (Corollary 15, Memento 2) decomposes as: sup s |V Ď â (s)â V Ď M (s)| | z performance gap ⤠2R max (1â Îł) 2 Îľ LLM (r M ) |z LLM quality + δ M |z retrieval error . As the library grows (more episodes), the memory coverage radiusr M shrinks, which simultaneously reducesÎľ LLM (r M ) (the LLM only needs to generalise over a smaller neighbourhood) andδ M (the router is more likely to find a behaviourally relevant skill). Once both terms are small enough, further rounds produce only marginal improvement: the system has converged. The bound also reveals three independent knobs for reducing this gap: Stronger LLM More Episodes Better Embedding reduces Îľ LLM reduces r M reduces δ M Three Independent Knobs ÂJ: The convergence you see in the table is the bound tightening in real time. Each round shrinksr M , which pulls down both other terms. And because the three knobs are independent, you can improve any one without touching the others. Thatâs why the system is modular. ĂĄS: Translation: the diminishing returns arenât a bug; theyâre a sign the system is converging. And if I want to push accuracy further, I have three independent levers: upgrade the embedding model on Tuesday, swap in a better LLM on Wednesday, and run more episodes on Thursday. â EPILOGUE Friday 5:30pm. The espresso machine has been fixed. S: (showing Grafana) 93.5% accuracy. p99 latency 195ms. Zero gradient updates. Iâm buying the espresso machine a thank-you card. H: I ran the ablation study. Removing the skill optimisation drops accuracy by 8%. Removing the Memento-Qwen causes retrieval collapse. The theory. . . actually predicted all of this. J: (sipping espresso, looking insufferably pleased) I believe the phrase youâre looking for is âProf J was right.â S: Donât push it. But I do want to know: what happens when we hit a million cases? Does the Parzen kernel scale? H: And can we get the convergence rate? Not just âit convergesâ but âit converges in O(n â1/d ) episodesâ? J: (standing, reaching for the whiteboard marker) Those are exactly the right questions. Chapter 3. S: (to H, whispering) He planned this. He always plans this. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents18 4 Conclusion We have presented Memento-Skills, a system that bridges the gap between memory-based learning and skill-based learning for LLM agents. The central insight is to treat executable skills as the unit of external memory, thereby transferring the theoretical guarantees of the Stateful Reflective Decision Process into a concrete, deployable artefact. Through the ReadâWrite Reflective Learning loop, the agent autonomously acquires, refines, and reuses these skills from deployment experience alone, requiring no parameter updates to the underlying LLM. A behaviour-aligned contrastive router, trained via single-step offline RL, ensures that retrieval optimises for execution success rather than surface-level similarity. Experiments on GAIA and HLE confirm that this skill-as-memory formulation substantially outperforms a static-library ablation, and that cross- task transfer is strongest when skills are aligned with structured domain categories. More broadly, Memento-Skills demonstrates that continual learning need not reside in model weights: an ever-growing, self-improving skill library can serve as a persistent, non-parametric intelligence layer that any frozen LLM can draw upon. Contributions Algorithm Team Huichi Zhou, University College London Siyuan Guo, Jilin University Anjie Liu, Hong Kong University of Science and Technology (Guangzhou) Zhongwei Yu, Hong Kong University of Science and Technology (Guangzhou) Ziqin Gong, Hong Kong University of Science and Technology (Guangzhou) Bowen Zhao, Hong Kong University of Science and Technology (Guangzhou) Zhixun Chen, Hong Kong University of Science and Technology (Guangzhou) Menglong Zhang, Hong Kong University of Science and Technology (Guangzhou) Yihang Chen, University College London Engineering Team Jinsong Li, AI Lab, The Yangtze River Delta Runyu Yang, AI Lab, The Yangtze River Delta Qiangbin Liu, AI Lab, The Yangtze River Delta Xinlei Yu, AI Lab, The Yangtze River Delta Jianmin Zhou, AI Lab, The Yangtze River Delta Na Wang, AI Lab, The Yangtze River Delta Chunyang Sun, AI Lab, The Yangtze River Delta Advisor Jun Wang, University College London References [1] Lakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, Christopher Potts, Koushik Sen, Alexandros G. Dimakis, Ion Stoica, Dan Klein, Matei Zaharia, and Omar Khattab. Gepa: Reflective prompt evolution can outperform reinforcement learning, 2025. URLhttps://arxiv.org/abs/2507. 19457. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents19 [2]Clara M Bacmeister, Rongchen Huang, Lindsay A Osso, Michael A Thornton, Lauren Conant, Anthony R Chavez, Alon Poleg-Polsky, and Ethan G Hughes. Motor learning drives dynamic patterns of intermittent myelination on learning-activated axons. Nature neuroscience, 25(10):1300â1313, 2022. [3] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877â1901, 2020. [4] Center for AI Safety, Scale AI, and HLE Contributors Consortium. A benchmark of expert- level academic questions to assess AI capabilities. Nature, 649:1139â1146, 2026. doi: 10.1038/ s41586-025-09962-4. [5] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1 incentivizes reasoning in llms through reinforcement learning. Nature, 645(8081):633â638, 2025. [6] Siyuan Guo, Cheng Deng, Ying Wen, Hechang Chen, Yi Chang, and Jun Wang. DS-Agent: Automated data science by empowering large language models with case-based reasoning. In International Conference on Machine Learning, pages 16813â16848. PMLR, 2024. [7] Siyuan Guo, Huiwu Liu, Xiaolong Chen, Yuming Xie, Liang Zhang, Tao Han, Hechang Chen, Yi Chang, and Jun Wang. Optimizing case-based reasoning system for functional test script generation with large language models. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2, pages 4487â4498, 2025. [8] Letta. Skill learning: Bringing continual learning to cli agents, 12 2025. URLhttps://w.letta. com/blog/skill-learning. Letta Blog. [9]Richard Magill and David I Anderson. Motor learning and control. McGraw-Hill Publishing New York, 2010. [10]Qirui Mi, Zhijian Ma, Mengyue Yang, Haoxuan Li, Yisen Wang, Haifeng Zhang, and Jun Wang. Procmem: Learning reusable procedural memory from experience via non-parametric ppo for llm agents, 2026. URL https://arxiv.org/abs/2602.01869. [11] GrĂŠgoire Mialon, ClĂŠmentine Fourrier, Thomas Wolf, Yann LeCun, and Thomas Scialom. Gaia: a benchmark for general ai assistants. In The Twelfth International Conference on Learning Represen- tations, 2023. [12]Stephen Robertson, Hugo Zaragoza, et al. The probabilistic relevance framework: Bm25 and beyond. Foundations and trendsÂŽ in information retrieval, 3(4):333â389, 2009. [13] David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by back-propagating errors. nature, 323(6088):533â536, 1986. [14] David Silver and Richard S Sutton. Welcome to the era of experience. Google AI, 1, 2025. [15]Shangyin Tan, Lakshya A. Agrawal, Rohit Sandadi, Dan Klein, Koushik Sen, Alexandros G. Dimakis, and Matei Zaharia. Automatically learning skills for coding agents, 02 2026. URLhttps://gepa-ai. github.io/gepa/blog/2026/02/18/automatically-learning-skills-for-coding-agents/. GEPA Blog. [16] Alan M Turing. Intelligent machinery, a heretical theory. The Turing test: verbal behavior as the hallmark of...-books. google. com, 264, 2004. [17]Jun Wang. Memento 2: Learning by stateful reflective memory. arXiv preprint arXiv:2512.22716, 2025. [18]Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, An- drew M. Dai, and Quoc V Le. Finetuned language models are zero-shot learners. In International Con- ference on Learning Representations, 2022. URLhttps://openreview.net/forum?id=gEZrGCozdqR. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents20 [19]Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, Fei Huang, and Jingren Zhou. Qwen3 embedding: Advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176, 2025. [20]Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, et al. A survey of large language models. arXiv preprint arXiv:2303.18223, 1(2):1â124, 2023. [21]Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in neural information processing systems, 36:46595â46623, 2023. [22]Huichi Zhou, Yihang Chen, Siyuan Guo, Xue Yan, Kin Hei Lee, Zihan Wang, Ka Yiu Lee, Guchun Zhang, Kun Shao, Linyi Yang, and Jun Wang. Memento: Fine-tuning LLM agents without fine-tuning LLMs. Preprint, 2025. R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents21 A Reading Path This paper is organised as interleaving tracks for two audiences. Each section opens with a shared Dialogue, then forks into aResearchtrack and aPractitionertrack, before merging at a Bridge. Pick the path that matches your goal; read both for the complete picture. Dialogue Shared Theory Practice BridgeDialogue . . . proofs & convergence code & deployment e Researcher Path Formal SRDP setup, convergence proofs, and KL-regularised routing analysis. Follow the cream-shaded sections. Dialogueâ Sharedâ Theoryâ Bridgeâ . . . Ă Practitioner Path Installation, API walkthrough, retrieval pipeline, and benchmark recipes. Follow the blue-shaded sections. Dialogueâ Sharedâ Practiceâ Bridgeâ . . . Dialogueopens each section with motivation.Sharedpresents material common to both tracks. Bridge connects theoretical results to engineering choices.Epilogue closes the narrative. Three charactersâJ, H, and Sâannotate inline throughout. B Characters Character Perspective & Personality  JTenured theorist. Writes proofs on napkins. Believes every- thing is a special case of something he published in 2003. âBut does it converge?â \ H Second-year CS PhD student. Runs 47 experiments simulta- neously and names them all after anime characters. Thinks every problem needs more GPUs. âWhat if we just. . . scale it?â ĂĄ SSenior ML engineer, 12 years in production. Has been paged at 3am enough times to develop a Pavlovian response to Slack notifications. Trusts nothing without a unit test. âShow me the latency numbers.â R = Research TrackP = Practitioner TrackS = Shared Memento-Skills: Let Agents Design Agents22 C Prompt for Synthetic Router Goals Prompt for synthetic router goals Target skill: - name: skill_name - description: description - keywords: keywords_block Task: Generate synthetic router goals (queries) for this target skill. The router state is ONLY a text goal (routing_goal). Write realistic user-style goals. Need: - need_pos positive queries: target skill SHOULD be selected. - need_neg hard negative queries: relevant to the same domain BUT target skill is not useful / not the best tool. Hard negative requirements: - Must look plausible and close to the target domain. - Must share terminology/theme with the skill. - Must be "relevant but useless" for THIS target skill. - Avoid obvious cues like "do not use <skill>". Style requirements: - Do not mention the skill name directly. - Keep each query concrete, actionable, and non-trivial. - Mix concise and mildly noisy phrasing. - English only (to match downstream tokenizer). Already accepted positive queries (avoid duplicates): existing_pos_block Already accepted negative queries (avoid duplicates): existing_neg_block Return ONLY JSON in this schema: "positive_queries": [ "query": "...", "why_fit": "..." ], "negative_queries": [ "query": "...", "why_relevant": "...", "why_useless": "..." ] R = Research TrackP = Practitioner TrackS = Shared