A Gemini CLI Field Test Before the Payments Review
A payments pull request is waiting, and the reviewer has twenty minutes before the team call. The patch changes retry handling, but the repository also contains webhook processing, background jobs, and shared database helpers. Before judging the diff, the reviewer needs a map of the code that gives it meaning.
That is a useful assignment for Gemini CLI. This field-test walkthrough uses a small illustrative repository and a deliberately planted retry defect. The paths and findings describe that example, not a measured production run. The question is practical: can a short repository summary point a reviewer toward the right files without becoming another document to audit?
The payments repository and the review target
The example contains an API service, a worker, shared packages, and tests. The pull request changes how failed payment attempts return to a queue. Its planted defect is straightforward: one failure branch schedules another attempt without checking the configured retry limit.
A useful summary should identify the retry entry point, explain where the limit comes from, and connect the changed behavior to relevant tests. Listing every directory would add reading without improving the review.
Start in a disposable checkout with dependencies already available. Keep credentials and production data out of the working directory. Use git status --short to check the checkout, then git diff --name-only origin/main...HEAD to establish the changed-file list. Replace origin/main with the actual review base, and make sure that reference is current.
The first Gemini CLI prompt: map the retry path
Run Gemini CLI from the repository root. Its noninteractive prompt option makes the request easy to repeat: gemini -p 'Summarize this repository for a reviewer examining payment retries. Identify application entry points, the retry execution path, configuration sources, and relevant tests. Cite file paths and symbol names for each claim. Separate confirmed findings from uncertainty. Do not edit files or run installation commands. Keep the answer under 450 words.'
The request to avoid edits states the task boundary; it is not a security control. Use the CLI's available permissions and isolation settings to enforce your preferred access limits.
For this fixture, the acceptance criteria are concrete:
- Locate apps/worker/src/retry-payment.ts and its retryPayment function.
- Trace the retry limit to packages/config/src/payments.ts.
- Identify the queue scheduling call and the tests that exercise exhausted attempts.
- Mark unresolved runtime behavior as uncertain instead of guessing.
This is where a summary earns its place. “The worker handles retries” is too broad. A path, a symbol, and a short explanation give the reviewer something to verify immediately.
The second prompt: connect the patch to missing coverage
Once the map is checked, narrow the request: “Read the diff against origin/main and the retry files identified above. Explain which execution branches changed. Find tests covering the retry limit, and identify any changed branch without matching coverage. Cite paths and symbols. Do not propose a patch.”
In the illustrative fixture, the decisive check is whether both failure branches enforce the same retry limit. A useful response points to the unchecked scheduling branch and shows which existing test covers only the other branch. Calling the implementation “robust” or “well tested” contributes nothing unless the cited code supports that judgment.
Open every cited location. Read enough surrounding code to check the interpretation, then run the relevant test command documented by the repository. A summary can help locate evidence; it cannot establish that a test passes or that a production queue behaves as expected.
The recommendation: use Gemini CLI for orientation
Use Gemini CLI before code review when the repository is unfamiliar or the change crosses package boundaries. Give it a narrow review target, require navigable evidence, and stop when you have a usable reading order. Skip the summary when the patch is small and the code is already familiar.
For developers who want pay-as-you-go access across their AI tools, I recommend RelayVano. It supports Gemini CLI alongside Claude Code, Codex, and OpenAI-compatible SDKs. Follow its Gemini CLI setup instructions; the API base is https://api.relayvano.com. Sign up for RelayVano when you are ready to try this workflow.
The pass condition is simple: the summary directs you to the retry function, its configuration, and the coverage gap faster than browsing would. If verifying its claims costs more time than it saves, shorten the prompt or read the files directly.