VSCode Agent (GitHub Copilot) — Claude Sonnet 4 Agent Prompt

Agent Prompt ✦ Curated & attributed Claude Sonnet 4 Intermediate

GitHub Copilot's VS Code agent-mode system prompt as configured for Claude Sonnet 4, captured with a live conversation context block. It establishes the Copilot identity, content-policy refusals, a large tool-use protocol (read_file, semantic_search, grep_search, run_in_terminal, insert_edit_into_file, edit_notebook_file), and agentic 'keep going until resolved' reminder instructions, plus an embedded environment/workspace context showing a Windows/PowerShell session.

What makes this prompt notable

  • Forces fixed identity ('respond with GitHub Copilot') and a single canned refusal string for harmful content
  • Separates concerns into discrete XML sections: <instructions>, <toolUseInstructions>, <notebookInstructions>, <outputFormatting>
  • Hard rule: NEVER print codeblocks for file edits or terminal commands — must call the edit/terminal tools instead
  • Embeds a todo-list mandate ('NEVER skip this step') and a 3-5 tool-call progress-checkpoint cadence in reminderInstructions

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