PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 20, 2025ACM Transactions on Software Engineering and Methodology2 citationsOpen Access

CodeS: Natural Language to Code Repository via Multi-Layer Sketch

View Full Paper
DZDaoguang ZanAYAilun YuWLWei Liu

Key Points

  • CodeS effectively transforms natural language requirements into complete code repositories, enhancing software engineering tasks.
  • The evaluation metric SketchBLEU assesses CodeS performance through automated benchmarks and manual feedback analysis.
  • RepoSketcher, FileSketcher, and SketchFiller are key modules within the CodeS framework for structured code generation.
  • Engagement of 30 participants in empirical studies demonstrates CodeS's practical applications and usability in real-world scenarios.

Abstract

The impressive performance of large language models (LLMs) on code-related tasks has shown the potential of fully automated software development. In light of this, we introduce a new software engineering task, namely Natural Language to code Repository (NL2Repo). This task aims to generate an entire code repository from its natural language requirements. To address this task, we propose a simple yet effective framework CodeS, which decomposes NL2Repo into multiple sub-tasks by a multi-layer sketch. Specifically, CodeS includes three modules: RepoSketcher, FileSketcher, and SketchFiller. RepoSketcher first generates a repository’s directory structure for given requirements; FileSketcher then generates a file sketch for each file in the generated structure; SketchFiller finally fills in the details for each function in the generated file sketch. To rigorously assess CodeS on the NL2Repo task, we carry out evaluations through both automated benchmarking and manual feedback analysis. For benchmark-based evaluation, we craft a repository-oriented benchmark, SketchEval, and design an evaluation metric, SketchBLEU. For feedback-based evaluation, we develop a VSCode plugin for CodeS and engage 30 participants in conducting empirical studies. Extensive experiments prove the effectiveness and practicality of CodeS on the NL2Repo task.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Zan et al. (2025) studied this question.

synapsesocial.com/papers/68d46fcd31b076d99fa69e51https://doi.org/10.1145/3768577
Ask AI
Helpful
Bookmark
Share
View Full Paper