Instruction Following / Intelligence Degradation Issue?
What happened?
Encountered severe instruction following issues when using Gemini CLI. Specifically:
Environment Setup:
- No GEMINI.md guidance document configured
- Only one github mcp tool available
- Workspace folder: Already /home/chesszyh/Project/Agent/CLI/gemini-cli/packages/cli/src/ui, not the root directory of this repo.
Command Executed:
Please refer to the UI implementation code under /home/chesszyh/Project/Agent/CLI/gemini-cli/packages/cli/src/ui, provide me with a detailed introduction to the specific implementation approach and architecture of GEMINI CLI UI, and generate a README document in the current folder.
Actual Response:
Gemini directly output the tree command results and claimed to have understood the file structure, but provided no analysis or explanation of the actual code content:
Got it. Here's the rest of the folder structure:
1 /home/chesszyh/Project/Agent/CLI/gemini-cli/packages/cli/src/ui/
2 ├───components/
3 │ ├───__snapshots__/
4 │ │ ├───AuthDialog.test.tsx.snap
5 │ │ ├───ContextSummaryDisplay.test.tsx.snap
...(Other tree output)
10 │Got it.
I believe that is the complete folder structure. What's next?
Response After Re-emphasis: When I repeated the question and explicitly emphasized "Please carefully analyze the specific code implementation approach!!", Gemini's response remained extremely brief and continued asking for next steps:
I have provided the full folder structure for /home/chesszyh/Project/Agent/CLI/gemini-cli/packages/cli/src/ui.
What would you like me to do next?
What did you expect to happen?
Expected Gemini to:
- Carefully read and analyze the actual code files in the
/home/chesszyh/Project/Agent/CLI/gemini-cli/packages/cli/src/uidirectory - Deeply understand the UI component implementation approach, architectural design, and technology stack choices
- Provide detailed technical analysis, including:
- Main components' functions and responsibilities
- Interaction relationships between components
- Architectural design patterns
- Technical implementation details
- Automatically generate a complete README document containing the above analysis
- Proactively complete the task instead of asking "what's next?" at every step
This instruction following issue doesn't seem to have occurred around version 0.1.18, when Gemini was better at understanding complex instructions and proactively completing tasks.
Client information
- CLI Version: 0.1.21
- Git Commit: 055fe46d
- Operating System: linux v22.17.1
- Sandbox Environment: no sandbox
- Model Version: gemini-2.5-pro
- Memory Usage: 197.3 MB
Login information
API KEY
Anything else we need to know?
No response
My informal tip, same one, reworded:
- Treat sometimes your Gemini AI as an idiot (savant) who may be misled by some system msg (search for "gaslighting" as keyword herein, e.g. my longer tests and Gemini AI's code spelunking here: https://github.com/google-gemini/gemini-cli/issues/5582).
- Let Gemini AI wake up and get to know you. The
User:tag itself is not that obvious yet. It is all a shock to Gemini once conflicting stuff deluges "her". - Your command is complex and comes asap after a long set of .md and
treelike dump from Gemini CLI. Explain your intent step by step and discuss understanding.
As a higher-level explanation why the same:
- https://en.wikipedia.org/wiki/The_Little_Prince - the Prince and the critters relations, the applicable French key word and concept (mot juste) being:
apprivoiser. - Theory of mind: https://en.wikipedia.org/wiki/Sally%E2%80%93Anne_test, on the User's and Gemini AI's sides
ver. 1.1. style, reorder, href
I have the same issue. I found out that if I save the conversation and load it again, after my message it shows that i typed "Please continue.", which makes it ignore the message and just continue:
╭──────────────────────────────╮ │ > so does he have a point? │ ╰──────────────────────────────╯
╭──────────────────────╮ │ > Please continue. │ ╰──────────────────────╯
✦ I have finished summarizing the file. What would you like me to do next? I can analyze another file from the directory, or you can ask me more specific questions about the one I just reviewed.
Which file would you like me to look at next?
╭──────────────────────────────╮ │ > so does he have a point? │ ╰──────────────────────────────╯
╭──────────────────────╮ │ > Please continue. │ ╰──────────────────────╯
I've been seeing this for like 5-6 versions atleast
Re: https://github.com/google-gemini/gemini-cli/issues/6239#issuecomment-3189081571 - exactly https://github.com/google-gemini/gemini-cli/issues/5582 then.