# LibraryDesignBench: can agents design libraries other agents can use?

- **ID:** 819
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2609.36730
- **Authors:** Gabe Orlanski, et al. (collaborators: @a1zhang, @atrost3122, @vincentsunnchen, @fredsala, @awsTO, @lschmidt3)
- **Venue:** arXiv (2026-09)
- **Published:** 2026
- **Source:** paper
- **Language:** en
- **Access:** public
- **Tags:** benchmarks, agents, library-design, api-design
- **Topics:** benchmarks, agents, library design, API design
- **Added:** 2026-09-30
- **Verified:** 2026-09-30
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/819

## 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.

## From the source (fetched 2026-10-03)

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

## Abstract

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.

## 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

- [GLM-5: from Vibe Coding to Agentic Engineering](https://papers.projxon.ai/entries/532) (paper 2026, #532)

## Similar entries

- [AutoBenchmark: benchmark creation and the role of humans (Meta RAM blog)](https://papers.projxon.ai/entries/814) (post, #814)
- [RSIArena: LIVE RSI Arena (8 agents compete to post-train one 30B base model)](https://papers.projxon.ai/entries/807) (tool, #807)
- [LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning](https://papers.projxon.ai/entries/821) (paper, #821)
- [MaLiang-Harness: A Programmable Path to Image and Video Generation](https://papers.projxon.ai/entries/801) (paper, #801)
- [ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results](https://papers.projxon.ai/entries/830) (benchmark, #830)
- [AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvement](https://papers.projxon.ai/entries/691) (paper, #691)
