Re: b4 review available in master

Konstantin Ryabitsev
2026-02-28T20:06:35Z

On Sat, Feb 28, 2026 at 01:31:04PM -0500, Michael S. Tsirkin wrote:
> Amazing, thanks for working on this.
>
>
> But I could not get it to work with gemini:
> I have:
>
> [b4]
> review-agent-command = gemini --sandbox --allowed-tools 'Bash(git:*) Read Glob Grep Write(.git/b4-review/**) Edit(.git/b4-review/**)'
> review-agent-prompt-path = .git/agent-reviewer.md

Thanks for testing it out. My most salient recent experience with gemini-cli
is staring at:

Trying to reach gemini-flash-3-preview (Attempt 6/10)

and

Agent reached max turns limit (10)

(Sorry, Google people -- just stating facts.)

However, I know the following things:

1. Gemini really doesn't like reading from the .git dir of the repository.
2. It also doesn't like writing to that dir.
3. In fact, it only likes writing to the toplevel of the git dir you're in,
and into ~/.gemini/tmp/dirname/

Gemini itself just recommended me to run with "gemini --approval-mode=yolo"
which seems like a pretty terrible ideas. However, I'm now looking at more
RESOURCE_EXHAUSTED stack traces from gemini, so cannot test this further. If
someone with a more reliable access to gemini-cli can recommend what is a
better approach, I'm happy to implement it, otherwise I'll try again later
when Gemini is less cranky.

-K