Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questions

Harsh Darji, Thibaud Lutellier
7/28/2025
cs.AI

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) are increasingly used as coding assistants. However, the ambiguity of the developer's prompt often leads to incorrect code generation, as current models struggle to infer user intent without extensive prompt engineering or external context. This work aims to build an LLM-based coding assistant that mimics the human code review process by asking clarification questions when faced with ambiguous or under-specified queries. Our end-to-end system includes (1) a query classifier trained to detect unclear programming-related queries and (2) a fine-tuned LLM that generates clarification questions. Our evaluation shows that the fine-tuned LLM outperforms standard zero-shot prompting in generating useful clarification questions. Furthermore, our user study indicates that users find the clarification questions generated by our model to outperform the baseline, demonstrating that our coding assistant produces more accurate and helpful code responses compared to baseline coding assistants.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{darji2025curiosity,
  title  = {Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questions},
  author = {Harsh Darji and Thibaud Lutellier},
  year   = {2025},
  eprint = {2507.21285},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.21285v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.21285.svg)](https://codeofpaper.com/paper/2507.21285)

Discussion