DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Session Scope — DeepSeek Harness 插件(DSH Plugin)
← Plugins

@yadsh/dsh-session-scope

Session Scope

DeepSeek Harness 的按会话划分的工作区可见性范围。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @yadsh/dsh-session-scope@0.7.8
README兼容性版本

兼容性与来源证明

Session Scope 以 @yadsh/dsh-session-scope 发布,当前版本为 0.7.8。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/10/16

版本

0.7.8stable
2026/10/11
0.7.7stable
2026/10/8
0.7.6stable
2026/10/4
查看其余 10 个版本
收起版本
0.7.5stable
2026/9/22
0.7.4stable
2026/9/21
0.7.3stable
2026/9/17
0.7.2stable
2026/9/15
0.7.1stable
2026/9/13
0.7.0stable
2026/9/12
0.6.1stable
2026/9/6
0.6.0stable
2026/8/31
0.5.1stable
2026/8/30
0.5.0stable
2026/8/30

相关插件

正在加载相关插件…

最新版
0.7.8
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
337.5 kB
文件数
60
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 2
周下载
378
安全扫描
✓ v0.7.8 扫描通过
最近提交
2026/10/12
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

README

dsh-session-scope

Per-session workspace visibility scopes for DeepSeek Harness.

dsh-session-scope keeps a session's original workspace and working directory while exposing only explicitly selected workspace directories to the agent. Permission controls effects; scope independently controls visibility.

Permission != Scope

Specification · Compatibility matrix

Installation

Install the published npm package by name:

dsh plugin --profile web add @yadsh/dsh-session-scope

To remove the plugin:

dsh plugin --profile web remove @yadsh/dsh-session-scope

The package includes its Host and Web client entry points plus the cordis.patch.yml bundle patch. Restart the DeepSeek Harness host if bundle hot reload does not pick up the newly installed plugin or browser client.

Scope modes

ModeVisibility and enforcement
fullThe ordinary complete workspace view
focusedSelected roots across DSH filesystem services and known path-aware tools; arbitrary shell processes are not confined
isolatedSelected roots plus Linux process confinement through a fully enforcing, recognized bubblewrap profile, in a private PID namespace

isolated is unavailable on unsupported backends and cannot currently be combined with danger-full-access. Unsupported or partially enforced combinations fail closed instead of silently degrading to focused.

What works now

Version 0.6.0 implements the specification through Phase 4:

  • durable session-scope/set snapshots with a last-write-wins fold;
  • canonical root validation, nested-root collapse, navigation ancestors, and stable error codes;
  • projection-backed scope state and capabilities, a dedicated sessionScope/list RPC, and a write-only /scope command;
  • filtered directory listings and scoped glob, grep, and search roots;
  • per-session filesystem enforcement carried with AsyncLocalStorage;
  • a monotonic final guard for known path-aware tools;
  • model-facing context that names accessible roots without revealing hidden siblings; full emits no scope prompt and bypasses the filesystem carrier;
  • an independent Scope chip and tree picker beside Workspace and permission controls;
  • Linux isolation for one-shot bash and persistent PTY creation;
  • permission-aware read-only and writable mounts in an empty workspace overlay;
  • lifecycle fences that prevent scope changes while processes retain an older mount view;
  • scoped project instructions and skill discovery;
  • fail-closed LSP calls while the upstream provider indexes the complete workspace;
  • scope inheritance for forks, nested subagents, and resumed children;
  • compatibility folding for legacy workspace-scope/selection sessions;
  • unit, integration, package-contract, and packed-composition coverage.

Design boundaries

  • read-only, workspace-write, and danger-full-access remain DSH permission modes; they are not scope modes.
  • Focused scope constrains supported DSH services and tools, not arbitrary child processes.
  • Isolated scope requires the supported Linux sandbox path and a recognized bubblewrap profile.
  • Isolated confinement takes its own PID namespace, so the masked workspace stays masked even against a same-UID process outside the sandbox: the hiding is not left to the host's ptrace or hidepid= policy. A host where that namespace cannot be created reports isolated as unavailable instead of degrading.
  • Unknown runner profiles, partial enforcement, and unsupported platforms fail closed.
  • Scope changes are blocked while foreground jobs, background jobs, or persistent terminals retain the previous mount view.
  • Opening or refreshing the Scope editor is read-only: it uses projections and sessionScope/list, so it does not add command rows to session history. Applying an unchanged scope is a no-op.

Requirements

  • Node.js 20 or newer
  • pnpm 10.4.1 for development
  • DeepSeek Harness >=0.1.7-rc.2 <0.2.0
  • Linux with bubblewrap for isolated mode

Development

From the monorepo root:

pnpm install --frozen-lockfile
pnpm --filter @yadsh/dsh-session-scope check

The package check runs the TypeScript build, Vitest suite, client and package-contract checks, and compatibility verification. The packed-plugin smoke test can be run separately:

pnpm --filter @yadsh/dsh-session-scope smoke:packed

Releases

This package uses independent Nx Version Plans from the monorepo. Add a plan with pnpm release:plan; maintainers publish verified tarballs through the shared release workflow.

Prior art and attribution

The initial directory picker, path canonicalization, filesystem fencing, and sandbox integration were adapted from dsh-workspace-scope-selection by jiangr100, used under the MIT License. The original copyright notice is preserved in LICENSE.

Contributing

Issues and focused pull requests are welcome. Read the monorepo contribution guide and run the package check before submitting a change.

License

MIT. This is an independent community project and is not affiliated with or endorsed by DeepSeek.

相关插件

继续浏览 security-access 分类下经过校验的插件。

Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Mobiledsh-mobileDeepSeek Harness 移动端适配与安全访问插件,支持局域网、远程连接、Android App 和手机浏览器。Codex Subscriptiondsh-codex-subscription通过 OAuth 在 DeepSeek Harness 中使用 ChatGPT 和 Codex 订阅,支持配额管理、安全重置、网页搜索、图像和快速模式