microsoft avatar

Sessions

Covers the agents-first architecture in VS Code, including the layered folder structure, session management, and mobile UI patterns. You'll want this when implementing features or debugging issues in the Agents window. The core model is observable-based state flowing from pluggable providers through management services to UI components. Watch out for the layer rules: contrib code can't import from contrib/providers, and you must use the sessions-specific menu IDs instead of platform ones. Before changing anything, read the mandatory coding guidelines and the relevant spec doc, then validate with the layers check. The architecture is rigid by design, enforced by ESLint, so fighting the grain will cost you time.

skills.sh installs
3.1K
GitHub stars
195.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add microsoft/vscode --skill sessions --agent claude-code

Installs into .claude/skills of the current project.

Files

Agents Window development

Use this skill for implementation, review, or design work under src/vs/sessions/**.

1. Apply the core principles

  • Preserve the layer direction: vs/sessions may import vs/workbench and lower layers; vs/workbench must never import vs/sessions.
  • Keep shared Sessions code provider-neutral. Non-provider contributions must not import provider implementations.
  • Model mutable session and chat state with observables. Use events for notifications, not as a parallel state model or for control flow.
  • Register Sessions menu IDs in browser/menus.ts and consume Menus.*.
  • Import contributions from the appropriate sessions.*.main.ts entry point.
  • Prefer Sessions-owned adaptations over shared workbench changes unless the capability is genuinely shared.
  • Put stable architecture in the owning specification and concrete behavior in tests. Do not preserve implementation chronology as development guidance.

2. Identify the owning area

Start with src/vs/sessions/README.md, then read only the specifications relevant to the change:

Sponsors

Details

Repository
github.com/microsoft/vscode
Category
Automation & Workflows
First seen
Apr 16, 2026

More from microsoft/vscode

All 15
1agents365-ai avatarasta-skillagents365-ai/365-skillsDomain expertise for Ai2 Asta MCP tools (Semantic Scholar corpus). Intent-to-tool routing, safe defaults, workflow patterns, and pitfall warnings for academic p3.1Kskills.sh installs
2himself65 avataryc-readerhimself65/finance-skillsLook up Y Combinator companies, batches, and startup ecosystem data using the yc-oss API (read-only). Use this skill whenever the user wants to research YC-back3.1Kskills.sh installs
3onmax avatarvueuseonmax/nuxt-skillsUse when working with VueUse composables - track mouse position with useMouse, manage localStorage with useStorage, detect network status with useNetwork, debou3.1Kskills.sh installs
4shirenchuang avatarweb-content-fetchershirenchuang/web-content-fetcherExtract article content from any URL as clean Markdown. Uses Scrapling script as primary method (with auto fast→stealth fallback), Jina Reader as alternative fo3Kskills.sh installs
5anthropics avatarcreate-an-assetanthropics/knowledge-work-pluginsGenerate tailored sales assets (landing pages, decks, one-pagers, workflow demos) from your deal context. Describe your prospect, audience, and goal — get a pol3Kskills.sh installs
6freshtechbro avatarspline-interactivefreshtechbro/claudedesignskillsBrowser-based 3D design tool with visual editor, animation, and web export. Use this skill when creating 3D scenes without code, designing interactive web exper3Kskills.sh installs