session-window-interaction SKILL.md skillA

session-window-interaction from loadingvx/deepseek-harness-workbench-plugin is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add loadingvx/deepseek-harness-workbench-plugin/session-window-interaction@git:20260823.a0b88c3

Pins git:20260823.a0b88c3 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
loadingvx/deepseek-harness-workbench-plugin
Path
.cursor/skills/session-window-interaction/SKILL.md
Versions recorded
1
Latest version
git:20260823.a0b88c3, committed Aug 23, 2026
Size
6,885 bytes
Repository stars
35
License
MIT

把工作台内容(文件、网络请求、终端选中内容等)写入原生会话输入框并显示为胶囊(attention 胶囊)的机制与踩坑。当任务涉及「添加到会话 / add to chat / 拖拽到会话窗口 / 胶囊 / chip / 会话输入框插入 / slash/input-insert-reference / ctx.sessions」时触发。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 会话窗口交互机制(attention 胶囊)

把插件里的内容(文件树节点、DevTools 网络请求、浏览器元素、终端选中内容)变成原生会话输入框里的
**胶囊**(chip),提交后模型收到展开文本。这是插件与「会话窗口」交互的唯一官方通道。

## 0. 铁律:inject 必须包含 sessions

`src/client/index.ts` 的 `export const inject = [...]` **必须包含 sessions**:

```ts
export const inject = ['slots', 'locale', 'inputTriggers', 'sessions']
```

一旦缺失,`ctx.sessions.scope(id)` 在运行时抛 `Error: cannot get property "sessions" without inject`,
所有胶囊插入静默失效(点击无反应、输入框不出现胶囊)。历史教训:文件树拖拽曾因此回归,
见 `docs/session-window-interaction-fix-analysis.md`。

## 1. 官方写入通道

原生输入框是受控组件,插件不能直接改 DOM 值,只能走两条 scoped bail 事件:

| 事件 | 载荷 | 效果 |
| --- | --- | --- |
| `slash/input-insert-reference` | `{ reference, span }` | 插入 U+FFFC + occurrence,InputBar 渲染成胶囊;提交时 codec.serialize 还原文本 |
| `slash/input-insert-text` | `{ text, span }` | 插入普通文本(无胶囊;少数兜底场景用) |

- **reference**:`{ source, ref, label, clipboardText }`,source 须在 `inputTriggers.registerSource` 注册过(否则提交时无法 serialize);
- **span CAS**:`{ start, end, draftRev }`,`draftRev` 必须等于输入机当前版本,否则事件被拒(返回非 true);
- **phase 守卫**:`adjudicating / submitting` 阶段拒绝插入,先提示用户。

## 2. 胶囊源的标准实现(镜像既有模式)

每种内容 = 一对文件,照抄即可:

1. **shared 层**:`src/shared/<x>-ref.ts`(无 DOM、可单测)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add loadingvx/deepseek-harness-workbench-plugin/session-window-interaction@sha256:7b0cedcfbcc2a9d0

The line at the top of this page pins the label git:20260823.a0b88c3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_tieaqhg6lsk22mk7.svg)](https://markdownregistry.com/a/art_tieaqhg6lsk22mk7)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Aug 23, 2026.

versioncommittedcommitsizeaudit
git:20260823.a0b88c3 latest2026-08-23 a0b88c3 6,885 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6885 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

loadingvx/deepseek-harness-workbench-plugin · 35 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_tieaqhg6lsk22mk7
GET https://markdownregistry.com/api/v1/resolve?ref=loadingvx/deepseek-harness-workbench-plugin/session-window-interaction
GET https://markdownregistry.com/api/v1/blob/7b0cedcfbcc2a9d0d1af0f4e74e7c11def5acee806c32727855a482505808ce8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from loadingvx/deepseek-harness-workbench-plugin

main-branch Cursor rule
loadingvx/deepseek-harness-workbench-plugin · .cursor/rules/main-branch.mdc · 日常开发与提交都在 main 上进行;不要切到已废弃的 dev 分支
git:20260825.7084a98 · audit A · 35 stars
privacy-redact Cursor rule
loadingvx/deepseek-harness-workbench-plugin · .cursor/rules/privacy-redact.mdc · 对外展示的 URL / token 必须脱敏,禁止把完整密钥写进界面、报错或日志
git:20260815.d296918 · audit A · 35 stars
bump-version SKILL.md skill
loadingvx/deepseek-harness-workbench-plugin · .cursor/skills/bump-version/SKILL.md · 升级 dsh-workbench-plugin 版本号时使用。列出 package.json 与两个 README 中所有需要同步版本号的位置、必须保留的旧版本字样、验证与发布命令。当任务涉及“更新版本号 / bump version /…
git:20261019.421282d · audit A · 35 stars
bump-version SKILL.md skill
loadingvx/deepseek-harness-workbench-plugin · .dsh/skills/bump-version/SKILL.md · 所有项目文案和代码中的版本号都更新
git:20260828.37f265a · audit A · 35 stars

Every file in loadingvx/deepseek-harness-workbench-plugin

Browse by kind, by grade A, or by owner.