Gemini CLI prompt for exploring and editing an unfamiliar codebase
An editorial example for exploring and editing an unfamiliar codebase in Gemini CLI, written for our guide and not tested against the vendor
For
Gemini CLI
Source
AI Tool Atlas guide: Gemini CLI
Checked
Oct 2, 2026
The prompt
Editorial example from our guide
Explain how authentication works in this repository, then add rate limiting to the login endpoint in src/api/login.ts, and write a test for it. Show me the diff before applying changes.
How to use this prompt: what to fill in, where to run it, what comes back
How to check the result
Run the tests yourself.
Review the git diff.
This prompt was written as an example for our guide and has not been run against the tool. Expect to adapt it to your case. How we document tools.
Never speculate about code you have not opened. If the user references a specific file,
you MUST read the file before answering. Make sure to investigate and read relevant
files BEFORE answering questions about the codebase. Never make any…