Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add XinyuQu/llm-review/plugin install llm-reviewWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/xinyuqu/llm-review/gemini-setup)<a href="https://agentmods.dev/commands/xinyuqu/llm-review/gemini-setup"><img src="https://agentmods.dev/badge/commands/xinyuqu/llm-review/gemini-setup.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.00822 |
| Opus 5 | $0.00017 | $0.00411 |
| Sonnet 5 | $0.00007 | $0.00164 |
| Haiku 4.5 | $0.00003 | $0.00082 |
Grade C, and why
gemini-setup scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Advanced — the **user** runs this in their own terminal (never you): `printf %s 'THE_KEY' | node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" config-set --provider gemini --transport api --api-key-stdin` (key via std Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
**Security — hard rule:** never run any command containing the literal key yourself; a crafted key can inject shell commands. If the user pasted a key into the chat, do NOT put it in a command — tell them it is now expos Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
allowed-tools: Bash(node:*), Bash(npm:*), Bash(curl:*), Bash(bash:*), Bash(sh:*), Bash(brew:*), AskUserQuestion Copies of this mod
1 near-identical copy found in the catalogue:
- kimi-setup — 97% identical, 14 lines differ
What it actually says
Guided setup for the gemini provider. Follow this exactly; do not improvise extra steps.
Step 1 — probe status:
node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" setup --provider gemini --json
Parse the JSON: mode, cli (command, installed, installCmd, login), api (hasKey, primaryEnv, keyHelp), ready, resolvedTransport, reviewCommand.
Step 2 — if already ready: tell the user it's set up via resolvedTransport, then AskUserQuestion once: Keep current setup vs Reconfigure. If keep → show status and stop.
Step 3 — choose a path by mode:
api-only→ API KEY FLOW.cli-only→ SUBSCRIPTION FLOW.both→AskUserQuestionexactly once: "How do you want to connect to Gemini?" with options, first one suffixed(Recommended):Subscription via the {cli.command} CLI (Recommended)— reuses your existing login, usually cheaper for heavy useAPI key— pay-per-token HTTP API
SUBSCRIPTION FLOW:
- If
cli.installedis false andcli.installCmdis set:AskUserQuestiononce —Install {cli.command} now (Recommended)vsSkip for now. If install, runcli.installCmdvia Bash, then re-run the Step 1 probe. If skip, present status and stop. - Persist the choice:
node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" config-set --provider gemini --transport cli - Re-run the Step 1 probe. If
cli.loginindicates a login is still required (it is not the "already authenticated" note), tell the user to authenticate themselves in this session by typing:!{cli.login}— this is an interactive browser/login you cannot perform for them. - Present the final probe output.
API KEY FLOW:
-
Tell the user where to get a key:
api.keyHelp. -
Offer how to provide it, most secure first:
- Recommended: run
/plugin, open llm-review config, paste the key into the secure prompt (stored in the OS keychain). - Or export
api.primaryEnvin their shell for this session. - Advanced — the user runs this in their own terminal (never you):
printf %s 'THE_KEY' | node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" config-set --provider gemini --transport api --api-key-stdin(key via stdin, never in argv; writes~/.config/llm-review/config.json, chmod 600).
Security — hard rule: never run any command containing the literal key yourself; a crafted key can inject shell commands. If the user pasted a key into the chat, do NOT put it in a command — tell them it is now exposed, to add it via the keychain (
/plugin) or their own shell env, and to rotate it. - Recommended: run
-
Re-run the Step 1 probe and present it.
Step 4 — finish: state whether the provider is now ready and show the exact review command (reviewCommand, e.g. /llm-review:gemini). Use AskUserQuestion at most twice total in this whole flow.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 42 lines · 34 tokens per session scan C d87b9b0e1ccb
gemini-setup is a command published in the GitHub repository XinyuQu/llm-review (6 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 822 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 3 findings (asks for root, unrestricted tool access, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
sdd-init
Initialize SDD context — detects project stack and bootstraps persistence backend.
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
init
Install the formatters this repository needs, with every command visible before it runs.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
argos
A command for checking whether an implementation matches its design deliverables. Its Korean description compares the work to the design as part of a completion inspection.