You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Evidence based refurbishment of openCode's System Prompt (Architecture) #14398
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
System Prompts are the hidden backbone of every coding agent. A well designed system prompting architecture is what turns a good coding agent into a stellar coding agent. The north star vision of this ticket is to transform openCode's static prompts into a research-backed, modular architecture based on analysis of 21+ papers and 11 FOSS agents.
What promoted (pun intended) this?
A few weeks ago I conducted an in-depth (AI assisted) assessment of the existing FOSS coding agents (cline, openCode, crush, kilo, goose, continue...). One section of the survey examined the system prompting quality of each clients according to the science. It was consistently reproducible that openCode unfortunately ranks in the bottom third in that aspect.
The master plan | or: a sea filled with goodies to fish in
By a multitude of iterations (GLM-5 and Kimi K2.5) -- roughly along the lines of the following prompts:
All the prompts were handwritten
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
1. Conduct an in-depth research on the science of system promoting -- specifically for coding agents like openCode, Crush, Claude Code etc, and download the relevant papers you found to @papers/. Focus on RCT / meta studies / studies in well-renowned magazines. Important objectives a) High quality coding results b) Avoid token waste / context littering c) LLM steering
2. Study the downloaded papers very carefully and extract/synthesize a comprehensive and detailed report of guidelines and best practices for system promoting that later we are going to use to a) asses the system prompting of FOSS coding agents and b) improve the system prompts and system prompting architecture of an open source agent
Make sure our report is comprehensive, contains all the relevant science and covers everything and is perfect we need for the next steps.
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
EXECUTIVE SUMMARY
=================
After extensive research under @papers/ on the science of system prompting and extracting the findings into an comprehensive guide book to @papers/SYSTEM_PROMPTING_COMPREHENSIVE_REPORT.md, it is now our plan to craft a detailed and evidence based plan now on how to improve the system prompting architecture and implementation of @opencode/.
1. As a first step, we want to a) analyze and b) assess the system prompts and system prompting architecture of the leading FOSS coding agents based on our research
2. If we stumble across well formulated system prompts or a stellar system prompting architecture (according to our research), we want to note this down as leading examples and input for our endeavor to improve opencodes system prompting
TASK
====
In this directory, I downloaded a list of leading free and open source coding agents:
* cline
* crush
* goose
* kimi-cli
* opencode
* Roo-Code
* continue
* gemini-cli
* kilocode
* mistral-vibe
* qwen-code
For each of the agents
1. Please dive deep into the code base and create an exhaustive understanding of a) the way the agent creates system prompts b) how these system prompts end up looking like and c) the system prompting code architecture
2. Based on our extensive research in @papers/SYSTEM_PROMPTING_COMPREHENSIVE_REPORT.md asses the a) quality of the system prompts and b) system prompting architecture
3. When analyzing the FOSS agent of a model vendor ( @gemini-cli/ for the Google Models, @kimi-cli/ for the Kimi models, @qwen-code/ for the Qwen models and @mistral-vibe/ for the Mistral models), watch out for specifics we can learn that may be relevant for the model family or individual models of that vendor
Create an extensive report with our finding!
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
Now create and indepth and detailed while iterative plan to incorporate the findings of our research a) @papers/SYSTEM_PROMPTING_COMPREHENSIVE_REPORT.md @papers/ as well as our open source code analysis @FOSS_CODING_AGENTS_SYSTEM_PROMPT_ANALYSIS.md into @opencode/: Each step should be a PRable (aka encapsulated and reviewable) increment
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
Can you please deep dive through the plan @OpenCode_IMPROVEMENT_PLAN.md and restructure it according to priority.
How to define priority:
1. How much impact will a mechanism have based on evidence of the science in @papers/SYSTEM_PROMPTING_COMPREHENSIVE_REPORT.md @papers/
2. How widely is this objective backed by the science - aka not just a result from based one paper, but can be found several papers in a similar form - and our findings in @FOSS_CODING_AGENTS_SYSTEM_PROMPT_ANALYSIS.md
3. What is the effort and how much churn will it cause in the code base?
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
Skim @OpenCode_IMPROVEMENT_PLAN.md and the science in @papers/ for over specifying. Also conduct another science web research. It has been proven that over specification hurts LLM (coding) performance
Activity
github-actions commentedon Feb 20, 2026
This issue might be a duplicate of existing issues. Please check:
If #14398 is meant to replace #14395, please clarify what differs or reference the prior issue in the description.
micuintus commentedon Feb 20, 2026
A summary of the master plan:
OpenCode_IMPROVEMENT_PLAN.md
P0 - Foundation
P1 - Infrastructure
P2 - Targeted Improvements
P3 - Advanced/Exploratory
micuintus commentedon Feb 20, 2026
Transparency: How did I create this master plan?
By a multitude of iterations (GLM-5 and Kimi K2.5) -- roughly along the lines of the following prompts:
All the prompts were handwritten
micuintus commentedon Feb 20, 2026
FOSS_CODING_AGENTS_SYSTEM_PROMPT_ANALYSIS.md
github-actions commentedon Apr 22, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.