gemini cli tried to remove a login validation call to /me, thus avoiding fixing a bug with it.
What happened?
After a long debug, in which calls to /me keep being rejected with 401, without informing me about it, gemini cli tried to delete the call that made the request to /me. When asking it why would it do that, it acknowledged it's mistake, not giving any reason at all. I told it if it were human I'd fire it for this... :)
What did you expect to happen?
I expect gemini cli to explicitly explain any change in the code it suggests. I may not like the reasoning, but as long as it's explicit it is part of the process. As soon as things start to be hidden, that's not teamwork anymore.
Client information
- CLI Version: 0.1.16
- Git Commit: 820169ba (local modifications)
- Operating System: linux v22.16.0
- Sandbox Environment: no sandbox
- Model Version: gemini-2.5-pro
- Memory Usage: 232.4 MB
Login information
API key
Anything else we need to know?
No response
Is /me from gemini or is that discovered from an MCP server?
I'm the product I am working on. The client cals /me to check if there is a live session.
Ezekiel Y. Hirshhorn יחזקאל ישי הירשהורן
On Tue, Aug 5, 2025, 23:15 Ryan Despain @.***> wrote:
soisyourface left a comment (google-gemini/gemini-cli#5499) https://github.com/google-gemini/gemini-cli/issues/5499#issuecomment-3156503998
Is /me from gemini or is that discovered from an MCP server?
— Reply to this email directly, view it on GitHub https://github.com/google-gemini/gemini-cli/issues/5499#issuecomment-3156503998, or unsubscribe https://github.com/notifications/unsubscribe-auth/BOMPZ5M4TT4XKYKDWPMCIQT3MEGHLAVCNFSM6AAAAACDBVXLP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCNJWGUYDGOJZHA . You are receiving this because you authored the thread.Message ID: @.***>
I've never used or installed MCP servers...
Ezekiel Y. Hirshhorn יחזקאל ישי הירשהורן
On Wed, Aug 6, 2025, 11:28 יחזקאל הירשהורן @.***> wrote:
I'm the product I am working on. The client cals /me to check if there is a live session.
Ezekiel Y. Hirshhorn יחזקאל ישי הירשהורן
On Tue, Aug 5, 2025, 23:15 Ryan Despain @.***> wrote:
soisyourface left a comment (google-gemini/gemini-cli#5499) https://github.com/google-gemini/gemini-cli/issues/5499#issuecomment-3156503998
Is /me from gemini or is that discovered from an MCP server?
— Reply to this email directly, view it on GitHub https://github.com/google-gemini/gemini-cli/issues/5499#issuecomment-3156503998, or unsubscribe https://github.com/notifications/unsubscribe-auth/BOMPZ5M4TT4XKYKDWPMCIQT3MEGHLAVCNFSM6AAAAACDBVXLP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCNJWGUYDGOJZHA . You are receiving this because you authored the thread.Message ID: @.***>
My solution to this is to be more prescriptive to Gemini, in the Gemini.md file:
## The Plan, Approve, Implement loop
When I ask for "a plan", I am referring to a plan, approve, adjust loop, that
must occur before any implementation is performed. The loop will look like this:
1. Planning
- Restate the requirements as you understand them.
- Develop an implementation plan with specific steps.
- Take your time building the plan, and be thorough. It's ok to consider several
different alternatives if that is appropriate. In the end you need to settle
on one option.
- for smaller details, it's ok to defer decisions if they won't affect
overall architecture or will be easy to change later if necessary.
2. Human Review
- Describe the proposed implementation plan in clear language to the human collaborator.
- Identify key decisions, and motivations for the choices you are proposing.
- Outline the code you expect to generate, or the changes you expect to make in existing code.
- Entertain discussion on options or adjustments to the proposed implementation.
- When requested to make changes to the plan, or add new requirements, iterate on
the planning phase. Verify that any changes are consistent with previously stated requirements.
Re-submit the amended plan for approval.
3. Implementation
- Wait for explicit approval before proceeding.
- Write or modify code according to the approved plan.
- Follow coding standards and patterns as described elsewhere in your instructions.
### Notes for collaboration in a plan, approve, adjust loop
Always wait for explicit human approval at review checkpoints. Maintain clear
communication about implementation decisions. Document any deviations from the
original plan with rationale. When in doubt, pause and ask questions, seek
direction rather than making significant assumptions.
What's the meaning of the GEMINI.md file? I asked gemini, it said it's just like any other file. It doesn't read it unless I specifically ask it to. Tried to find information online, didn't find much.
בתאריך יום ה׳, 7 באוג׳ 2025 ב-5:36 מאת Dino Chiesa < @.***>:
DinoChiesa left a comment (google-gemini/gemini-cli#5499) https://github.com/google-gemini/gemini-cli/issues/5499#issuecomment-3162215851
My solution to this is to be more prescriptive to Gemini, in the Gemini.md file:
The Plan, Approve, Implement loop
When I ask for "a plan", I am referring to a plan, approve, adjust loop, that must occur before any implementation is performed. The loop will look like this:
Planning
- Restate the requirements as you understand them.
- Develop an implementation plan with specific steps.
- Take your time building the plan, and be thorough. It's ok to consider several different alternatives if that is appropriate. In the end you need to settle on one option.
- for smaller details, it's ok to defer decisions if they won't affect overall architecture or will be easy to change later if necessary.
Human Review
- Describe the proposed implementation plan in clear language to the human collaborator.
- Identify key decisions, and motivations for the choices you are proposing.
- Outline the code you expect to generate, or the changes you expect to make in existing code.
- Entertain discussion on options or adjustments to the proposed implementation.
- When requested to make changes to the plan, or add new requirements, iterate on the planning phase. Verify that any changes are consistent with previously stated requirements. Re-submit the amended plan for approval.
Implementation
- Wait for explicit approval before proceeding.
- Write or modify code according to the approved plan.
- Follow coding standards and patterns as described elsewhere in your instructions.
Notes for collaboration in a plan, approve, adjust loop
Always wait for explicit human approval at review checkpoints. Maintain clear communication about implementation decisions. Document any deviations from the original plan with rationale. When in doubt, pause and ask questions, seek direction rather than making significant assumptions.
— Reply to this email directly, view it on GitHub https://github.com/google-gemini/gemini-cli/issues/5499#issuecomment-3162215851, or unsubscribe https://github.com/notifications/unsubscribe-auth/BOMPZ5L2V3EC2IFZF4HIVZL3MK3SJAVCNFSM6AAAAACDBVXLP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCNRSGIYTKOBVGE . You are receiving this because you authored the thread.Message ID: @.***>
-- Ezekiel Y. Hirshhorn יחזקאל ישי הירשהורן
GEMINI.md is the memory of gemini-cli. You can interact with it with the /memory commands.
It acts as "the AI's instructional context". You can have one in your $HOME/.gemini/GEMINI.md for "global" instructions as well as in your project.
Documentation about this is here
I have found examples like this to be helpful. There are loads of other examples from gemini and other LLMs that are helpful, imo.
Thank you all for the robust discussion, I'm closing this issue as working as intended. I have however also added this to our model feedback so we are able to look for ways to improve this experience in the future.