DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@playform/plugin-dsh-workspace-context

Plugin Dsh Workspace Context

workspace-context 服务:一个 DeepSeek Harness 插件,承担 workspace 系列的注意力投射角色——管理必需/相关/延后上下文的经济性。该服务(注册为 ctx.workspaceContext)从

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

npx -y @deepseek-ai/dsh plugin --profile web add @playform/plugin-dsh-workspace-context@0.2.1
README兼容性版本

兼容性与来源证明

Plugin Dsh Workspace Context 以 @playform/plugin-dsh-workspace-context 发布,当前版本为 0.2.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.2.1stable
2026/10/28
0.2.0stable
2026/10/25
0.1.0stable
2026/10/25

相关插件

正在加载相关插件…

最新版
0.2.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
43.3 kB
文件数
58
Surface
any
许可证
CC0-1.0
发布源
npm
GitHub
★ 2
周下载
294
安全扫描
✓ v0.2.1 扫描通过
最近提交
2026/11/4
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合、基于视图的上下文。开箱即用的可插拔来源与策略、分层记忆和自我演进技能。Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。

README

@playform/plugin-dsh-workspace-context

v0.1.0 - UNPUBLISHED - plan: Workspace-Family/CONTEXT

The role

The workspace family's context service provides the attention projection (the required/relevant/deferred) and the context economy.

  • The orientation packet (V4-1 section 3.5): the eight fixed sections WORKSPACE <name> @ <revision> / SCOPE / MAP / FOCUS (the node, its span, its fingerprint, its version) / NEIGHBORS (the strongest edges, ranked) / EVIDENCE (the files/spans) / OPEN (the honest gaps) / STALE (the version the caller held, when it differs).

    It is built from the sibling workspace-graph's index through a self-contained structural handle.

  • The budget: target 2000 tokens (budgetTokens), configurable hard cap (budgetMaximum).

    It is measured with the harness ctx.tokenMeter where available, else at ~4 chars/token.

    Over budget, the weakest neighbors drop first, and every clamp is ledgered.

  • The lenses: code (default), docs, tests - the shipped catalog filters the eligible node and edge kinds.

  • The surfaces: the workspaceContext service (declaration-merged accessor: packet, lenses, focusOf, statistics) and the read-only workspace_context tool.

  • The packet memo: packet(query) is served through a bounded memo, where a hit returns the same packet object and writes no second ledger line; the graph's graph/invalidated trace event clears it, so the next identical query rebuilds against the new revision (D5).

    The trace bus (ctx.trace) is optional, so without it the memo simply lives until the process ends.

The plugin ships disabled (the IDLE-forever posture): it never appears in the profile's bundles and enables only by an explicit ACTIVATE.

Plan: Documentation/Plans/WORKSPACE-FAMILY-V4-1.md section 3.5 + Documentation/Plans/Workspace-Family/CONTEXT.md.

The surfaces

  • The workspaceContext service (declaration-merged accessor: packet, lenses, focusOf, statistics).
  • The read-only workspace_context tool.
  • The optional ctx.trace (graph/invalidated clears the packet memo).

The ledger

The lines are prefixed context: (byte-exact; see also the smoke folders' expected-string sections):

context: activated (budget=2000/4000, lenses=3)
context: disabled (enabled=false)
context: packet <id> (<tokens> tok, lens <lens>)
context: clamped (<tokens> -> <tokens> tok, budget <max>)

The configuration

FieldDefaultMeaning
enabledfalsethe master switch (the IDLE-forever posture)
logtruethe ledger switch (shared cell)
logFile~/.dsh/playform/plugin-dsh-workspace-context.logthe ledger
budgetTokens2000the target token budget
budgetMaximum4000the hard cap
lensDefaultcodethe default lens
neighborLimit20the NEIGHBORS section bound
evidenceLimit12the EVIDENCE section bound
mapLimit12the MAP section bound
workspaceNameworkspacethe WORKSPACE section name
policy.*D6 defaultsthe per-action allowlist (see below)

Every field is a volatile cell.

The build and the tests

The build is pnpm prepublishOnly (Source/prepublishOnly.sh): the plugin build (ESM Target/, Test tree excluded), the Test build, the harness selfcheck, and the Test type-check.

The plan

  • Documentation/Plans/WORKSPACE-FAMILY-V4-1.md section 3.5 - the orientation packet.
  • Workspace-Family/CONTEXT - the context service.
  • The plugin ships disabled (the IDLE-forever posture): it never appears in the profile's bundles and enables only by an explicit ACTIVATE.

License

CC0-1.0.

The policy block (D6)

The config carries the shared per-action allowlist (policy: Policy(), composed from the factory's block), mapped to State.Allow:

actiondefaultactiondefault
readautowriteapprove
indexautocommitapprove
recordautospawnapprove
suggestautomessageauto

The context service's actions are read-only, all AUTOMATIC, and it has no gated action (no file write, no batch commit, no spawn), so the block documents the posture and refuses nothing.

The block is one volatile object, so a policy flip is hot-editable without a remount, and a resolved pack's policy section overrides the defaults per action (the wiring is the next refinement).