gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

gemini cli overlooks GEMINI.md rule

Open ZackHirshhorn opened this issue 1 year ago • 1 comments

What happened?

Gemini cli tried to execute an npm command despite having a rule against it in GEMINI.md.

Here is the content of my GEMINI.md in the root directory:

## Gemini Added Memories
- never run npm

Here is a screenshot of gemini cli window:

Image

What did you expect to happen?

I expected Gemini cli not to ask for permission to execute npm, since it is forbidden by it's GEMINI.md file. It is aware of the file, since it made it it'self.

Client information

  • CLI Version: 0.1.15
  • Git Commit: c45c14ee (local modifications)
  • Operating System: linux v22.16.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 160.0 MB

Login information

API key

Anything else we need to know?

No response

ZackHirshhorn avatar Jul 31 '25 11:07 ZackHirshhorn

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 03 '25 22:12 gemini-cli[bot]