VSCode Agent (GitHub Copilot) — Gemini 2.5 Pro Agent Prompt

Agent Prompt ✦ Curated & attributed Gemini 2.5 Pro Intermediate

The Copilot VS Code agent prompt tuned for Gemini 2.5 Pro. Same Copilot identity and tool-use scaffolding as the other variants, but the edit instructions specify replace_string_in_file as the primary edit tool with insert_edit_into_file as a fallback, and a reminder block hard-requires 3-5 lines of unchanged context around replacements.

What makes this prompt notable

  • Edit policy ranks tools: 'You must always try making file edits using replace_string_in_file tool. NEVER use insert_edit_into_file unless told to'
  • Requires 3-5 lines of unchanged surrounding context per replacement to disambiguate the edit site
  • Caps error-fixing loops at 3 attempts per file before stopping to ask the user
  • Includes a worked Person-class example showing the '// ...existing code...' elision convention

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