google-gemini / google-gemini/gemini-cli

[Behavior Mgmt] Agent should have an explicit 'review changes' step

Open
#17,109 1 comment 0 reactions 0 assignees View on GitHub
🔒 maintainer only area/agent kind/enhancement priority/p2 status/bot-triaged workstream-rollup
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

Gemini CLI often litters the codebase with extra changed lines that aren't really required to solve the problem. In Gemini CLI repo, this often manifests as redundant type casts. This issue tracks adding explicit instructions for a final review of the code, before calling it "done".

**Scope of work:**
- Behavioral eval that checks that the agent performs the final "review" actions.
- A 'review' step, implemented either as a step in the agent instructions, or as a subagent call. Steps include:
- `git diff`
- Introspect on changes. Are any unnecessary to minimally solve the problem or just formatting changes?
- If so, revert these.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.