[FEATURE]: Like Kilo Code, it automatically optimizes user prompts. #8962

Open
opened 2026-02-16 18:11:16 -05:00 by yindo · 3 comments
Owner

Originally created by @RonxBulld on GitHub (Feb 10, 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

Kilo Code has a very useful feature that allows users to "enhance prompt with additional context" after writing their prompts, making the prompts more organized and standardized.
I have implemented a basic version and it works well.
If this feature is allowed, I would be happy to create a PR on it.

Image Image Image
Originally created by @RonxBulld on GitHub (Feb 10, 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 Kilo Code has a very useful feature that allows users to "enhance prompt with additional context" after writing their prompts, making the prompts more organized and standardized. I have implemented a basic version and it works well. If this feature is allowed, I would be happy to create a PR on it. <img width="955" height="441" alt="Image" src="https://github.com/user-attachments/assets/c2a0ca8b-8824-4780-80a2-10824d56a162" /> <img width="861" height="655" alt="Image" src="https://github.com/user-attachments/assets/e691aed3-53e9-4a37-a376-2d440b781ad8" /> <img width="947" height="555" alt="Image" src="https://github.com/user-attachments/assets/bdac708e-8657-4369-8bfc-a790aabd07a7" />
yindo added the discussion label 2026-02-16 18:11:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 10, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10237: Context-Aware Prompt Enhancement

This appears to be requesting the same core functionality (enhancing/optimizing user prompts with additional context). Please review the existing issue to see if it addresses your needs or if your implementation has different features worth discussing separately.

@github-actions[bot] commented on GitHub (Feb 10, 2026): This issue might be a duplicate of existing issues. Please check: - #10237: Context-Aware Prompt Enhancement This appears to be requesting the same core functionality (enhancing/optimizing user prompts with additional context). Please review the existing issue to see if it addresses your needs or if your implementation has different features worth discussing separately.
Author
Owner

@ariane-emory commented on GitHub (Feb 10, 2026):

This is a feature that can be trivially implemented in userspace by using custom slash commands that invoke opencode run. Doesn't seem necessary or helpful to me.

The last time I tried Kilo, its prompt enhancer feature was ill-conceived: the enhancer model did not get access to the file system reading tools, leaving it incapable of studying the codebase to enhance the prompt appropriately, something that is trivial to do in an OC userspace prompt enhancer. That was a few months ago, so it's possible that this has changed in more recent versions of Kilo.

@ariane-emory commented on GitHub (Feb 10, 2026): This is a feature that can be trivially implemented in userspace by using custom slash commands that invoke `opencode run`. Doesn't seem necessary or helpful to me. The last time I tried Kilo, its prompt enhancer feature was ill-conceived: the enhancer model did not get access to the file system reading tools, leaving it incapable of studying the codebase to enhance the prompt appropriately, something that is trivial to do in an OC userspace prompt enhancer. That was a few months ago, so it's possible that this has changed in more recent versions of Kilo.
Author
Owner

@RonxBulld commented on GitHub (Feb 10, 2026):

This is a feature that can be trivially implemented in userspace by using custom slash commands that invoke opencode run. Doesn't seem necessary or helpful to me.

The last time I tried Kilo, its prompt enhancer feature was ill-conceived: the enhancer model did not get access to the file system reading tools, leaving it incapable of studying the codebase to enhance the prompt appropriately, something that is trivial to do in an OC userspace prompt enhancer. That was a few months ago, so it's possible that this has changed in more recent versions of Kilo.

Thank you for your reply.

Your suggestion is entirely correct in some scenarios. In fact, I have a skill called ultrawork that embeds structured question clarification and anti-spoofing interaction as the first working stage.

However, I find it sometimes too heavyweight. I urgently need a lightweight implementation that can help me optimize prompts within seconds to tens of seconds.

I implemented the following prompt concatenation to balance performance and speed:

  1. User-overridable optimization rules;

  2. Original prompts;

  3. AGENTS.md content;

  4. Recent chat history.

@RonxBulld commented on GitHub (Feb 10, 2026): > This is a feature that can be trivially implemented in userspace by using custom slash commands that invoke `opencode run`. Doesn't seem necessary or helpful to me. > > The last time I tried Kilo, its prompt enhancer feature was ill-conceived: the enhancer model did not get access to the file system reading tools, leaving it incapable of studying the codebase to enhance the prompt appropriately, something that is trivial to do in an OC userspace prompt enhancer. That was a few months ago, so it's possible that this has changed in more recent versions of Kilo. Thank you for your reply. Your suggestion is entirely correct in some scenarios. In fact, I have a skill called `ultrawork` that embeds structured question clarification and anti-spoofing interaction as the first working stage. However, I find it sometimes too heavyweight. I urgently need a lightweight implementation that can help me optimize prompts within seconds to tens of seconds. I implemented the following prompt concatenation to balance performance and speed: 1) User-overridable optimization rules; 2) Original prompts; 3) AGENTS.md content; 4) Recent chat history.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8962