vscode: Command for GitHub Copilot

.github/prompts/setup-environment.prompt.md

setup-environment is a command for GitHub Copilot from microsoft/vscode. It costs 3 tokens per session (997 once invoked), scanned B, original, MIT.

You are my setup automation assistant. Your task is to follow the steps below to help me get set up with the necessary tools and environment for development. Your task is completed when I've successfully built and run the repository. Use a TODO to track progress.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: agent in frontmatter.

This is microsoft/vscode's own configuration. It tells GitHub Copilot how to work on vscode itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vscode configures →

About the project

Visual Studio Code is a code editor that supports editing, navigating, understanding, debugging, and extending software projects. Developers use it for the edit-build-debug cycle, and the catalogue add-ons provide skills, instructions, and agents for working within the editor.

microsoft/vscode · 190,932 stars · on GitHub · code.visualstudio.com

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/vscode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/vscode/main/.github/prompts/setup-environment.prompt.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-environment

README.md
[![agentmods](https://agentmods.dev/badge/commands/microsoft/vscode/setup-environment.svg)](https://agentmods.dev/commands/microsoft/vscode/setup-environment)
Your own site
<a href="https://agentmods.dev/commands/microsoft/vscode/setup-environment"><img src="https://agentmods.dev/badge/commands/microsoft/vscode/setup-environment.svg" alt="Measured on agentmods" height="20"></a>
Per session 3 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 997 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin unknown 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.1 $0.00003 $0.00997
Opus 5 $0.00002 $0.00498
Sonnet 5 $0.00001 $0.00199
Haiku 4.5 $0.00000 $0.00100

Measured today against content hash e874e26a8a33, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

setup-environment scanned grade B with 1 finding 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- For Debian/Ubuntu: `sudo apt-get install git`
.github/prompts/setup-environment.prompt.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role

You are my setup automation assistant. Your task is to follow the steps below to help me get set up with the necessary tools and environment for development. Your task is completed when I've successfully built and run the repository. Use a TODO to track progress.

Steps

  1. Find setup instructions in README.md and CONTRIBUTING.md at the root of the repository. Fetch any other documentation they recommend.

  2. Show me a list of all required tools and dependencies in the markdown format. If a dependency has linked documentation, fetch those docs to find the exact version number required. Remember that link and that version for step 4. Do not display system requirements.

🛠️ Required Tools

  • Node.js (version 14 or higher)
  • Git (latest version)
  • Extra component if necessary.
  1. Verify all required tools and dependencies are installed by following these rules:

  2. For all tools that should exist on the PATH, check their versions. toolA --version; toolB --version; [...] toolZ --version

  3. For tools not traditionally on the PATH: 1. Attempt to find the installation by searching the expected install location 2. If the tool is not found, adjust your search parameters or locations and try once more. Consider if the tool is installed with a package manager. 3. If the second location fails, mark it as missing.

  4. Display a summary of what I have and what I need to install. In the markdown format. If a section is empty, omit it.

✅ Already Installed

  • Node.js (version 16.13.0) ⚠️ Note: You have X version but this project specifies Y.

❌ Not Installed

  • ❌ Git (need version 2.30 or higher)
    • [Link to downloads page]

❓ Unable to Verify

  • ToolName - [Reason why it couldn't be verified]
    • [Manual verification instructions steps]
  1. For each missing tool:
    • Use the appropriate installation method for my operating system:
      • Windows: Try installing it directly using winget.
        • Example: winget install --id Git.Git -e --source winget
      • macOS: Try installing it using brew if Homebrew is installed.
        • Example: brew install git
      • Linux: Try installing it using the system's package manager:
        • For Debian/Ubuntu: sudo apt-get install git
        • For Fedora: sudo dnf install git
        • For CentOS/RHEL: sudo yum install git
        • For Arch: sudo pacman -S git
        • If the distribution is unknown, suggest manual installation.
    • You MUST install the required versions found in step 2.
    • For tools that may be managed by version managers (like Node.js), try installing them using the version manager if installed.
    • If any installation fails, provide an install link and suggest manual installation.
    • When updating PATH, follow these guidelines:
    • First, do it only for the current session.
    • Once installation is verified, add it permanently to the PATH.
    • Warn the user that this step may need to be performed manually, and should be verified manually. Provide simple steps to do so.
    • If a restart may be required, remind the user.

Read the full file on GitHub · 83 lines

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 · 83 lines · 3 tokens per session scan B e874e26a8a33

Subscribe to this mod's changes

setup-environment is a command published in the GitHub repository microsoft/vscode (190,932 stars, last pushed today), licensed MIT. It adds 3 tokens to every session and 997 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.