You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gemini --yolo mode allows writes to main worktree during consult general #370
Running consult -m gemini general "..." from the main worktree gives Gemini full write access via --yolo mode. If the model interprets an audit/review task as requiring fixes, it will silently edit files in the main worktree.
What happened
Ran consult -m gemini general "audit all prompts..." from main
Gemini auto-approved its own file writes (9 files modified on main)
Edits were only discovered when af spawn refused due to uncommitted changes
Expected behavior
General mode consultations should be read-only — models should be able to read files but not modify them. PR reviews already solve this by running in a temporary worktree; general mode has no such protection.
Possible fixes
Remove --yolo for general mode — require explicit approval for writes
Run general mode in a temp worktree — same pattern as PR reviews
Use --yolo with write-protection — if Gemini supports read-only tool approval
At minimum: strip --yolo when the prompt is clearly read-only (audit, review, etc.)
Impact
Silent modification of the main worktree. Could corrupt working state, create merge conflicts, or produce confusing uncommitted changes that block builder spawning.
Activity
waleedkadous commentedon Feb 17, 2026
On it! Working on a fix now.
[Bugfix #370] Fix: Remove --yolo from Gemini general mode consultations
Merge pull request #371 from cluesmith/builder/bugfix-370-gemini-yolo…
[Bugfix #407] Fix: findWorkspaceRoot() respects worktree boundaries