vscode oss-third-party-notices.instructions.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/microsoft/vscode/oss-third-party-notices
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode

Made for: GitHub Copilot.

Per session 5,001 This file is loaded in full into every session.
When invoked 5,001 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.05001 $0.05001
Opus 5 $0.02500 $0.02500
Sonnet 5 $0.01000 $0.01000
Haiku 4.5 $0.00500 $0.00500

Measured yesterday against content hash 4c033d9febc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 363 lines

How it starts

The opening of the file, as written. The whole thing — 363 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 from the same branch, then from 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, it downloads the latest notice_output artifact for the current branch, then main, and copies the cached ThirdPartyNotices.generated.txt into place.
  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 · 363 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. yesterday 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 (190,061 stars, last pushed yesterday), licensed MIT. It adds 5,001 tokens to every session, about $0.0250 per session on Opus 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.