customizations-in-the-agent-host

Diagnose and fix customization enablement bugs in the VS Code agent host.

Updated Apr 28, 2026
Ready to run
npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill customizations-in-the-agent-host-cokistudios
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: customizations-in-the-agent-host
Source: https://github.com/CokiStudios/cokistudios.github.io/tree/main/vscode-src/.github/skills/customizations-in-the-agent-host
Command: npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill customizations-in-the-agent-host-cokistudios

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Customization enablement (plugins, MCP servers, agents, skills, instructions) in the agent host involves scoped decisions, overlay storage, and per-provider enforcement, and bugs here silently erase user decisions or leak disabled servers to the model. ## Core Features & Use Cases - Enablement Architecture Guide: Explains the scoped decision list (Session, Workspace, Global), the client-base/host-overlay storage model, and identity rules for MCP server storage keys. - Provider Enforcement Reference: Documents how Copilot, Claude, and Codex each enforce enablement at launch and mid-session, including known traps like the 800 ms post-startup reconcile window. - Debugging Playbook: Ranks diagnostic signals (published objects, Agent Host.log tool_search overrides, UI, model claims) and gives a cross-session reproduction recipe. - Use Case: A disabled MCP server still reaches the model; use this Skill to trace which publication path skipped resolveCustomizationEnablement() and fix it at the SDK boundary. ## Quick Start Ask the agent to explain why a disabled MCP server is still exposing tools in a new agent-host session and where to fix it.

Frequently Asked Questions about customizations-in-the-agent-host

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why is a disabled MCP server still reaching the model?▼

A disabled MCP server reaches the model when a publication or SDK-handoff path skips resolveCustomizationEnablement() and reads a stored snapshot instead. Check the tool_search override lines in Agent Host.log to confirm which servers were actually exposed.

How does customization enablement work in the agent host?▼

Enablement is an ordered list of scoped decisions (Session, Workspace, Global), not a boolean. isCustomizationEnabled() picks the first entry, absent entries inherit from the next scope out, and an absent list means enabled.

Why did a user's enablement decision get silently erased?▼

Erasure happens when the overlay model is violated: host decisions must layer on top of the client's base value, and 'store only what differs' must compare against that base, never a hardcoded true. _setClientGlobal must never write to _persistent.

Can Codex disable MCP servers mid-session?▼

No, Codex cannot change MCP servers mid-session; servers are supplied only at thread/start or resume, which is a documented limitation. Copilot supports rpc.mcp.enable/disable and Claude supports live reconcile.

Why does a type-only import of CustomizationType crash at runtime?▼

CustomizationType and CustomizationEnablementKind are const enums, so a type-only import compiles and lints cleanly but crashes at runtime. Import them as values, and run npm run typecheck-client since the unit-test runner ignores type errors.