←back to thread

Gemini CLI

(blog.google)
1336 points sync | 2 comments | | HN request time: 0.416s | source
Show context
sergiotapia ◴[] No.44381218[source]
Gemini CLI wanted to run `git log` and I accidentally hit "Yes, you can call git without confirmation" and I just realized the AI may decide to git push or something like that on it's own.

How do I reset permissions so it always asks again for `git` invocations?

Thanks!

replies(1): >>44381605 #
1. nikcub ◴[] No.44381605[source]
This is where the fine-grained permissions of MCP and ability to disable individual tools win over calling cli tools
replies(1): >>44383790 #
2. dkdcio ◴[] No.44383790[source]
you can achieve the same thing with CLI tools (see `--allowedTools`): https://docs.anthropic.com/en/docs/claude-code/cli-reference...