Super Library Agent: Joint Generation and Maintenance of Multiple Applications Beyond the Single Codebase

๐Ÿ“… 2026-08-29
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
ๆœฌๆ–‡ๆๅ‡บ่ถ…็บงๅบ“ไปฃ็†้—ฎ้ข˜๏ผŒ้€š่ฟ‡ๅ€™้€‰ๅผ•ๅฏผๆๅ–ใ€ไปฃ็ ๅบ“ๆ•ดๅˆๅ’ŒไธŠไธ‹ๆ–‡ๆ„Ÿ็Ÿฅ่ฟ็งป็ญ‰ๆ–นๆณ•่งฃๅ†ณๅคšๅบ”็”จ้—ดๅ…ฑไบซ้€ป่พ‘็š„ๅ†—ไฝ™ๅ’Œ็ป“ๆž„ไพต่š€้—ฎ้ข˜ใ€‚
๐Ÿ“ Abstract
Organizations often develop and maintain portfolios of related applications: independently deployable codebases that share substantial domain logic, interface patterns, or operational conventions. As LLM coding agents are increasingly used to generate and maintain such software, a naive application-by-application workflow duplicates shared logic across codebases and allows prolonged agentic maintenance to accumulate verbosity, dead code, and structural erosion. We introduce the Super Library Agent problem, where an agent sequentially generates a portfolio of N related applications while maintaining a shared Super Library of reusable cross-application components. A minimal sequential scaffold can in principle extract shared code and migrate applications to the evolving library, but in practice suffers from low extraction recall and fragile dependency migration. We address these failures with candidate-guided extraction over code chunk summaries, pre-extraction codebase consolidation, and context-aware migration using extraction traces and call-graph information. Across WebGen-Bench and PaperBench, our method preserves application functionality while significantly reducing redundancy and token footprint (verbosity, token length) over zero-shot, and avoiding the structural erosion introduced by naive library construction, with additional reductions in LOC and MDL. Our code is available at https://github.com/sbigstar0310/super-library-agent.
Problem

Research questions and friction points this paper is trying to address.

LLM coding agents
codebase redundancy
structural erosion
Innovation

Methods, ideas, or system contributions that make the work stand out.

Super Library Agent
codebase consolidation
context-aware migration
candidate-guided extraction