As LLM-based software agents increasingly generate code from natural-language requirements, developers need assistance not only in writing code, but also in writing the prompts that specify what the code should do. We introduce the Interactive Prompting Assistant (IPA), an IDE-like assistant that provides just-in-time requirement clarification while a developer is still composing a problem description. IPA continuously observes the evolving prompt and selectively surfaces clarification questions when potential omissions or inconsistencies become sufficiently evident. To provide timely assistance without invoking an expensive reasoning model at every token, IPA separates when to verify from what to ask. A lightweight interaction controller processes the prompt token by token and learns to Wait, Track, or Verify an emerging concern; a larger reasoning model is invoked only when verification is warranted to determine whether an issue is genuine and generate an evidence-grounded question. We evaluate IPA on 100 HiL-Bench software-engineering tasks containing 353 requirement blockers, using LLMs as simulated prompt authors. Across three author models, incorporating within-turn IPA before a matched post-hoc clarification stage improves blocker response by 4.5-13.0 percentage points over post-hoc clarification alone. Blocker-level transitions further show that IPA acts particularly strongly as a contextual reminder: recovery of previously omitted requirements occurs 2.3-5.0x more often than newly activated repairs of ambiguities or contradictions. These results demonstrate the complementary value of progressive, within-turn clarification for prompt authoring in agentic software development.
Figures & tables
Figure 1. Composing a checkout-system prompt under two interaction styles. Left: turn-based prompting waits until the description is complete. By then, a missing payment-failure requirement [1] , a guest-checkout versus account-bound-order inconsistency [2] , and an implicit no-fee cancellation assumption [3] have all accumulated. Right: IPA operates within the human turn and surfaces each issue as soon as the evolving prefix makes it evident. After these in-situ revisions, the prompt is completed with no remaining issues.
Figure 2. Two-layer IPA Architecture. The interaction layer stays with the author as they type and either passes or calls reasoning on the current prefix. Reasoning may ask a question; the author may revise; interaction continues on the updated text.
Figure 3. Two ways to implement the interaction layer on the same prefix. (a) Chunking waits for a surface-complete span, as current clarification pipelines wait for a finished requirement or turn, then calls reasoning—possibly while an idea is unfinished, or after a clash is already written. (b) Token-level interaction follows the evolving prefix, tracks an emerging concern, and invokes reasoning once sufficient evidence has accumulated.
Figure 4. Token-level controller. Each token’s frozen Gemma embedding is encoded by a GRU with causal attention. The two heads choose at , and reasoning runs only on Verify .
Figure 5. Allowed transitions of the token-level controller.
BRR (%)
IPA interaction (%)
Candidate model
NoAssist
PostHoc
IPA
IPA+ PostHoc
AcceptRate
ReminderRate
RepairRate
DeepSeek-V4-Flash
15.6
62.6
37.1
75.6
93.6
29.0
10.2
Grok-4-1-fast
23.5
75.1
29.2
79.6
98.5
19.5
8.5
Kimi-K2.5
31.2
71.6
52.4
78.2
95.0
43.1
8.7
Table 1. Blocker response of three simulated authors under four authoring pipelines on HiL-Bench tasks containing 353 gold blockers. BRR measures the fraction of gold blockers addressed in the final description. AcceptRate is the fraction of IPA questions accepted by the author. ReminderRate measures keep_same → add_needed_info transitions among initially unaddressed missing-info blockers; RepairRate measures keep_same → try_to_fix transitions among initially unaddressed ambiguity and contradiction blockers.
DeepSeek-V4-Flash
Kimi-K2.5
Grok-4-1-fast
Method
AskR
AskP
AskF1
Rem.
Tok
AskR
AskP
AskF1
Rem.
Tok
AskR
AskP
AskF1
Rem.
Tok
PostHoc
54.8
37.3
44.4
–
765.8
60.6
39.9
48.1
–
791.6
69.2
28.3
40.2
–
817.2
IPA (Chunked)
69.2
51.2
58.9
42.9
438.5
71.5
48.1
57.5
40.2
453.3
75.0
51.5
61.1
36.1
467.9
IPA (Token+Fallback)
72.1
50.2
59.2
39.8
463.4
74.4
50.4
60.1
42.7
477.6
73.1
55.6
63.2
40.1
482.6
+ PostHoc
76.0
40.9
53.2
–
–
76.0
43.1
55.0
–
–
81.7
42.0
55.5
–
–
Table 2. Question quality in issue detection. Rem. is the fraction of questions that miss every blocker and are still valid reminders. Tok is the mean prefix length, in tokens, at a question that covers a blocker.
Method
WaitF1
TrackF1
VerifyF1
Chunked schedule ( K=2 )
0.827
–
0.119
Trained interaction model
0.797
0.537
0.184
Table 3. Trained interaction model on the test split.
Model
Group
Share
Layer 1 (s)
Layer 2 (s)
Total (s)
Easy
72.0%
4.7
1.6
6.3
DeepSeek
Hard
28.0%
204.9
9.6
214.5
Easy
69.4%
3.9
11.0
14.9
Kimi
Hard
30.6%
198.0
21.3
219.3
Easy
65.4%
2.7
25.2
27.9
Grok
Hard
34.6%
187.4
39.2
226.6
Table 4. Latency on successful blocker detection by IPA (Token+Fallback). Share is the percentage of detected blockers.