back

by sergiotapia·1y ago·view on hn ↗
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!

1 comments
This is where the fine-grained permissions of MCP and ability to disable individual tools win over calling cli tools
you can achieve the same thing with CLI tools (see `--allowedTools`): https://docs.anthropic.com/en/docs/claude-code/cli-reference...