Harness Hub
All papers

ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents

Rui Sun, Junhua Huang, Luca Zancato, Md Mofijul Islam, Kai-Wei Chang

Verdict: Incremental

This is a reasonable engineering port of known tool-induction ideas to multimodal search, with practical gating and retrieval details. The gains are small and reported without variance. There are no competing tool-generation baselines and no leakage analysis, even though gold answers enter the generation pipeline. The abstract's 'consistent' and 'scalability' claims, and the conclusion's 'every benchmark' claim, are contradicted by the paper's own tables.

  • Novelty

    2 out of 5
  • Rigor

    2 out of 5
  • Reproducibility

    3 out of 5
  • Relevance to harnesses

    3 out of 5

TL;DR

An offline pipeline mines failed agent trajectories, has GPT-5 write new Python tools that wrap eight base search and vision primitives, filters them through a sandbox run and an LLM review, and retrieves the top-10 at inference. It adds about 1 to 3 points over the base library. Three of ten out-of-domain deltas for the 8B agent are zero or negative, which contradicts the paper's 'every benchmark' claim. The paper reports no variance, no comparison against other tool-generation methods, and no check that tools written from training queries with visible gold answers do not encode test-relevant entities.

Adversarial review by Harness Hub · Nov 26, 2026 · read full text (truncated) · Suggest a correction

Original abstract (authors’ text, select to expand)

Recent multimodal search agents use reasoning, vision, and live web search across many turns to answer questions beyond parametric knowledge by orchestrating a small library of hand-crafted search and visual tools. However, the library is laborious to create and maintain, and frozen when new query types, evidence formats, and failure modes are encountered in the wild. Human practitioners, by contrast, cope with insufficient tools by fashioning new ones from familiar parts and reusing them across tasks. Inspired by this, we propose ToolSmith, an automatic tool-generation framework that grows and reuses modules on top of a lean base tool library. We evaluate ToolSmith on three in-domain multimodal search benchmarks and ten out-of-domain benchmarks under a VLM-as-a-Judge protocol. ToolSmith consistently improves over the base library across deployed agents of varying scales, with larger backbones reaping greater gains, demonstrating the scalability of the approach. Our code and data are available at https://threesr.github.io/toolsmith/.

Filed underorchestrationevaluationagents

Summary

ToolSmith ports the CRAFT and Voyager style of tool and skill induction to multimodal web-search agents. It runs in four phases. 1. A baseline agent is rolled out on a 9,174-query pool drawn from the train/val splits of FVQA, InfoSeek and EncyclopedicVQA. A judge marks failures, and an LLM self-critique, which sees the gold answer, labels each one. Only new_tool_needed gaps are kept. They are embedded with bge-m3 (question, prediction and gold answer concatenated) and clustered into C=500 representatives. 2. A TF-IDF check (threshold 0.40) against existing tool descriptions skips gaps that look already covered. 3. A generator LLM (GPT-5 by default) writes a BaseTool subclass. The tool may use only requests/re/json/datetime and must chain-call the base tools over a local HTTP endpoint. Anti-hardcode rules are given in the prompt. 4. Gate 1 does a static scan and one dummy-input run with a 10s budget. Gate 2 is an LLM critic on four 0-5 axes that admits a tool if the mean is at least 3.0 and the minimum at least 1. Up to 2 retries are allowed, then TF-IDF dedup at 0.55. At inference the agent sees the eight base tools plus the top-10 generated tools retrieved by embedding similarity. Evaluation covers the 3 in-domain test splits and 10 out-of-domain benchmarks, restricted to their multimodal subsets. A GPT-4o judge marks an answer correct if the response 'contains the correct answer anywhere'. Each result is the mean of three runs. The only baselines are no tools and the base library. The ablations (generator model, mining source, cluster count) use only FVQA and MMSearch.

Key findings

  • Table 2, in-domain average with vs without ToolSmith tools: - Qwen3-VL-8B: 47.94 to 50.14 (+2.20) - Qwen3-VL-32B: 55.47 to 57.14 (+1.67) - GPT-5: 51.80 to 52.84 (+1.04)
  • Table 3, out-of-domain average with vs without ToolSmith tools: - Qwen3-VL-8B: 26.57 to 27.90 (+1.33) - Qwen3-VL-32B: 31.27 to 34.25 (+2.98) - GPT-5: 39.80 to 42.20 (+2.40)
  • Table 3, Qwen3-VL-8B deltas that are not gains: HLE-VL 0.00, RealX-Bench -0.17, VisBrowse-Bench -0.02. That leaves seven of ten improved. Section 5 says eight of ten.
  • Base tools supply most of the gain. Section 5 reports roughly +25pp in-domain and +10pp out-of-domain over Direct Inference for Qwen3-VL-8B.
  • Table 4: tools written by a Qwen3-VL-8B generator score below the base library for every consumer on both benchmarks. Examples: - FVQA, 8B consumer: 52.00 vs 55.00 - MMSearch, 32B consumer: 60.82 vs 62.57
  • Table 5: for the 8B consumer, mining its own failures works best (FVQA 58.00, MMSearch 55.56). Mining GPT-5 failures gives FVQA 56.50 and MMSearch 54.39.
  • Table 6: for C=0/250/500/750, FVQA scores 55.00/57.39/58.00/57.50 and MMSearch scores 51.46/54.97/55.56/54.97.
  • Table 7: generated tools account for 27% of tool calls in-domain and 15% out-of-domain. They are invoked in 40.9% of in-domain samples and 16.3% of out-of-domain samples.
  • Table 10, gate pass rates by generator: GPT-5 68%, Qwen3-VL-32B 81%, Qwen3-VL-8B 29%. Appendix F.2 says some 8B-generated tools contain logic bugs that survive the gates.

The paper at a glance

01Roll out base agenton 9,174 trainingqueries02Judge marksfailures; LLMself-critique (seesgold) keepsnew_tool_needed03Cluster gaps(bge-m3, C=500)04Reuse-or-grow viaTF-IDF vs tooldescriptions (0.40)05Generator LLMwrites Python toolchaining base tools06Gate 1: static scan+ one sandboxed run(10s)07Gate 2: LLM codereview (mean>=3.0,min>=1), retry upto 208TF-IDF dedup (0.55)into catalog09Inference: basetools + top-10retrieved generatedtools
  1. Roll out base agent on 9,174 training queries
  2. Judge marks failures; LLM self-critique (sees gold) keeps new_tool_needed
  3. Cluster gaps (bge-m3, C=500)
  4. Reuse-or-grow via TF-IDF vs tool descriptions (0.40)
  5. Generator LLM writes Python tool chaining base tools
  6. Gate 1: static scan + one sandboxed run (10s)
  7. Gate 2: LLM code review (mean>=3.0, min>=1), retry up to 2
  8. TF-IDF dedup (0.55) into catalog
  9. Inference: base tools + top-10 retrieved generated tools
Fig. 1 — How the paper works, step by step (arXiv:2611.31198).

Why it matters

For harness builders, this paper is a data point on letting an agent's tool catalog grow offline from failure logs, with gates on what gets admitted. Three mechanics transfer to any tool-loop harness: - a cheap sandbox run before an LLM code review - TF-IDF dedup against existing tool descriptions - per-query top-K retrieval of generated tools, so the schema the model sees stays bounded The payoff is small: about 1 to 3 points on top of a base library that itself supplies 10 to 25 points. The paper does not show that automatic generation beats simpler alternatives. Untested options include a few hand-written composite tools, a better system prompt, or existing methods such as CRAFT. In the default setup GPT-5 writes the tools for an 8B agent, so part of the gain may be capability transfer from a stronger model rather than self-improvement. The most useful practical result is Table 4: weak generators produce tools that lower accuracy below the base library. Auto-generated tools need a strong author, or they cost you. Outside multimodal search, relevance is indirect.

Issues (10)

  • Medium severity

    The abstract says ToolSmith 'consistently improves', and the conclusion says admitted tools 'improve on top of the base tool library on every benchmark'. Table 3 contradicts this for Qwen3-VL-8B: HLE-VL 0.00, RealX-Bench -0.17, VisBrowse-Bench -0.02. Section 5 says '8B improves on eight of the ten, with the remaining two essentially flat', but the table shows three non-positive deltas, so seven of ten improved.

  • High severity

    The claim that 'larger backbones reap greater gains, demonstrating the scalability' is not supported. In-domain gains shrink with scale: 8B +2.20, 32B +1.67, GPT-5 +1.04. Section 5's combined gains are 8B +1.77, 32B +2.32, GPT-5 +1.72, so GPT-5 gains less than 8B. Out-of-domain gains are non-monotone: 8B +1.33, 32B +2.98, GPT-5 +2.40. The paper blames GPT-5's smaller gain on privacy refusals but never measures the refusal rate.

  • High severity

    Training gaps are built with gold answers visible. The self-critique prompt receives the ground truth, and clustering embeds question, prediction and gold answer. Tools are then authored per failed training query and evaluated on test splits of the same three datasets. InfoSeek and EncyclopedicVQA are entity-centric, so entities and sources are likely to recur between splits. The safeguards against tools encoding answer-relevant entities or sources are prompt rules and an LLM critic only. No overlap analysis between the entities in admitted tool code and test items is reported. The in-domain gains therefore cannot be cleanly attributed to general capability.

  • High severity

    No variance or significance testing is reported, although every number is a three-run mean and Appendix B.3 acknowledges run-to-run variance. Several out-of-domain sets are small: MMSearch 171, VisBrowse-Bench 169, RealX-Bench 194 (Table 8). Per-benchmark deltas of about 1pp may be within noise. Section 6.1 calls the ablations, each on a single benchmark pair, 'illustrative', yet the text still concludes accuracy 'rises monotonically... with no exceptions'.

  • High severity

    The only baselines are no tools and the base library. Missing comparisons: - the tool-generation methods the paper itself cites (GENOME, CRAFT, Voyager-style skill induction) - other multimodal search agents on the same benchmarks - a control that adds hand-written composite tools or extra prompt context Without these, the 1 to 3 points cannot be attributed to automatic generation specifically.

  • Medium severity

    There is a capability-transfer confound. In the main results GPT-5 writes the tools that Qwen3-VL-8B and Qwen3-VL-32B consume, so gains may reflect GPT-5's knowledge of sources and query orderings encoded in code rather than a self-growing agent. Table 4 is consistent with this reading: with an 8B generator, the 8B agent scores below base on FVQA (52.00 vs 55.00) and on MMSearch (48.54 vs 51.46).

  • Medium severity

    The judge prompt is lenient: it marks correct if the 'report contains the correct answer anywhere in its content'. Composite tools that surface multiple candidates could inflate scores. No human agreement or strict-judge check is reported. The retrieval-shortcut statement ('we did not observe cases...') gives no method or counts.

  • Medium severity

    Gate 2 admits a tool whose minimum axis score is 1 out of 5 (a_min=1). Appendix F.2 says 8B-generated tools have logic bugs that 'survive the gates'. Section 7.3 attributes losses to generated tools returning incorrect information. No functional test on held-out queries is run before admission, so the 'Two-Gate Verification' is weaker than its framing suggests.

  • Low severity

    Several reporting inconsistencies: - Qwen3-VL-8B-Thinking is listed as an evaluated model but has no agent-workflow rows. - The FVQA training size is 3132 in Appendix B.1.1 but 3312 in Table 9. - The introduction says code 'will be' available, while the abstract says it is available. - All overhead numbers are deferred to Appendix H, so 'manageable in practice' cannot be checked from the provided text.

  • Low severity

    The paper does not state whose failures were mined for the 32B and GPT-5 rows of Tables 2-3. Table 5 implies the default mines the 8B agent's failures. If one 8B-mined tool bank serves all consumers, the backbone comparison uses tools tuned to 8B failure modes.

Questions for the authors

  • What are the per-benchmark standard deviations across the three runs, and which deltas in Tables 2-3 survive a paired significance test?
  • How many admitted tools reference specific entities, URLs or sources that also appear in in-domain test items?
  • How does ToolSmith compare with CRAFT or GENOME re-implemented on the same base tools, and with a control of 10 hand-written composite tools?
  • Whose failures were mined for the 32B and GPT-5 rows of Tables 2-3?
  • What fraction of GPT-5 responses are refusals per benchmark, with and without generated tools?
  • How do results change under a strict final-answer judge?
  • Of the 264 admitted tools, how many are invoked at least once at test time, and how concentrated is the gain among them?
  • Does raising a_min above 1 reduce the losses attributed to tools that return incorrect information?

Related in the directory

Open-source projects

The paper cites VoltAgent and Contributors (2026) as an example of a hand-curated skill bank whose fixed coverage motivates automatic tool generation.

More tools on the same problem

Products and open-source projects in the directory closest in meaning to this paper.

The framework that popularized multi-agent conversation programming.
Agent-native RAG engine and context infrastructure.
Vectorless, reasoning-based document index for RAG.
Deep research skill for Claude Code and Codex with a wiki, API, and MCP.
Search and extraction API optimized for LLMs and agents.
Persistent file-based planning for AI coding agents and long-running tasks

Multimodal search agents answer knowledge intensive visual questions by grounding them in retrieved evidence, and recent recipes train them on multi hop tasks that are synthesized from knowledge graphs and grown online to keep pace with the agent. These recipes, however, treat the searchable world as fixed: a new question can be well formed and verifiable while its evidence is absent from the retrieval backend, so the agent issues the right query, retrieves nothing, and is penalized as if its policy were at fault. Such unreachable negatives accumulate with every round of growth. We propose Search-RSI, a recursive self improvement framework that expands the search world along the agent's capability frontier. In each round, the current policy diagnoses its partially mastered regions of a task space spanned by hop depth, relation rarity, and distractor density; new tasks there are grown together with their evidence; and the same policy decides how they are used: candidates on which its probes disagree feed reinforcement learning, while those beyond its reach become hint guided demonstrations of its own. Keeping the policy inside this loop matters: an improver frozen at the start of training loses 3.2 points. On nine multimodal search benchmarks, Search-RSI keeps improving where static task growth saturates, raising the average accuracy of the recipe it builds on by 9.8 and 9.5 points at 9B and 27B, of which 7.0 points are out of reach for a world that is merely made consistent. The loop uses no external model and only privileged task structure that is removed before training, at 1.27x the compute of static growth.

Chengchao Lv, Yin Wang +2

Frontier models are increasingly used through harnesses as agents, with growing autonomy to do useful work. Agent performance can often be enhanced by the use of skills: reusable workflows, code, and prompts that provide task-related information or guide the behaviour of the model. Skills, being textual in nature, present themselves as another editable surface to be optimized; current methods have improved on handcrafting and one-shot generation by treating skill development as an iterative process, using score-driven search to tweak and improve performance. In this paper, we demonstrate the efficacy of the agents themselves as optimizers: across five benchmarks, a coding agent without guidance substantially improves every target and outperforms published skill-optimization methods. More broadly, this shows the capability of agents to do such work and to refine their own behaviour to provide task-specific context, as long as they are given a metric to measure against.

Ryan Tsui, Yuge Zhang +1

Evaluating human-AI co-design requires testing whether coding agents can translate real users' multimodal requests into working application revisions. We introduce Co-Design Bench, a reference-free benchmark of 273 tasks curated from 37,463 deduplicated queries across 26,314 real user coding sessions. Its two tracks, Multimodal Editing (ME) and Repository Editing (RE), cover localized edits with optional image, audio, video, or document inputs and coordinated repository revisions. Tasks span three capability dimensions: Grounded Understanding, UI Transformation, and Functional Implementation. The tasks pair normalized requests and runnable pre-edit applications with 2,331 hidden expert-authored acceptance criteria. Our judge-then-refute protocol grades criteria using source and browser evidence, challenges positive verdicts with a separate LLM verifier, and audits visual and interaction claims without gold code or target screenshots. Under a shared agentic harness, the strongest of ten model endpoints passes an average of 69.9% of criteria per task but fully satisfies only 26.4% of tasks. All ten endpoints achieve lower criterion completion on repository edits spanning three or four change types than on those spanning one or two. Co-Design Bench provides a testbed for studying the gap between partial requirement satisfaction and complete task success under agentic execution for real-user application revisions.

Xilin Wei, Shengyuan Ding +11

The use of AI agents among the general public has been increasing exponentially throughout 2026, though it is often hard for users to determine which configuration is most effective for their personal use. To help provide clarity here we introduce ShellBench, 100 day-to-day tasks based on more than 10 million user requests, each set in a realistic workspace with messy files and competing data sources, and graded for both correctness and safety. We evaluate 12 models across 5 agent harnesses at 3 reasoning levels for a total of 53,100 rollouts, 20% of which are on tasks designated for public release. We find that model choice impacts performance more than harness choice, but the three leading models differ by only 1.1 percentage points. GPT-6.1 Sol passed 61.4% of attempts at about one-sixth of GPT-6 Astra's estimated token cost per attempt, while GPT-6 Astra led at 62.5%. We also found that harness choice had little effect on either performance or safety with all harnesses scoring between 42.9 (Claude Code) and 45.2 (OpenClaw) for pass@1.

Vincent Koc, Aditya Washikar +11

Users often request charts without knowing which database or table holds the relevant data. Such requests may be ambiguous, and users may ask follow-up questions to deepen their analysis or iteratively refine existing charts. A useful assistant must therefore discover relevant data sources among heterogeneous databases, ask clarifying questions when needed, and track evolving user intent while preserving constraints established in earlier turns. Yet recent text-to-visualization agents typically rely on static agent harnesses that are predefined and remain unchanged despite recurring failures across tasks. To address this limitation, we introduce RSIV-Harness, which keeps the language model weights fixed and applies Recursive Self-Improvement to revise the surrounding harness from the agent's own failure traces. To balance flexible self-improvement with stability, we introduce a four-layer framework that evaluates proposed harness revisions through anchor and memory checks, refining those that pass and restoring the best validated harness otherwise. We further introduce ODAC-Vis, a benchmark with 640 tasks for Open-Domain, Ambiguous, and Conversational text-to-visualization that jointly evaluates open-domain data discovery, ambiguity resolution, multi-turn visualization refinement, and executable chart generation. Experiments show that a single round of RSIV-Harness improves all six evaluation metrics relative to the seed harness, with particularly large gains in executability (+28.02 points) and chart structure (+34.01 points), demonstrating the ability to learn from task-solving experience and turn recurring failures across tasks into substantial performance improvements.

Jiawei Lu, Chen Zhang +4

Computer-use agents are limited by the interfaces humans give them. An agent may type a spreadsheet cell by cell when a single line of code would do, or print all two thousand lines of a file through a shell to find one function. Both the interfaces and the knowledge of when to use each are built by hand, which cannot keep pace with new applications, workflows, and models. We argue that interface design should itself be an agent capability. We introduce Agent S4, an autonomous computer-use scientist that builds Evolving Agent Interfaces from task experience. A meta-agent examines task agents' trajectories on synthetic training tasks, without success labels, and constructs and revises interfaces and usage knowledge in a repository. Population-based evolution then selects which repositories to develop further by their performance on validation tasks the meta-agent never sees, favoring changes that generalize beyond the seen tasks. On OSWorld V2, Agent S4, with Qwen3.8-27B and the evolved repository of interfaces, sets a new state of the art in open-source computer-use agents, reaching 21.3% binary score, 3.8 times the same model with fixed interfaces. This is above both GPT-5.5 (13.0%) and Claude Opus 4.8 (20.6%), at about 4.3% and 1.5% of their respective costs. On ScienceBoard, the evolved interfaces improve the success rate from 41.4% to 58.6% with the same model. These results suggest that useful interfaces can be evolved from experience, making autonomous interface design a source of improvement complementary to advances in models and harnesses. We open-source our code at https://github.com/simular-ai/agent-s.

Saaket Agashe, Yuzhe Yang +6

The Harness Hub newsletter

New harness companies, projects, releases and the monthly State of Harness report, in your inbox.