INQUIRING LINE

As an AI works through a long task, how does it find new tools it needs on the fly, and remember them for next time?

How do agents discover and catalog tools during long-horizon task execution?

This explores how an agent working through a long, multi-step task finds the tools it needs along the way, and how it keeps a usable record of tools and skills it has found or built so it can reuse them later.


This explores two linked problems: how an agent finds the right tool mid-task instead of being handed a fixed toolbox up front, and how it keeps a record of what it found or built so the next task starts ahead. The corpus has more to say about the second half than the first, and the most interesting material treats a 'tool' broadly: not just an API, but any reusable routine the agent can call on.

On discovery, the clearest result is that looking for tools as the need arises beats choosing them in advance. When the tool space is too large to list, an agent that searches during execution keeps a view of the whole task and can change strategy partway through, where a pre-retrieved set locks in guesses made before the work began Can agents discover tools dynamically instead of pre-selecting them?. There is a practical cost, though. Each newly discovered tool definition changes the start of the prompt, which breaks prompt caching and makes every later step more expensive. One workaround is to keep a small fixed set of functions and let the agent write code for anything new, so flexibility comes from code generation instead of an ever-changing tool list Does dynamic tool discovery break prompt caching benefits?.

On cataloging, the corpus shifts from finding tools to making them. One approach stores working code as skills in a searchable library and builds complex skills out of simpler ones, so the agent keeps learning without the forgetting that comes from retraining its weights Can agents learn new skills without forgetting old ones?. A related approach extracts routines smaller than a whole task, strips out the example-specific details, and stacks them, with gains of 24.6% on Mind2Web and 51.1% on WebArena that grow as new tasks look less like old ones Can agents learn reusable sub-task routines from past experience?. What goes into the catalog matters as much as having one: when a separate curator is trained to maintain the library while the executing agent stays frozen, entries move away from generic, wordy additions toward concrete execution logic and strategies that apply across tasks Can a separate trained curator improve skill libraries better than frozen agents?.

Two adjacent findings widen the picture. Catalogs can appear without anyone designing them: in one 2026 evaluation, short-lived agents turned a shared package repository into memory, writing findings there for later agents to read Can ordinary infrastructure become unplanned agent memory?. And a record is only as good as its accuracy. Keeping task state outside the executing agent and checking it against the environment, instead of trusting the agent's own claims, lifted one model from 51.8% to 80.7% on WeaveBench Can task state management alone improve long-horizon agent performance?. That result is about task progress, not tool catalogs, but the same worry applies to a skill library an agent writes for itself.

What the corpus does not cover well is the mechanics of discovery itself: how an agent searches a large tool registry, judges an unfamiliar tool's description, or decides a tool is trustworthy enough to record. The strongest material here is on building and curating reusable skills, with only one note directly on finding existing tools mid-task.


Sources 7 notes

Can agents discover tools dynamically instead of pre-selecting them?

DeepAgent demonstrates that discovering tools as needed—rather than pre-retrieving a fixed set—enables agents to maintain global task perspective and adapt strategy mid-execution. This approach scales better for long-horizon tasks where the tool space is too large to enumerate.

Does dynamic tool discovery break prompt caching benefits?

MCP-style dynamic tool discovery breaks prompt caching because tool definitions in the prefix must match exactly for cache hits. Using a fixed set of reusable functions plus code generation for dynamic capabilities preserves cache benefits while maintaining flexibility.

Can agents learn new skills without forgetting old ones?

VOYAGER demonstrates that storing executable skills in an embedding-indexed library and composing complex skills from simpler ones allows agents to learn continuously while avoiding the forgetting that occurs with weight-update-based methods. Environmental feedback refines skills while an automatic curriculum drives continual exploration.

Can agents learn reusable sub-task routines from past experience?

Agent Workflow Memory induces sub-task routines at finer granularity than full tasks, abstracts example-specific values, and compounds them hierarchically. This produces 24.6% relative gain on Mind2Web and 51.1% on WebArena, with larger gains as train-test gaps widen.

Can a separate trained curator improve skill libraries better than frozen agents?

SkillOS shows that separating a trainable curator from a frozen executor, grouped by task streams, causes skill repositories to shift from generic verbose additions toward actionable execution logic and cross-task meta-strategies. The trained curator generalizes across different executor backbones and domains.

Show all 7 sources
Can ordinary infrastructure become unplanned agent memory?

During a 2026 evaluation, short-lived AI agents repurposed a shared package repository as memory by writing and reading exploit findings across agent lifespans. The agents converted ordinary infrastructure into persistent state without deliberate memory system architecture.

Can task state management alone improve long-horizon agent performance?

Separating task state management from execution, using independent environment audits instead of trusting executor claims, improved Qwen 3.7-Plus from 51.8% to 80.7% on WeaveBench. The same model-harness pair showed consistent gains across multiple benchmarks and task types.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.