[FEATURE]: Context-Aware Prompt Enhancement #7342

Open
opened 2026-02-16 18:06:54 -05:00 by yindo · 2 comments
Owner

Originally created by @Faddz on GitHub (Jan 23, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Introduce a "Prompt Enhancement" feature similar to Kilo Code and Augment Code. This tool allows users to transform brief, informal instructions into high-fidelity, structured prompts by leveraging a dedicated secondary model and local project context.

Core Functionalities

  • Dedicated Enhancer Model Selection: Allow users to select a separate, lightweight model (e.g., GPT-4o-mini, Claude 4.5 Haiku, etc.) specifically for the enhancement task.
  • Custom Enhancement Instructions: Provide a settings field where users can define their own system prompt for the enhancer. This allows for personalized coding standards, such as "always include error handling and JSDoc comments in the generated requirements."
  • Contextual Injection:
    • AGENTS.md Integration: Automatically include the content of the AGENTS.md file (if present).
    • Chat History: Pass the recent chat history (if present) to the enhancer model so it can resolve pronouns (e.g., "fix that bug") and maintain continuity without the user needing to repeat context.

UX & Interaction Design

  • Trigger: Use the hotkey Ctrl + e to trigger the enhancement of the current text in the input field.
  • Behavior: Upon activation, the current draft is replaced entirely by the enhanced version.
  • Undo Action: If the user is unsatisfied with the result, pressing Esc immediately reverts the text in the input field to the original draft.
  • Visual Feedback: A subtle loading state (e.g., a "Magic Wand" icon animation) should appear in the input bar while the enhancer model is processing the request.
Originally created by @Faddz on GitHub (Jan 23, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Introduce a "Prompt Enhancement" feature similar to Kilo Code and Augment Code. This tool allows users to transform brief, informal instructions into high-fidelity, structured prompts by leveraging a dedicated secondary model and local project context. **Core Functionalities** * **Dedicated Enhancer Model Selection**: Allow users to select a separate, lightweight model (e.g., GPT-4o-mini, Claude 4.5 Haiku, etc.) specifically for the enhancement task. * **Custom Enhancement Instructions**: Provide a settings field where users can define their own system prompt for the enhancer. This allows for personalized coding standards, such as "always include error handling and JSDoc comments in the generated requirements." * **Contextual Injection**: * **AGENTS.md Integration**: Automatically include the content of the `AGENTS.md` file (if present). * **Chat History**: Pass the recent chat history (if present) to the enhancer model so it can resolve pronouns (e.g., "fix *that* bug") and maintain continuity without the user needing to repeat context. **UX & Interaction Design** * **Trigger**: Use the hotkey **`Ctrl + e`** to trigger the enhancement of the current text in the input field. * **Behavior**: Upon activation, the current draft is replaced entirely by the enhanced version. * **Undo Action**: If the user is unsatisfied with the result, pressing **`Esc`** immediately reverts the text in the input field to the original draft. * **Visual Feedback**: A subtle loading state (e.g., a "Magic Wand" icon animation) should appear in the input bar while the enhancer model is processing the request.
yindo added the discussion label 2026-02-16 18:06:54 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 23, 2026): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Author
Owner

@jensenojs commented on GitHub (Feb 2, 2026):

I tried this feature on trae and it actually seems pretty useful. I wonder if there are any ready-made custom-tools that support this functionality now.

@jensenojs commented on GitHub (Feb 2, 2026): I tried this feature on trae and it actually seems pretty useful. I wonder if there are any ready-made custom-tools that support this functionality now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7342