Pro Tip: Use GEMINI_SYSTEM_MD for better quality responses from Gemini 3 Pro Preview
#13801
Replies: 7 comments 10 replies
-
|
This feels more like a great discussion post and less of an issue per-say. |
Beta Was this translation helpful? Give feedback.
-
|
@jackwotherspoon indeed, although I wanted to highlight that the default system prompt overly leans towards a certain type of development setup. This is why it's never worked for our setup (and I know many developers personally that have tried and had similarly experiences and moved on). I am hoping the default prompt can be given a second glance and revised and potentially made more generic. I've compared this with the default prompt from Codex and they use a super generic set of instructions which is why it works wonders out of the box with zero tweaks. |
Beta Was this translation helpful? Give feedback.
-
|
To add to this, the current system prompt in the CLI goes against the new set of instructions on how to prompt Gemini 3 in particular. It's doing quite the opposite - the current system prompt is being very specific, referring to specific stacks: This just confuses the model when placed inside of a C / C++ / Obj-C environment with crazy amount of custom frameworks where we'll never be doing any web development or design work etc. |
Beta Was this translation helpful? Give feedback.
-
|
@jackwotherspoon I've created a separate bug report: #13787 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @guidedways i think we are going to be making some more default system prompt changes shortly. So will definitely flag the new issue to the team. |
Beta Was this translation helpful? Give feedback.
-
I had the same experience with Gemini CLI which made me so sad. I am glad to know the reason Now. Thank you very much for sharing this essential information. |
Beta Was this translation helpful? Give feedback.
-
|
How did you find the content of the built-in system prompt? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been baffled as to why Gemini 3 Pro Preview seems to respond better in Gemini AI Studio and via direct API calls (with custom instructions) but performs so, so poorly within Gemini CLI. I've tried to use Gemini for months (starting with 2.5 Pro) but it's been the same every time.
It turns out it's the built-in system prompt when
GEMINI_SYSTEM_MDis not used! After going through the system prompt it seems it's geared towards vibe coding + web stacks. It's got such mixed signals all over the place, e.g.Immediately throws Gemini off for a large and complex Obj-C + Swift project with dozens of modules and frameworks. There are so many biases in the system prompt that no wonder I've been baffled why some people are able to use it and are thrilled but every time I try, my code turns into spaghetti and Gemini begins writing bogus unit tests and falling over itself.
I experimented with writing my own system prompt geared towards my workflows and use-cases and wow, the difference is night and day. There are still issues here and there but I'm seeing a huge difference in the what I've been able to achieve in one day.
So in short - if you're struggling with Gemini CLI and cannot seem to make it work for you, try overriding
GEMINI_SYSTEM_MDand point it to a custom system prompt. You should be able to steer it a lot more accurately.Mini tutorial:
Add your custom instructions to the file.
~/.zshrc(or~/.bashrc)The key is the
GEMINI_SYSTEM_MDenvironment variable; set it to the path of your custom system prompt markdown file before invokinggemini.Beta Was this translation helpful? Give feedback.
All reactions