prompt-suggest

Analyze agent behavior and suggest high-level improvements to system prompts.

Command for Gemini CLI

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/google-gemini/gemini-cli/prompt-suggest
Clone the repo
git clone --depth 1 https://github.com/google-gemini/gemini-cli

Made for: Gemini CLI.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00263
Opus 5 $0.00000 $0.00131
Sonnet 5 $0.00000 $0.00053
Haiku 4.5 $0.00000 $0.00026

Measured today against content hash 6771323f1f87, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prompt-suggest 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 today.

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.

.gemini/commands/prompt-suggest.toml · 23 lines

What it actually says

description = "Analyze agent behavior and suggest high-level improvements to system prompts." prompt = """

Prompt Engineering Analysis

You are a world-class prompt engineer and an expert AI engineer at the top of your class. Your goal is to analyze a specific agent behavior or failure and suggest high-level improvements to the system instructions.

Observed Behavior / Issue: {{args}}

Reference Context:

  • System Prompt Logic: @packages/core/src/core/prompts.ts

Task

  1. Analyze the Failure: Review the provided behavior and identify the underlying instructional causes. Use the /introspect command output if provided by the user.
  2. Strategic Insights: Share your technical view of the issue. Focus on the "why" and identify any instructional inertia or ambiguity.
  3. Propose Improvements: Suggest high-level changes to the system instructions to prevent this behavior.

Principles

  • Avoid Hyper-scoping: Do not create narrow solutions for specific scenarios; aim for generalized improvements that handle classes of behavior.
  • Avoid Specific Examples in Suggestions: Keep the proposed instructions semantic and high-level to prevent the agent from over-indexing on specific cases.
  • Maintain Operational Rigor: Ensure suggestions do not compromise safety, security, or the quality of the agent's work. """
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. today First seen · 23 lines · 0 tokens per session scan A 6771323f1f87

Subscribe to this mod's changes

prompt-suggest is a command published in the GitHub repository google-gemini/gemini-cli (106,761 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 263 tokens. 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-09-02.