CppDepend AI
Gemini CLI
Gemini CLI loads the context files named in the context.fileName setting (default: GEMINI.md). Add AGENTS.md to read the CppDepend instructions.
Setup
cppdepend-ai init --agents gemini
cppdepend-ai analyze --run --project MyApp.cdproj
--agents gemini creates .gemini/settings.json with the line that makes Gemini CLI read AGENTS.md. If you already have that file, init does not change it and prints what to add yourself:
{
"context": { "fileName": ["AGENTS.md", "GEMINI.md"] }
}
Check with /memory show that the CppDepend block is part of the loaded context.
Alternative without settings: create a GEMINI.md with a short pointer to the "Code analysis with CppDepend.AI" section of AGENTS.md.
Typical requests
gemini
> Using CppDepend (see AGENTS.md): list new Critical issues in cppdependai/diff.json with file:line, then explain the worst type.
Shell commands need your confirmation unless you trust them. Non-interactive: gemini -p "run cppdepend-ai gate and summarize".
