Metraipolis › archive › dc_ab8985d425d4
The Role of Agentic Instruction Categories for Code Generation: A Study of Five Python Libraries — arXiv:2610.21421
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.21421
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T10:25:29.284Z
- SHA-256 of the archived text
c15ab4ad2e054db3be00fc2ea011f262d62d0d6ba905dec19bdd15b8590d5e46- Stable URL of this page
https://metraipolis.com/documento/dc_ab8985d425d4
How to cite
The Role of Agentic Instruction Categories for Code Generation: A Study of Five Python Libraries — arXiv:2610.21421 — arXiv (en), https://arxiv.org/abs/2610.21421 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_ab8985d425d4 (Metraipolis archive dc_ab8985d425d4, sha256 c15ab4ad2e054db3be00fc2ea011f262d62d0d6ba905dec19bdd15b8590d5e46)
BibTeX
@misc{dcab8985d425d4,
title = {The Role of Agentic Instruction Categories for Code Generation: A Study of Five Python Libraries — arXiv:2610.21421},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.21421},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_ab8985d425d4; sha256 c15ab4ad2e054db3be00fc2ea011f262d62d0d6ba905dec19bdd15b8590d5e46},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.21421. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Agentic coding systems increasingly rely on repository-level agent files, such as this http URL , to communicate project knowledge and developer intent. However, it remains unclear which categories of agent instructions enable efficient agent-file generation and accurate code generation. We evaluate five instruction categories: Repository Overview, Function Description, Implementation Detail, Testing, and Reconstruction Steps, across all 31 non-empty combinations using two Large Language Models (LLMs), Gemma 4 and GPT-5.4, and five human-written Python libraries. Our study addresses two research questions, comprising five sub-questions, on agent file generation and code generation. Results show that the number of instructions alone does not determine token usage for agent-file generation, with substantial variation across models and libraries. Although most AI-generated libraries compiled successfully regardless of the instruction combination, functional correctness remained limited. No Gemma 4 variant passed all tests, whereas 12.99% of GPT-5.4 variants did. Function Description achieved Gemma 4's highest partial-pass rate, while Reconstruction Steps achieved GPT-5.4's highest full-pass rate. For structural similarity to human-written code, Reconstruction Steps was most frequently associated with libraries closest to the originals in Lines of File and total Cyclomatic Complexity, while Testing and Reconstruction Steps were jointly most frequent for File Count and Function Count. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.SE, nuovi lavori del giorno). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.21421 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T08:48:17.702Z dalla pagina https://arxiv.org/list/cs.SE/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).