Files
Kilo-Org_kilocode/packages/opencode/test/kilocode
Mark IJbema 6f9a0f0c5a feat(vscode): Enhance Prompt — sparkle button to improve prompts before sending
Add the Enhance Prompt feature to the VS Code extension, matching the
legacy extension's behaviour. A  sparkle button in the chat input
toolbar rewrites the user's draft prompt using an LLM.

CLI:
- POST /enhance-prompt endpoint using LLM.stream with small model
- System prompt as agent.prompt for caching; user text as user message
- clean() strips code fences and surrounding quotes from LLM output

Extension:
- KiloProvider handler using SDK client.enhancePrompt.enhance()
- Shows VS Code error notification on failure
- WandSparkles icon from lucide-solid via @kilocode/kilo-ui
- Spin animation while enhancement is in flight
- Empty-input click shows feature description (all 16 i18n locales)
- Ctrl+Z / ⌘Z undo restores original draft
- Guard checks isBusy/isDisabled/enhancing matching canEnhance()

Tests:
- 11 unit tests for clean() in enhance-prompt.test.ts

Migration plan:
- Removed feature row (parity achieved)
- Deleted prompt-improvement.md spec doc
2026-03-03 13:21:45 +01:00
..
2026-02-23 13:54:54 +01:00