Skip to main content
QUICK REVIEW

[Paper Review] LLM Agents Making Agent Tools

Georg Wölflein, Dyke Ferber|ArXiv.org|Feb 17, 2025
Multi-Agent Systems and NegotiationComputer Science3 citations
TL;DR

ToolMaker autonomously converts scientific papers with code into LLM-compatible tools, builds a reproducible execution environment, and achieves 80% task accuracy on the TM-BENCH benchmark, outperforming OpenHands.

ABSTRACT

Tool use has turned large language models (LLMs) into powerful agents that can perform complex multi-step tasks by dynamically utilising external software components. However, these tools must be implemented in advance by human developers, hindering the applicability of LLM agents in domains demanding large numbers of highly specialised tools, like in life sciences and medicine. Motivated by the growing trend of scientific studies accompanied by public code repositories, we propose ToolMaker, an agentic framework that autonomously transforms papers with code into LLM-compatible tools. Given a GitHub URL and short task description, ToolMaker autonomously installs dependencies and generates code to perform the task, using a closed-loop self-correction mechanism for debugging. To evaluate our approach, we introduce a benchmark comprising 15 complex computational tasks spanning various domains with over 100 unit tests to assess correctness and robustness. Our method correctly implements 80% of the tasks, substantially outperforming current state-of-the-art software engineering agents. ToolMaker therefore is a step towards fully autonomous agent-based scientific workflows. Our code and benchmark are publicly available at https://github.com/KatherLab/ToolMaker.

Motivation & Objective

  • Motivate reducing the manual tool-building burden in LLM agents, especially in life sciences and medicine.
  • Introduce an autonomous tool-creation framework that derives tools from papers and code repositories.
  • Enable end-to-end tool implementation including environment setup, installation, and testing.
  • Provide a benchmark (TM-BENCH) with realistic multi-step scientific tasks and extensive unit tests to evaluate tool creation.
  • Demonstrate that autonomous tool creation can surpass state-of-the-art software-engineering agents in this setting.

Proposed method

  • Propose TOOLMAKER, an agentic framework that autonomously downloads, integrates, and implements existing tools from scientific papers and GitHub repositories.
  • Define a minimal tool specification including task description, repository URL, and input arguments; TOOLMAKER also builds a reproducible Docker-based execution environment.
  • Structure TOOLMAKER as a two-stage workflow: environment setup (creating a Docker snapshot) and tool implementation (generating a Python function).
  • Model the workflow as interactions among LLM calls, environment actions, and agent sub-tasks, enabling closed-loop self-improvement through error diagnosis and reimplementation.
  • Perform a closed-loop cycle where an initial tool is implemented, tested via unit tests, diagnosed for failures, reimplemented, and summarized until success.

Experimental results

Research questions

  • RQ1Can LLM agents autonomously download, install dependencies, and assemble reusable tools from scientific papers and repositories?
  • RQ2Do such autonomously created tools achieve robust performance across diverse, real-world scientific tasks?
  • RQ3How does autonomous tool creation compare to existing software-engineering agents in terms of accuracy, reliability, and cost?
  • RQ4What is the impact of incorporating task- and paper-specific summaries on tool creation efficiency?
  • RQ5What are the limits and risks of fully automated tool creation in life sciences workflows?

Key findings

  • TOOLMAKER correctly implements 80% of 15 benchmark tasks (12/15).
  • Compared with the OpenHands baseline, TOOLMAKER substantially outperforms in task correctness (12/15 vs. 3/15).
  • TOOLMAKER can create multi-step tools requiring orchestration of multiple functions and dependencies, including GPU-accelerated workflows.
  • The framework uses a closed-loop self-correction mechanism that iterates through planning, implementation, testing, and reimplementation to fix errors.
  • Ablations show paper summaries reduce the number of actions and iterations, while model choice and prompt design influence cost and performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.