Build an Agent That Writes Its Own Tools
DataRobot, Monday, June 1st, 2026
A pattern for agents that generate their own API tools dynamically from specs rather than relying on pre-built tool registries.
DataRobot presents a new pattern for AI agents that dynamically write their own tools on-the-fly using API specifications, rather than relying on curated tool registries that become outdated.
The approach emphasizes building secure sandboxes (using Deno-based JavaScript VMs) where agents can safely author and test tools against raw API specs, eliminating the maintenance burden of wrapper updates.
Luke Shulman demonstrated this technique by having an agent autonomously generate tools to scan a monorepo's CODEOWNERS file, identify outdated team references, and propose fixes-all without any pre-built tool wrappers.
The pattern shifts engineering effort from maintaining tool registries to designing trustworthy execution environments, allowing agents to stay synchronized with evolving APIs through the authoritative specs themselves.