policy-and-managed-settings

policy-and-managed-settings is a skill for Claude Code, Codex from microsoft/vscode. It costs 112 tokens per session (749 once invoked), scanned A, original, MIT.

A guide for adding and reviewing administrator-controlled settings for AI tools, agents, permissions, sandboxes, models, and related controls.

In plain words
What is it for?
Use it when changing enterprise policies, managed settings, permission rules, tool or MCP controls, sandbox behavior, model settings, telemetry, or feature switches.
Why use it?
It helps place each control where its behavior is actually enforced, such as the runtime, editor, or an extension, and avoids conflicting duplicate checks.

Skill for Claude CodeCodex

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 skills/microsoft/vscode/policy-and-managed-settings
Any agent
npx skills add microsoft/vscode --skill policy-and-managed-settings
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode

Made for: Claude Code, Codex.

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 policy-and-managed-settings

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/vscode/policy-and-managed-settings.svg)](https://agentmods.dev/skills/microsoft/vscode/policy-and-managed-settings)
Your own site
<a href="https://agentmods.dev/skills/microsoft/vscode/policy-and-managed-settings"><img src="https://agentmods.dev/badge/skills/microsoft/vscode/policy-and-managed-settings.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 749 The whole file, excluding the scripts and references it only reads on demand.
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.00112 $0.00749
Opus 5 $0.00056 $0.00375
Sonnet 5 $0.00022 $0.00150
Haiku 4.5 $0.00011 $0.00075

Measured 4d ago against content hash 38a1fdae1eb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

policy-and-managed-settings 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 4d 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/skills/policy-and-managed-settings/SKILL.md · 69 lines

How it starts

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

Adding an Enterprise Policy

Choose the policy destination by where the governed behavior is implemented, not by which team requested it. Most controls for Copilot agent behavior belong in the SDK/runtime rather than VS Code.

flowchart TD
	A[Enterprise control] --> P{Existing permission policy<br/>introduced before VS Code 1.133.0?}
	P -->|Yes| L[Pre-1.133 compatibility migration]
	P -->|No| B{Where is the governed behavior implemented?}

	B -->|Copilot runtime, tools, MCP,<br/>sandbox, or agent loop| R[SDK/runtime managed setting]
	B -->|VS Code editor or workbench| V[VS Code configuration policy]
	B -->|Extension-provided setting| E[Extension policy]
	B -->|Independent runtime and editor behavior| M[Split runtime/editor control]

Follow the matching guide:

General rules:

  • Runtime enforcement is authoritative for behavior executed inside the runtime.
  • Do not duplicate a runtime parser, matcher, or security decision in VS Code.
  • A VS Code policy is appropriate only for editor/workbench-owned behavior.
  • New Copilot enterprise controls should target the shared managed-settings/SDK model.
  • The VS Code settings-to-managed-settings bridge is a compatibility path for legacy settings only. Do not add a new VS Code setting in order to bridge it; define new runtime-owned controls directly in the managed-settings/SDK contract. A temporary, false-by-default compatibility gate for the bridge itself is allowed; it is not a runtime control and must not become a template for new mapped settings.
  • Run npm run export-policy-data for every VS Code or extension policy change. Never edit build/lib/policies/policyData.jsonc manually.

Deprecated and Historical Channels

Read the full file on GitHub · 69 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 69 lines · 112 tokens per session scan A 38a1fdae1eb4

Subscribe to this mod's changes

policy-and-managed-settings is a skill published in the GitHub repository microsoft/vscode (190,808 stars, last pushed today), licensed MIT. It adds 112 tokens to every session and 749 once invoked, about $0.0006 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.