vscode: Instructions file for GitHub Copilot

.github/instructions/oss-third-party-notices.instructions.md

vscode oss-third-party-notices.instructions.md is an instructions file for GitHub Copilot from microsoft/vscode. It costs 5,262 tokens per session, scanned A, original, MIT.

Build instructions for generating VS Code's open-source third-party notices. These notices list the external software included in the product and the licences that apply to it.

In plain words
What is it for?
Maintaining the notice-generation and application steps in continuous integration, checking the generated notice artifact, and handling fallback behaviour when licence information cannot be resolved automatically.
Why use it?
The pipeline combines automated licence data, a scanner for missed sources, and approved manual overrides so release builds can produce complete notices without manual checking of every package.

Instructions file for GitHub Copilot ✓ vendor

Written for GitHub Copilot: a Copilot instructions file.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .oss-build-out/scan-licenses.js \.

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 · 193,657 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/instructions/oss-third-party-notices.instructions.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 vscode oss-third-party-notices.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/microsoft/vscode/oss-third-party-notices/github.svg)](https://agentmods.dev/instructions/microsoft/vscode/oss-third-party-notices)
Your own site
<a href="https://agentmods.dev/instructions/microsoft/vscode/oss-third-party-notices"><img src="https://agentmods.dev/badge/instructions/microsoft/vscode/oss-third-party-notices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vscode oss-third-party-notices.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/microsoft/vscode/oss-third-party-notices"><img src="https://agentmods.dev/badge/instructions/microsoft/vscode/oss-third-party-notices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,262 This file is loaded in full into every session.
When invoked 5,262 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.05262 $0.05262
Opus 5.5 $0.02105 $0.02105
Sonnet 5.5 $0.01052 $0.01052
Haiku 4.5 $0.00526 $0.00526

Measured 21d ago against content hash e2d3f4c5b6d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vscode oss-third-party-notices.instructions.md scanned grade A with 0 findings 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 21d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/oss-third-party-notices.instructions.md · 373 lines

How it starts

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

VS Code OSS Third-Party-Notices pipeline

This directory contains the thin VS Code-specific layer around Component Governance (CG) for producing OSS third-party notices. It replaces the legacy custom OSS tool with CG plus a gap-filling scanner, so release owners do not need to babysit ThirdPartyNotices.txt every release. The generated output should be at least as good as the legacy tool: CG provides the base NOTICE, the local scanner fills known CG gaps, and human-authored overrides cover the small set that automation cannot safely resolve.

The pipeline has two halves: generation (this oss/ directory — CG + scanner + merge, producing the notice_output artifact) and application (the cutover that swaps the merged notice into the shipped product — see "Applying the NOTICE (cutover)" below).

Architecture

The product-quality pipeline in build/azure-pipelines/product-quality-checks.yml is the main CI entry point.

  1. notice@0 generates the CG base NOTICE at ThirdPartyNotices.generated.txt.
  2. scan-licenses.ts scans local sources CG misses and writes ThirdPartyNotices.extensions.txt, plus sibling index files used by the merge step.
  3. merge-notices.ts merges the CG output and scanner output, then applies cglicenses.json overrides through apply-overrides.ts.
  4. check-pr-dependencies.ts is used by pr-oss-check.yml as a PR-time gate. It blocks dependency additions that have no license source.
  5. If CG is down or notice@0 emits an empty/non-trivial failure output, the pipeline substitutes the last good ThirdPartyNotices.generated.txt artifact. On main and release/*, fallback checks the same branch, then main; other branches use only main. Only the CG portion is cached; local scanning and overrides still run fresh against the current commit.

Final merge output is uploaded as ThirdPartyNotices.new.txt in the notice_output artifact.

Pipeline flow in CI

In product-quality-checks.yml:

  1. Component Detection runs with ComponentGovernanceComponentDetection@0.
  2. notice@0 writes $(Build.SourcesDirectory)/ThirdPartyNotices.generated.txt and is continueOnError: true.
  3. The cache fallback checks whether the CG file exists and is larger than 1 KB. If not, DownloadBuildArtifacts@1 uses latestFromBranch with the cg-notice-baseline build tag and the branch order above. Scanner-only CI builds remain untagged and cannot hide a usable baseline. The apply step still validates the downloaded CG file and preserves its provenance.
  4. TypeScript compiles the OSS scripts into .oss-build-out:
    • apply-overrides.ts
    • scan-licenses.ts
    • parse-notices.ts
    • merge-notices.ts
  5. scan-licenses.js runs with --repo, --cg, and --output.
  6. merge-notices.js runs with --cg, --extensions, --cglicenses, and --output.
  7. The generated CG file, scanner file, final merged file, and optional cache metadata are uploaded under notice_output.

Read the full file on GitHub · 373 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. 21d ago Changed · +10 lines · +261 tokens per session e2d3f4c5b6d7
  2. 1mo ago First seen · 363 lines · 5,001 tokens per session scan A 4c033d9febc2

Subscribe to this mod's changes

vscode oss-third-party-notices.instructions.md is an instructions file published in the GitHub repository microsoft/vscode (193,657 stars, last pushed today), licensed MIT. It adds 5,262 tokens to every session, about $0.0210 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.