VSCode Agent — GitHub Copilot Agent Prompt with Tools

Agent Prompt ✦ Curated & attributed Advanced

Full agent system prompt for GitHub Copilot in VS Code, combining an identity/instructions block with an embedded JSON array of ~20 tool definitions and a live <context> block. Governs autonomous multi-tool research, mandates editing via insert_edit_into_file (never printed codeblocks) and validating with get_errors, and includes an update_user_preferences memory loop.

What makes this prompt notable

  • Hard rule: NEVER print a codeblock with file changes or terminal commands — must use insert_edit_into_file and run_in_terminal tools instead
  • Mandates get_errors validation after every edit and forbids advancing while errors relevant to the change remain
  • Hides tool mechanics from the user: 'Never say the name of a tool' — say 'I'll run the command in a terminal' instead
  • Bundles a live <context> block (date, OS=Windows, workspace folders/structure) and bans semantic_search from parallel calls

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