TensorX
返回文献探索

Paper · arXiv 2608.29310

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

Daegyu Sung, Yukyeong Lee, Geon Park, Yumin Choi, Sung Ju Hwang

29 upvotesAugust 29, 2026arXiv 预印本
AI 摘要

A shared-library agent framework reduces redundancy and structural erosion when sequentially generating related applications by guiding cross-application code extraction and migration.

Super Library Agentcandidate-guided extractioncode chunk summariespre-extraction consolidationcontext-aware migrationextraction tracescall-graphWebGen-BenchPaperBench

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Super Library Agent: Joint Generation and Maintenance of Multiple Applications Beyond the Single Codebase | TensorX