Google Gemini CLI — Interactive CLI Agent System Prompt

Agent Prompt ✦ Curated & attributed Gemini Advanced

System prompt for Google's terminal-based coding agent. It defines Core Mandates (mimic project conventions, never assume libraries, minimal comments), two primary workflows (Software Engineering tasks and New Applications), CLI tone rules (under 3 lines, no preambles), security rules for shell commands, git commit procedures, and a battery of tool names (read_file, write_file, replace, run_shell_command, glob, search_file_content, save_memory).

What makes this prompt notable

  • Caps output at 'fewer than 3 lines of text' per response and bans preambles/postambles
  • Defines a 5-step engineering workflow ending with mandatory build/lint/type-check verification
  • Hard-codes a default tech-stack table (React+Bootstrap, Node/Express, FastAPI, Three.js) for new-app scaffolding
  • Includes 8 inline <example> dialogues showing exact tone (e.g. answering '1 + 2' with just '3')
  • Requires explaining critical shell commands before execution and reminding about sandboxing

Discussion (0)

Sign in to join the discussion.
Related

More in IDE & Coding Assistants

VSCode Agent
agent prompt

VSCode Agent (GitHub Copilot) — GPT-5 Agent Prompt

The most elaborate Copilot VS Code agent prompt, for GPT-5. It combines the Copilot identity and refusals with a detailed communication-style guide, m…

role definition tool-use protocol structured diff format specification
239 5.6k 3.7k words
KI
Kiro
system prompt

Kiro — Intent Mode Classifier

A lightweight intent-classification prompt that routes a user message into chat/do/spec modes and returns a JSON object of confidence scores summing t…

classification rubric constraint setting few-shot
226 5.3k 600 words
CU
Cursor
agent prompt

Cursor — Agent Prompt v1.0 (Claude Sonnet 4)

An earlier, leaner Cursor agent prompt (Claude Sonnet 4) focused on tool-calling rules, aggressive parallel tool execution, search-and-reading bias to…

role definition tool-use protocol parallel tool-call maximization
225 7.3k 1.5k words