wesky820/dsh-law
DeepSeek Harness 的本地法律工作台插件。首页参考全国法院“一张网”的工作台逻辑,把待办提醒、月历排期、案件概览和最近动态放在同一屏;案件对话统一交给 DSH 原生会话,并自动使用用户预设的「法律模式」。零 npm 依赖,数据完全本机。
catalog descriptioncatalog 简介 / catalog description:深法:DeepSeek Harness 本地法律工作台插件,提供法律模式原生对话、案件看板、日程期限、可调分栏与多套法律主题
Project Overview项目介绍
dsh-law is a native plugin built exclusively for DeepSeek Harness (DSH) that provides an integrated legal case management workbench. It ships with a DSH-compatible cordis manifest, so you can install it directly via the DSH CLI using one of three methods: install from the GitHub repository, install from npm once published, or link a local development copy. After installation, you have to restart the dsh web service to load the plugin, and a new entry for the workbench will appear in DSH’s sidebar. The plugin has zero npm dependencies, and all user data is stored locally on the host machine.
The workbench is designed around the common workflow of legal professionals, with a unified homepage that displays pending tasks, calendar scheduling, case overviews, and recent activity in a single view. Each new case is automatically bound to a native DSH session using DSH’s pre-configured “law” preset, and existing cases will be updated automatically to use this preset, with existing conversation history preserved. Users get access to a kanban-style board for tracking case progress, with six workflow columns that can be reordered via drag and drop. AI automatically extracts key details like evidence, deadlines, and schedules from DSH conversations and updates the board in real time.
The plugin can be run independently for case management only by running npm start or double-clicking the start.command file, which serves the interface at http://127.0.0.1:8898. When run independently, you can view and manage cases, but DSH conversation, model, and skill features are only available when opening the plugin via DSH’s sidebar. Data is stored by default in the ~/.dsh/dsh-lawbench/ directory when running as a DSH plugin, or in the project’s data directory when running independently. The plugin is released under the open source MIT license, and remote access from mobile requires enabling the automatic public tunnel in DSH Remote settings.
dsh-law 是专门为 DeepSeek Harness(DSH)开发的原生法律办案工作台插件,提供一体化案件管理、日程排期、AI 辅助办案功能。插件自带 DSH 原生包清单,支持通过 DSH CLI 命令从 GitHub 仓库、npm 或本地开发路径安装,安装后重启 DSH web 服务即可在侧边栏看到入口。所有数据存储在本地,没有额外 npm 依赖,复用 DSH 本身的模型配置和 API 密钥,不需要额外配置。
工作台参考全国法院“一张网”逻辑设计,首页集合待办提醒、月历排期、案件概览和最新动态,支持多套主题皮肤,包含逆转裁判、风骚律师等趣味主题。每一个案件会自动绑定一个 DSH 原生法律模式会话,旧案件会自动切换模式或新建会话,所有对话历史由 DSH 原生持久化保存。用户可以拖拽调整看板列,AI 自动从对话提取证据、期限和日程信息。
插件支持独立运行案件管理功能,运行 npm start 或双击 start.command 即可在本地 127.0.0.1:8898 访问,但 DSH 对话、模型和技能功能仅能通过 DSH 侧边栏入口使用。数据默认存储在 ~/.dsh/dsh-lawbench/ 目录,独立运行时存储在项目 data 目录,遵循 MIT 开源协议。使用远程访问需要开启 DSH Remote 插件的自动公网隧道。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-law(wesky820/dsh-law)
仓库:https://github.com/wesky820/dsh-law
本站详情页:https://www.yhbd.top/plugins/wesky820-dsh-law/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 4 · 最近提交 2026-08-17 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-lawbench
把 wesky820/dsh-law 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-law · 深法工作台
DeepSeek Harness 的本地法律工作台插件。首页参考全国法院“一张网”的工作台逻辑,把待办提醒、月历排期、案件概览和最近动态放在同一屏;案件对话统一交给 DSH 原生会话,并自动使用用户预设的「法律模式」。零 npm 依赖,数据完全本机。
GitHub 项目名为 dsh-law;为兼容现有安装与数据目录,DSH 插件 id 和 npm 包名继续使用 dsh-lawbench。
办案首页 → DSH 法律对话 → 案件看板 → 日程期限
安装(DSH 插件)
# GitHub(推荐)
dsh plugin --profile web add github:wesky820/dsh-law
# 或 npm 发布后
dsh plugin --profile web add dsh-lawbench
# 本地开发
dsh plugin --profile web add link:/path/to/dsh-lawbench
然后重启 dsh web(插件在宿主启动时加载)。GUI 侧边栏会出现「⚖ 深法工作台」入口:点击在会话区打开工作台,工具栏可「在标签页打开」。
模型和 API:工作台不再维护第二套 API Key 或模型配置。每个案件会绑定一个以案件文件夹为工作目录的 DSH 原生会话,并自动使用 DSH 的「法律模式」(preset id: law)。模型列表、模型切换、技能、命令、工具和权限策略全部来自 DSH;要新增服务商或模型,请在 DSH 设置中配置。
旧案件如果绑定的是空白标准模式会话,工作台会直接切换为法律模式;如果旧会话已经有对话,则保留原会话历史,自动新建并改绑一个法律模式会话。
独立运行(仅案件管理,可选)
npm start # 或双击 start.command
# → http://127.0.0.1:8898 (数据目录:<项目>/data)
独立地址可查看和管理案件、看板与日程;DSH 对话、模型、技能和命令必须从 DSH 侧边栏打开插件后使用。
功能
- 办案首页与工作日历:在办案件、临期/逾期、门禁审批、AI 流程提醒、最近动态同屏呈现;日历支持年/月/日跳转、点击日期新增、按案件登记日程或法定期限并直接删除
- 咨询与收案:咨询可以先作为独立工作空间接待,待信息完整后再决定是否转入正式案件流程
- 可控 AI 模式:每案可选全流程辅助、咨询接待、按需协作,或完全关闭自动辅助;自动提取与首页提醒也可分别关闭
- DSH 技能与命令:每案独立绑定 DSH 会话;“技能与命令”面板支持分类、搜索和点击插入,输入
/会出现即时建议,执行结果直接回显在工作台 - DSH 单一对话与模型切换:只使用本案 DSH 法律模式会话,模型切换器动态读取 DSH 原生模型目录,不存在插件内第二套模型
- 可调工作区:主导航、案件栏与案件雷达均可拖动边缘改变宽度,可分别收起;双击边缘恢复默认,也提供紧凑、标准与专注对话预设,选择在本机浏览器中持久保存
- 四套法律主题:人民法院“一张网”、逆转裁判、风骚律师与 Suits 四套完整皮肤;逆转裁判主题可随时触发经典“异议!”场景
- DSH Remote:工作台复用当前 DSH 已安装的 Remote 插件,显示入口与设备状态,生成一次性配对链接,并可直接打开
/m手机端;当前 DSH 版本禁止监听0.0.0.0,请在 DSH 设置 → 插件 → Remote 开启官方“自动公网隧道”(推荐),或填写可信的publicBaseUrl - 本地案件目录:创建案件时可自动生成
收案与委托 / 客户材料 / 证据 / 法律检索 / 文书草稿 / 定稿与提交 / 庭审 / 结案归档八级工作目录;删除案件记录不会删除文件夹 - 对话主界面:每案独立 DSH 原生对话,左侧案件/咨询列表与右侧案件雷达实时更新
- 实时看板:六列流水线(待接案 → 调查取证 → 策略制定 → 文书起草 → 待定稿送审 → 已结案),拖拽换列,SSE 实时推送,多窗口同步
- AI 材料上板:AI 从对话自动登记证据(三态流转)、主张(可关联证据与证明目的)、期限(自动算届满日,逾期/临期徽章)、日程、检索记录、会话纪要、文书(版本链);每次登记实时出现在看板卡片与材料流
- 案件档案工作区:宽屏案件详情,集中编辑名称、案号、法院、承办法官、摘要和阶段;概览/证据/主张/期限日程/文书/检索/纪要/门禁八个分区,并展示进度、AI 策略、当事人、文件目录与阶段时间线
- 门禁治理:接案/策略/定稿/结案由 AI 提交申请,律师人工审批
- 逾期期限红标、7 日内临期黄标、待批门禁紫标,顶栏实时统计
架构
lib/index.js 宿主半(cordis 插件):进程内拉起工作台 + /api/dsh-lawbench 路由 + 系统提示播报
lib/client.js 浏览器半:侧边栏入口(自愈 MutationObserver)+ 会话区 iframe(同源镜像)
cordis.patch.yml profile bundle 补丁(插入插件行)
server/ 工作台服务(零依赖:原生 http + SSE;案件、看板、日程与材料数据)
public/ 四视图前端(原生 JS,无构建步骤;相对路径,可挂任意前缀)
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
vlln/dsh-task-status
yishengjun8/dsh-workspace-studio
esengine/DeepSeek-Reasonix
chuspeeism/dashi-taskboard
Aisland-SJL/dsh-worktable
gitroomhq/postiz-agent