ChatPaper.aiChatPaper

スーパーライブラリエージェント:単一コードベースを超えた複数アプリケーションの共同生成と保守

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

August 29, 2026
著者: Daegyu Sung, Yukyeong Lee, Geon Park, Yumin Choi, Sung Ju Hwang
cs.AI

要旨

組織は多くの場合、関連するアプリケーション群のポートフォリオを開発・維持している。すなわち、実質的なドメインロジック、インターフェースパターン、または運用規約を共有する、独立してデプロイ可能なコードベース群である。LLMコーディングエージェントがこのようなソフトウェアの生成や保守にますます利用されるようになると、単純なアプリケーション単位のワークフローでは共有ロジックがコードベース間で重複し、長期にわたるエージェント駆動の保守によって冗長性、デッドコード、構造的侵食が蓄積される。我々は、スーパーライブラリエージェント問題を導入する。この問題では、エージェントが再利用可能なアプリケーション横断コンポーネントの共有スーパーライブラリを維持しながら、N個の関連アプリケーションからなるポートフォリオを逐次生成する。最小限の逐次スキャフォールドは、原理的には共有コードを抽出し、進化するライブラリへアプリケーションを移行できるが、実際には抽出再現率の低さと脆弱な依存関係移行に悩まされる。我々は、コードチャンクの要約に対する候補誘導型抽出、抽出前のコードベース統合、および抽出トレースとコールグラフ情報を用いた文脈認識型移行によって、これらの問題に対処する。WebGen-BenchおよびPaperBenchにおいて、本手法はアプリケーションの機能を維持しつつ、ゼロショットと比較して冗長性とトークンフットプリント(冗長性、トークン長)を大幅に削減し、単純なライブラリ構築によって引き起こされる構造的侵食を回避する。さらに、LOCとMDLの追加削減も達成する。我々のコードは https://github.com/sbigstar0310/super-library-agent で入手可能である。
English
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.