Token导航 LogoToken导航

Agent Skill · 研究检索

sessions(sessions 搜索)

sessions 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

sessions 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 7,957。

总安装 17,574周安装 725GitHub Stars 184,387下载 5,742核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sessions(sessions 搜索)
来源仓库:https://github.com/microsoft/vscode
仓库路径:skills/sessions
安装命令:
npx skills add https://github.com/microsoft/vscode --skill sessions
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/microsoft/vscode --skill sessions

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选与 sessions 相关的信息。适合在需要根据关键词或场景快速定位候选结果时使用。可结合来源仓库和原始 README 继续核验具体用法。安装前建议确认权限范围和是否会触发联网操作。sessions 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

安装方式:通过 GitHub 仓库使用 npx 命令添加技能。

来源仓库内路径:skills/sessions

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/microsoft/vscode --skill sessions;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

sessions 怎么安装?

在终端执行 npx skills add https://github.com/microsoft/vscode --skill sessions。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

sessions 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

sessions 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

sessions 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

sessions 用的人多吗?

公开数据是累计安装 17,574 次,近一周安装 725 次,下载 5,742 次,GitHub 184,387 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

sessions 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 184,387 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
sessions

sessions 搜索 · 本页

17,574184,387操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

When working on the Agents window (src/vs/sessions/), always follow these guidelines:

1. Read the Specification Documents First

The src/vs/sessions/ directory contains authoritative specification documents. Always read the relevant spec before making changes.

DocumentPathCovers
Layer specsrc/vs/sessions/README.mdLayering rules, dependency constraints, folder conventions
Layout specsrc/vs/sessions/LAYOUT.mdGrid structure, part positions, sizing, CSS classes, API reference
AI Customizationssrc/vs/sessions/AI_CUSTOMIZATIONS.mdAI customization editor and tree view design
Chat Widgetsrc/vs/sessions/browser/widget/AGENTS_CHAT_WIDGET.mdChat widget wrapper architecture, deferred session creation, option delivery

If you modify the implementation, you must update the corresponding spec to keep it in sync. Update the Revision History table at the bottom of LAYOUT.md with a dated entry.

2. Architecture Overview

2.1 Layering

vs/base          ← Foundation utilities
vs/platform      ← Platform services
vs/editor        ← Text editor core
vs/workbench     ← Standard VS Code workbench
vs/sessions      ← Agent Sessions window (this layer)

Key constraint: vs/sessions may import from vs/workbench and all layers below it. vs/workbench must never import from vs/sessions.

2.2 Dependency Rules

  • ✅ Import from vs/base, vs/platform, vs/editor, vs/workbench
  • ✅ Import within vs/sessions (internal)
  • ❌ Never import vs/sessions from vs/workbench
  • Run npm run valid-layers-check to verify layering

2.3 How It Differs from VS Code

AspectVS Code WorkbenchAgents Window
LayoutConfigurable part positionsFixed layout, no settings customization
ChromeActivity bar, status bar, bannerSimplified — none of these
Primary UXEditor-centricChat-first (Chat Bar is a primary part)
EditorsIn the grid layoutModal overlay above the workbench
TitlebarMenubar, editor actions, layout controlsAgent picker, run script, toggle sidebar/panel
NavigationActivity bar with viewletsSidebar (views) + sidebar footer (account)
Entry pointvs/workbench workbench classvs/sessions/browser/workbench.ts Workbench class

3. Folder Structure

src/vs/sessions/
├── README.md                               # Layer specification (read first)
├── LAYOUT.md                               # Authoritative layout specification
├── AI_CUSTOMIZATIONS.md                    # AI customization design document
├── sessions.common.main.ts                 # Common (browser + desktop) entry point
├── sessions.desktop.main.ts                # Desktop entry point (imports all contributions)
├── common/                                 # Shared types, context keys, and theme
│   ├── categories.ts                       # Command categories
│   ├── contextkeys.ts                      # ChatBar and welcome context keys
│   └── theme.ts                            # Theme contributions
├── browser/                                # Core workbench implementation
│   ├── workbench.ts                        # Main Workbench class (implements IWorkbenchLayoutService)
│   ├── menus.ts                            # Agent sessions menu IDs (Menus export)
│   ├── layoutActions.ts                    # Layout toggle actions (sidebar, panel, auxiliary bar)
│   ├── paneCompositePartService.ts         # AgenticPaneCompositePartService
│   ├── widget/                             # Agent sessions chat widget
│   │   └── AGENTS_CHAT_WIDGET.md           # Chat widget architecture doc
│   ├── parts/                              # Workbench part implementations
│   │   ├── parts.ts                        # AgenticParts enum
│   │   ├── titlebarPart.ts                 # Titlebar (3-section toolbar layout)
│   │   ├── sidebarPart.ts                  # Sidebar (with footer for account widget)
│   │   ├── chatBarPart.ts                  # Chat Bar (primary chat surface)
│   │   ├── auxiliaryBarPart.ts             # Auxiliary Bar
│   │   ├── panelPart.ts                    # Panel (terminal, output, etc.)
│   │   ├── projectBarPart.ts               # Project bar (folder entries)
│   │   └── media/                          # Part CSS files
│   └── media/                              # Layout-specific styles
├── electron-browser/                       # Desktop-specific entry points
│   ├── sessions.main.ts                    # Desktop main bootstrap
│   ├── sessions.ts                         # Electron process entry
│   ├── sessions.html                       # Production HTML shell
│   ├── sessions-dev.html                   # Development HTML shell
│   ├── titleService.ts                     # Desktop title service override
│   └── parts/
│       └── titlebarPart.ts                 # Desktop titlebar part
├── services/                               # Service overrides
│   ├── configuration/browser/              # Configuration service overrides
│   └── workspace/browser/                  # Workspace service overrides
├── test/                                   # Unit tests
│   └── browser/
│       └── layoutActions.test.ts
└── contrib/                                # Feature contributions
    ├── accountMenu/browser/                # Account widget for sidebar footer
    ├── agentFeedback/browser/              # Agent feedback attachments, overlays, hover
    ├── aiCustomizationTreeView/browser/    # AI customization tree view sidebar
    ├── applyToParentRepo/browser/          # Apply changes to parent repo
    ├── changesView/browser/                # File changes view
    ├── chat/browser/                       # Chat actions (run script, branch, prompts)
    ├── configuration/browser/              # Configuration overrides
    ├── files/browser/                      # File-related contributions
    ├── fileTreeView/browser/               # File tree view (filesystem provider)
    ├── gitSync/browser/                    # Git sync contributions
    ├── logs/browser/                       # Log contributions
    ├── sessions/browser/                   # Sessions view, title bar widget, active session service
    ├── terminal/browser/                   # Terminal contributions
    ├── welcome/browser/                    # Welcome view contribution
    └── workspace/browser/                  # Workspace contributions

4. Layout

Use the agent-sessions-layout skill for detailed guidance on the layout. Key points:

4.1 Visual Layout

┌─────────┬───────────────────────────────────────────────────────┐
│         │                    Titlebar                           │
│         ├────────────────────────────────────┬──────────────────┤
│ Sidebar │              Chat Bar              │  Auxiliary Bar   │
│         ├────────────────────────────────────┴──────────────────┤
│         │                      Panel                            │
└─────────┴───────────────────────────────────────────────────────┘
  • Sidebar spans full window height (root grid level)
  • Titlebar is inside the right section
  • Chat Bar is the primary interaction surface
  • Panel is hidden by default (terminal, output, etc.)
  • Editor appears as a modal overlay, not in the grid

4.2 Parts

PartDefault VisibilityNotes
TitlebarAlways visible3-section toolbar (left/center/right)
SidebarVisibleSessions view, AI customization tree
Chat BarVisiblePrimary chat widget
Auxiliary BarVisibleChanges view, etc.
PanelHiddenTerminal, output
EditorHiddenMain part hidden; editors open via MODAL_GROUP into ModalEditorPart

Not included: Activity Bar, Status Bar, Banner.

4.3 Editor Modal

The main editor part is hidden (display:none). All editors open via MODAL_GROUP into the standard ModalEditorPart overlay (created on-demand by EditorParts.createModalEditorPart). The sessions configuration sets workbench.editor.useModal to 'all', which causes findGroup() to redirect all editor opens to the modal. Click backdrop or press Escape to dismiss.

5. Chat Widget

The Agents chat experience is built around AgentSessionsChatWidget — a wrapper around the core ChatWidget that adds:

  • Deferred session creation — the UI is interactive before any session resource exists; sessions are created on first message send
  • Target configuration — observable state tracking which agent provider (Local, Cloud) is selected
  • Welcome view — branded empty state with mascot, target buttons, option pickers, and input slot
  • Initial session options — option selections travel atomically with the first request
  • Configurable picker placement — pickers can appear in welcome view, input toolbar, or both

Read browser/widget/AGENTS_CHAT_WIDGET.md for the full architecture.

Key classes:

  • AgentSessionsChatWidget (browser/widget/agentSessionsChatWidget.ts) — main wrapper
  • AgentSessionsChatTargetConfig (browser/widget/agentSessionsChatTargetConfig.ts) — reactive target state
  • AgentSessionsChatWelcomePart (browser/parts/agentSessionsChatWelcomePart.ts) — welcome view
  • AgentSessionsChatInputPart (browser/parts/agentSessionsChatInputPart.ts) — standalone input adapter

6. Menus

The agents window uses its own menu IDs defined in browser/menus.ts via the Menus export. **Never use shared MenuId.* constants** from vs/platform/actions for agents window UI — use the Menus.* equivalents instead.

Menu IDPurpose
Menus.ChatBarTitleChat bar title actions
Menus.CommandCenterCenter toolbar with agent picker widget
Menus.CommandCenterCenterCenter section of command center
Menus.TitleBarContextTitlebar context menu
Menus.TitleBarLeftLayoutLeft layout toolbar
Menus.TitleBarSessionTitleAgent title in titlebar
Menus.TitleBarSessionMenuAgent menu in titlebar
Menus.TitleBarRightLayoutRight layout toolbar
Menus.PanelTitlePanel title bar actions
Menus.SidebarTitleSidebar title bar actions
Menus.SidebarFooterSidebar footer (account widget)
Menus.SidebarCustomizationsSidebar customizations menu
Menus.AuxiliaryBarTitleAuxiliary bar title actions
Menus.AuxiliaryBarTitleLeftAuxiliary bar left title actions
Menus.AgentFeedbackEditorContentAgent feedback editor content menu

7. Context Keys

Defined in common/contextkeys.ts:

Context KeyTypePurpose
activeChatBarstringID of the active chat bar panel
chatBarFocusbooleanWhether chat bar has keyboard focus
chatBarVisiblebooleanWhether chat bar is visible
sessionsWelcomeVisiblebooleanWhether the agents welcome overlay is visible

8. Contributions

Feature contributions live under contrib/<featureName>/browser/ and are registered via imports in sessions.desktop.main.ts (desktop) or sessions.common.main.ts (browser-compatible).

8.1 Key Contributions

ContributionLocationPurpose
Sessions Viewcontrib/sessions/browser/Agents list in sidebar, agent picker, active session service
Title Bar Widgetcontrib/sessions/browser/sessionsTitleBarWidget.tsAgent picker in titlebar center
Account Widgetcontrib/accountMenu/browser/Account button in sidebar footer
Chat Actionscontrib/chat/browser/Chat actions (run script, branch, prompts, customizations debug log)
Changes Viewcontrib/changesView/browser/File changes in auxiliary bar
Agent Feedbackcontrib/agentFeedback/browser/Agent feedback attachments, editor overlays, hover
AI Customization Treecontrib/aiCustomizationTreeView/browser/Sidebar tree for AI customizations
Apply to Parent Repocontrib/applyToParentRepo/browser/Apply changes to parent repo
Filescontrib/files/browser/File-related contributions
File Tree Viewcontrib/fileTreeView/browser/File tree view (filesystem provider)
Git Synccontrib/gitSync/browser/Git sync contributions
Logscontrib/logs/browser/Log contributions
Terminalcontrib/terminal/browser/Terminal contributions
Welcomecontrib/welcome/browser/Welcome view contribution
Workspacecontrib/workspace/browser/Workspace contributions
Configurationcontrib/configuration/browser/Configuration overrides

8.2 Service Overrides

The agents window registers its own implementations for:

  • IPaneCompositePartService → AgenticPaneCompositePartService (creates agent-specific parts)
  • IPromptsService → AgenticPromptsService (scopes prompt discovery to active session worktree)
  • IActiveSessionService → ActiveSessionService (tracks active session)

Service overrides also live under services/:

  • services/configuration/browser/ - configuration service overrides
  • services/workspace/browser/ - workspace service overrides

8.3 WindowVisibility.Sessions

Views and contributions that should only appear in the agents window (not in regular VS Code) use WindowVisibility.Sessions in their registration.

9. Entry Points

FilePurpose
sessions.common.main.tsCommon entry; imports browser-compatible services, workbench contributions
sessions.desktop.main.tsDesktop entry; imports desktop services, electron contributions, all contrib/ modules
electron-browser/sessions.main.tsDesktop bootstrap
electron-browser/sessions.tsElectron process entry
electron-browser/sessions.htmlProduction HTML shell
electron-browser/sessions-dev.htmlDevelopment HTML shell
electron-browser/titleService.tsDesktop title service override
electron-browser/parts/titlebarPart.tsDesktop titlebar part

10. Development Guidelines

10.1 Adding New Features

  1. Core workbench code (layout, parts, services) → browser/
  2. Feature contributions (views, actions, editors) → contrib/<featureName>/browser/
  3. Register by importing in sessions.desktop.main.ts (or sessions.common.main.ts for browser-compatible)
  4. Use Menus.* from browser/menus.ts for menu registrations — never shared MenuId.*
  5. Use separate storage keys prefixed with workbench.agentsession.* or workbench.chatbar.*
  6. Use agent session part classes, not standard workbench parts
  7. Mark views with WindowVisibility.Sessions so they only appear in this window

10.2 Validating Changes

  1. Run npm run compile-check-ts-native to run a repo-wide TypeScript compilation check (including src/vs/sessions/). This is a fast way to catch TypeScript errors introduced by your changes.
  2. Run npm run valid-layers-check to verify layering rules are not violated.
  3. Use scripts/test.sh (or scripts\test.bat on Windows) for unit tests (add --grep <pattern> to filter tests)

Important do not run tsc to check for TypeScript errors always use above methods to validate TypeScript changes in src/vs/**.

10.3 Layout Changes

  1. Read LAYOUT.md first — it's the authoritative spec
  2. Use the agent-sessions-layout skill for detailed implementation guidance
  3. Maintain fixed positions — no settings-based customization
  4. Update LAYOUT.md and its Revision History after any changes
  5. Preserve no-op methods for unsupported features (zen mode, centered layout, etc.)
  6. Handle pane composite lifecycle when hiding/showing parts

10.3 Chat Widget Changes

  1. Read browser/widget/AGENTS_CHAT_WIDGET.md first
  2. Prefer composition over modifying core ChatWidget — add behavior in the wrapper
  3. Use IAgentChatTargetConfig observable for target state, not direct session creation
  4. Ensure initialSessionOptions travel atomically with the first request
  5. Test both first-load (extension not yet activated) and new-session flows

10.4 AI Customization Changes

  1. Read AI_CUSTOMIZATIONS.md first — it covers the management editor and tree view design
  2. Lean on existing VS Code services (IPromptsService, IMcpService, IChatService)
  3. Browser compatibility required — no Node.js APIs
  4. Active worktree comes from IActiveSessionService

10.5 Validation

  1. Check VS Code - Build task output for compilation errors before declaring work complete
  2. Run npm run valid-layers-check for layering violations
  3. Verify part visibility toggling (show/hide/maximize)
  4. Test editor modal open/close behavior
  5. Test sidebar footer renders with account widget

平台分布

Codex

38.82%
按下载量换算2,229

Claude

28.97%
按下载量换算1,663

Cursor

21.05%
按下载量换算1,209

Gemini CLI

8.72%
按下载量换算501

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills