← All entries
Paper2026#819

LibraryDesignBench: can agents design libraries other agents can use?

Summary

Agents will soon replace humans as the main users and designers of libraries; a good library lets future agents write correct programs with less code. LibraryDesignBench: one agent designs a library, and three other agents write programs with it. 15 design tasks across four languages, with no prescribed APIs, abstractions, or guidance, to elicit genuine design decisions; programs are scored on correctness and simplicity. Results: agents using libraries designed by Opus 5.5 or Fable 5.1 pass as many tests as with the production human-written library while writing simpler code; with DeepSeek V4 Pro's libraries, agents do worse than with no library at all. Despite full design freedom, agents converged on the same patterns as the human library for 11 of 15 tasks. Most excess code stems from the library's design, not the implementer: rigid interfaces led agents to reimplement functionality (adding bugs), verbose interfaces forced more code. Giving the designer explicit guidance (start from prototypes, test with fresh subagents, more examples) made downstream programs shorter and improved score modestly at roughly twice the design cost. A standalone spin-off benchmark, LibraryUseBench, tests how well a model uses a real library with minimal guidance: Opus 5.5 leads, Sonnet 5.5 close behind, every newer model improves on its predecessor. Supported by DARPA, NSF, PrimeIntellect, and SnorkelAI's Open Benchmark Grant.

Venue
arXiv (2026-09)
Source
paper
Access
public
Language
en
Added
Sep 30, 2026
Verified
Sep 30, 2026
Research status
done
Found via
#random-papers

From the source

Published
Sep 29, 2026
arXiv categories
cs.AI, cs.CL, cs.SE
Author comment
26 pages, 6 figures, 11 tables. Code and data: https://github.com/SprocketLab/librarydesignbench
Citations
0
References
65

Fetched Oct 3, 2026 from arXiv, Semantic Scholar. These numbers change; the curated fields above do not come from here.

Abstract (from arXiv)

Agents increasingly build on code written by other agents, and they reimplement rather than reuse, growing the codebases later agents must work in. To measure how well agents design libraries for other agents, we introduce LibraryDesignBench, a two-phase benchmark in which an agent implements a full-featured library from a specification that defines required capabilities and potential use cases without prescribing the design. We evaluate the library through the correctness and simplicity of programs written by three user agents from different model families. The benchmark spans 242 expert-validated programming problems across 15 library-design tasks in four languages. On eleven of the fifteen tasks, agent designers reproduce the abstractions of the human-written production library. Downstream agents adopt agent- and human-written libraries alike but underuse them, reimplementing capabilities the library already provides. Our failure analysis finds that downstream agents write extra code mainly because agent-written libraries are rigid or hard to use, not because capabilities are missing. We also experiment with giving designers more prescriptive, agent-first guidance and having them test their library with subagents; this improves downstream scores and yields simpler programs. LibraryDesignBench provides both a testbed for evaluating library-design practices for agent users and an initial design baseline that improves downstream reuse.

Tags

benchmarksagentslibrary-designapi-design

Topics

benchmarks, agents, library design, API design

Research notes

  • Discovery: Gabe Orlanski (@GOrlanski, verified, PhD student @WisconsinCS) 2026-09-30 thread: https://x.com/GOrlanski/status/2105353831584235804?s=20
  • Leaderboard: https://ldbench.com
  • Code: https://github.com/SprocketLab/librarydesignbench
  • HF paper page: https://huggingface.co/papers/2609.36730
  • Author blog: https://gabeorlanski.github.io/posts/library-design-bench/
  • Notable thread question (Patch): do libraries designed by one model transfer to agents using other models.
  • License terms not stated in the thread; check paper/repo.
  • Connects to the collection's agent-benchmark and API-design entries.

Cites, within this collection 1

Similar entries