用于理解 Agents 窗口架构,指导功能开发、扩展接入与问题修复。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "sessions" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode/main/.github/skills/sessions/SKILL.md 2. 保存为 ~/.claude/skills/sessions/SKILL.md 3. 装好后重载技能,告诉我可以用了
请根据 Agents window architecture,说明我要新增一个会话侧边栏按钮时,应该修改哪些层、文件夹和入口点,并给出推荐的实现顺序与注意事项。
一份新增功能的架构落点说明,包含相关目录、扩展点、实现步骤与开发规范建议。
我在 Agents 窗口的 chat widget 中遇到菜单事件不触发的问题。请基于该架构说明可能涉及的 contributions、menus、entry points 和排查顺序。
一份结构化的问题排查清单,帮助定位菜单事件失效的可能原因与修复位置。
请把 Agents-first app 的 layering、folder structure 和各模块职责整理成清晰说明,方便新成员快速理解 Sessions 相关开发约定。
一份面向新成员的架构导览,清楚说明分层边界、目录职责和常见开发入口。
MANDATORY: Before writing or modifying any code in src/vs/sessions/, you must read these documents:
.github/instructions/coding-guidelines.instructions.md — Naming conventions, code style, string localization, disposable management, and DI patterns..github/instructions/source-code-organization.instructions.md — Layers, target environments, dependency injection, and folder structure conventions.Then read the relevant spec for the area you are changing (see table below). If you modify the implementation, you must update the corresponding spec to keep it in sync.
| Document | Path | When to read |
|---|---|---|
| Layer rules | src/vs/sessions/LAYERS.md | Before adding any cross-module imports. Defines the internal layer hierarchy (core → services → contrib → providers) with ESLint-enforced import restrictions. Key rule: contrib/* must NOT import from contrib/providers/*. |
| Layout spec | src/vs/sessions/LAYOUT.md | Before changing any part, grid structure, titlebar, or CSS. Documents the fixed grid layout (Sidebar | ChatBar | AuxiliaryBar), part positions, the modal editor system, per-session layout state persistence, and the titlebar's three-section design. |
| Layout controller spec | src/vs/sessions/LAYOUT_CONTROLLER.md | Before changing LayoutController or per-session layout state. Details how the auxiliary bar, panel, and editor working sets are captured/restored when switching sessions, multi-session suppression, the auto-reveal-on-changes flow, workspace-folder ordering, and storage/migration. |
| Sessions spec | src/vs/sessions/SESSIONS.md | Before changing session/provider interfaces or data flow. Covers the pluggable provider model (ISessionsProvider → ISessionsProvidersService → ISessionsManagementService), ISession/IChat interfaces, observable state propagation, workspace/folder model, and session type system. |
| Sessions list spec | src/vs/sessions/SESSIONS_LIST.md | Before changing the sessions sidebar list. Covers the tree widget (WorkbenchObjectTree), renderers, grouping (workspace/date), filtering (type/status/archived/read), pinning, read/unread state, workspace capping, mobile adaptations, storage keys, and registered actions. |
| Mobile spec | src/vs/sessions/MOBILE.md | Before adding any phone-specific UI. Covers the mobile part subclass architecture, viewport classification (phone < 640px), MobileTitlebarPart, drawer-based sidebar, MobilePickerSheet, view/action gating with IsPhoneLayoutContext, and the desktop → mobile component mapping. |
| AI Customizations | src/vs/sessions/AI_CUSTOMIZATIONS.md | Before working on the customization editor or tree view. Documents the management editor (in vs/workbench) and the tree view/overview (in vs/sessions/contrib/aiCustomizationTreeView). |
MenuId.* from vs/platform/actions for Agents window UI. Always use Menus.* from browser/menus.ts.IObservable, not Event. Use autorun/derived for reactive UI, not onDid* event listeners.contrib/* code must never import from contrib/providers/*. Extract shared interfaces to services/ or common/.sessions.*.main.ts entry point to be loaded (for example sessions.common.main.ts, sessions.desktop.main.ts, sessions.web.main.ts, or sessions.web.main.internal.ts).…
帮助开发者验证 Azure DevOps 流水线改动,快速排查构建与 YAML 配置问题。
运行聊天性能基准与内存泄漏检查,定位聊天界面回归和性能问题。
帮助开发者升级 Anthropic SDK、迁移版本并解决相关依赖与类型问题。
为 AI 编码助手生成或更新聊天定制配置文件,统一协作与开发体验
帮助开发者定位并读取 Code OSS 开发构建日志,快速排查运行与扩展问题。
将当前会话分支的修改合并回基础分支,便于整合开发成果。
实时监控多智能体开发流程中的调用、会话与使用统计,帮助快速排查与优化。
帮助用户检索 Agent Architects 社区知识库中的课程、帖子与成员资料供 AI 使用。
帮助开发者构建、运行并可视化理解与调试 AI 智能体系统。
帮助用户掌握通用 AI 代理设计与实战最佳实践,适配多种编码代理环境。
为 AI 代理提供情节记忆与架构策略管理,帮助保存上下文并约束行为。
帮助开发者使用 WinUI 3 与 Windows App SDK 构建 Windows 应用