WhoBuilt

Agents That Write Their Own Tools at Runtime

Oct 4, 2026· 21 min· 16K views·Watch on YouTube

Speaker

Sandhya Subramani of AWS explains how agents can create and use tools and agents at runtime, in a talk for AI Engineer.

Creating tools at runtime

Subramani contrasts tools that coding assistants write during development with agents that can change their capabilities while running. In her demo, an initially empty agent creates a calculator when asked to solve a math problem, then creates a character counter for a new request and uses both without restarting.

How meta-tooling works

Subramani calls the approach meta-tooling and demonstrates it with the open-source Strands Agents framework. The agent uses a system prompt plus an editor, shell, and load tool: it checks what tools exist, writes missing ones to a directory, and loads them dynamically.

Agents that create agents

Subramani says the same pattern can generate agents as well as tools. For a Hawaii itinerary request, her demo creates flight, activities, and itinerary agents, then calls them; without a real-time API tool, it cannot provide current information.

Evaluate and constrain autonomy

Subramani describes evaluating whether an agent achieves its goal, gives accurate answers, selects the right tools and parameters, and coordinates subagents in the right sequence. She also calls for sandboxed code execution, constrained tool permissions, and observability to limit damage and assess reliability.

From generated tools to source updates

Subramani describes a progression from agents creating tools, to creating agents, to updating their own source code. She says the Python version of Strands Agents generated the TypeScript version, and offers to share her slides and code.

Takeaways

  • Give runtime tool creation a clear specification, a directory to write to, and a way to load generated tools.
  • Have agents check for an existing capability before creating another tool.
  • Add real-world API tools when an agent needs current information, such as weather or flight details.
  • Evaluate goal completion, answer accuracy, tool choice and parameters, and coordination between agents.
  • Sandbox execution, limit permissions, and monitor agent behavior before granting broader autonomy.

Mentioned in this talk

Search inside this talk

What was claimed 6

Related talks