DeepSeek Harness 插件

dsh-session-allow

DSH Web GUI plugin: session-scoped "Allow for this session" option in the approval dialog (per-mode standing grants, localStorage) + right-panel auto-open guard(英文原文)

跳到安装方式

来源信息

GitHub 仓库
AnakinCao/dsh-session-allow
最近更新
2026年8月21日
分类
安全与权限
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/AnakinCao/dsh-session-allow
插件名:dsh-session-allow
作者:AnakinCao

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器4 个文件
README.md来源说明 · 只读预览
README 语言

dsh-session-allow

> 简体中文: README.zh.md

A DSH (DeepSeek Harness) Web GUI plugin that adds an "Allow for this session" option to the approval dialog.

When you pick it, a session-scoped, per-mode standing grant is recorded (persisted in localStorage, isolated by session id). Later escalation requests of the same mode in this session are auto-approved without a dialog; other modes keep prompting as usual.

What it does

ScenarioBehavior
A tool asks to escalate to danger-full-accessDialog shows: Reject / Allow once / Allow danger-full-access for this session
You click "Allow for this session"The current request is allowed and the mode is granted for this session
Same mode is requested again in this sessionSilently auto-approved, no dialog
A different mode is requested (not yet granted)Still prompts normally
Bottom of the dialogShows this session's granted modes as revocable chips (click × to revoke)
Page refresh / new sessionGrants persist per session id / stay isolated per session

How it works (no core package changes)

The core approval panel is registered on the conversation.composer chain slot at priority 1. This plugin registers the same slot at priority 0 with an identical selector — the chain slot elects the lowest-priority entry whose select returns non-null, so this panel fully replaces the core one. Grants live in localStorage["dsh.sessionAllow.v1"]; a matching request is auto-answered allowed-once on the wire (the host audit still records approval/asked + approval/decided as usual).

Grant keys: mode:<mode> (parsed from the reason escalate sandbox to <mode>: ...); non-escalation reasons fall back to tool:<tool>:<reason>.

Install

Method 1 — recommended, one command (restart dsh web afterwards):

dsh plugin --profile web add https://github.com/AnakinCao/dsh-session-allow.git

Method 2 — manual: append to ~/.dsh/profiles/web/cordis.patch.yml:

- insert:
    - id: dsh-session-allow
      name: 'dsh-session-allow'

and place the repository content under ~/.dsh/profiles/web/node_modules/dsh-session-allow/ (or pnpm add), then restart dsh.

> Pick ONE method — never mount twice.

Verify

1. The dialog shows three buttons: Reject / Allow once / Allow … for this session. 2. Click "Allow for this session" → the current request is allowed. 3. Trigger the same mode again → no dialog, executes directly. 4. The chips at the bottom show the granted mode; click × to revoke and the mode prompts again. 5. Open another session → that mode still prompts (grants are per-session).

Uninstall

dsh plugin --profile web remove dsh-session-allow

or delete the - insert entry from the profile's cordis.patch.yml and remove node_modules/dsh-session-allow. Grant data lives in the browser's localStorage["dsh.sessionAllow.v1"] and can be cleared manually.

File structure

dsh-session-allow/
├── package.json          # dsh.client / dsh.bundle declaration
├── cordis.patch.yml      # loader entry registration
├── lib/
│   ├── index.js          # host-side placeholder plugin
│   └── client.js         # client bundle (panel takeover + session grants)
├── test/
│   └── behavior.test.mjs # grant / auto-allow / revoke regression tests
└── README.md

License

MIT