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 插件的自动公网隧道。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 →

← 上一个 Prev dsh-im-channel 下一个 Next dsh-lanchat →