analyze

analyze is a command for Claude Code from shalomeir/gemini-plugin-cc. It costs 48 tokens per session (349 once invoked), scanned A, original, MIT.

A command that uses the Gemini CLI to examine a whole codebase or a selected part of it.

In plain words
What is it for?
Use it to review architecture, spot connections between modules, assess code quality, or get an overall view of a large codebase.
Why use it?
It helps you understand a large project without manually tracing every file, module, and dependency.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Gemini CLI.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the gemini plugin — 2 skills, 10 commands, 1 agent, 2 hooks shipped together

Good fit Use it to review architecture, spot connections between modules, assess code quality, or get an overall view of a large codebase.

Compare 6 commands from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add shalomeir/gemini-plugin-cc
Claude Code
/plugin install gemini

Made for: Claude Code.

Or install gemini, the plugin that ships this one along with the rest of its 2 skills, 10 commands, 1 agent, 2 hooks.

Wrote 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.

agentmods badge for analyze

README.md
[![agentmods](https://agentmods.dev/badge/commands/shalomeir/gemini-plugin-cc/analyze/github.svg)](https://agentmods.dev/commands/shalomeir/gemini-plugin-cc/analyze)
Your own site
<a href="https://agentmods.dev/commands/shalomeir/gemini-plugin-cc/analyze"><img src="https://agentmods.dev/badge/commands/shalomeir/gemini-plugin-cc/analyze/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze

Your own site · 80×15
<a href="https://agentmods.dev/commands/shalomeir/gemini-plugin-cc/analyze"><img src="https://agentmods.dev/badge/commands/shalomeir/gemini-plugin-cc/analyze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 349 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00349
Opus 5.5 $0.00019 $0.00140
Sonnet 5.5 $0.00010 $0.00070
Haiku 4.5 $0.00005 $0.00035

Measured 1mo ago against content hash 01c4ab2e3e4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyze scanned grade A with 0 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/gemini/commands/analyze.md · 41 lines

What it actually says

Analyze the codebase or a subset of it using Gemini's large context window (1M+ tokens).

Raw slash-command arguments: $ARGUMENTS

Use this when you want Gemini to:

  • Analyze overall architecture and patterns
  • Find dependencies and coupling between modules
  • Review code quality across the entire project
  • Understand a large codebase holistically

Execution mode rules:

  • If the raw arguments include --background, run in background without asking.
  • Otherwise, run in the foreground by default.

Foreground flow:

  • Run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" analyze "$ARGUMENTS"
  • Return the command stdout verbatim, exactly as-is.
  • Do not paraphrase, summarize, or add commentary.

Background flow:

  • Launch with Bash in the background:
Bash({
  command: `node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" analyze --background "$ARGUMENTS"`,
  description: "Gemini codebase analysis",
  run_in_background: true
})
  • After launching, tell the user: "Gemini analysis started in the background. Check /gemini:status for progress."
Changes

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.

  1. 1mo ago First seen · 41 lines · 48 tokens per session scan A 01c4ab2e3e4a

Subscribe to this mod's changes

analyze is a command published in the GitHub repository shalomeir/gemini-plugin-cc (4 stars, last pushed 6mo ago), licensed MIT. It adds 48 tokens to every session and 349 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.