dsh-TUI
AGENTS.md4k starsChanged 2 months agoMITView on GitHub
dsh-TUI 是 DeepSeek Harness 的终端界面插件:零核心改动、纯插件挂载的交互式 TUI(@deepseek-harness-tui/dsh-tui)。Agent、会话、模型、工具、持久化与策略域由 DeepSeek Harness 拥有,本包只消费它们。改动前先读 docs/contributing.md(本仓库共享开发契约的权威文本)与 ADAPTER.md(上游边界与契约);整体结构见 docs/architecture.md。 完整仓库地图与运行时链路见 docs/contributing.md。 仓库*没有根级 test 或 lint 脚本*——不要声称跑过它们。静态关口是 TypeScript 构建;行为验证靠聚焦回归脚本与复现环境。多数用普通 node 调用的脚本 import lib/types/,先 pnpm build;import TypeScript 源的脚本在头部声明 node --import tsx/esm <script>。不要凭扩展名推断输入层(verify-themes.mjs 实际经 tsx import src/)。scripts/ 还含取证/交互工具(堆分析、PTY 探针、回放捕获、性能探针),不是有界测试,不要当套件全跑。
- Reads credentials
- Installs packages
Trending
Quiet since October.about the whole repository
Who's talking about ccch1mneyyy/dsh-TUI
- PlutoKeating/dsh-lark-bot“chore(upstream): review dsh-tui 0.13.0”GitHub · Oct 5, 2026
- jason-namehard/dsh-feishu-session-control“chore(upstream): review dsh-tui 0.13.0”GitHub · Oct 5, 2026
- sudosubin/agents.nix“agent-skills.github.ccch1mneyyy.dsh-tui: 0.12.0 → 0.13.0”GitHub · Oct 5, 2026
- sudosubin/agents.nix“agent-skills.github.ccch1mneyyy.dsh-tui: 0.10.2 → 0.12.0”GitHub · Oct 3, 2026
- codeasier/dsh-TUI“[Feature] 实现 OpenCode 会话迁移与外部会话浏览恢复”GitHub · Oct 3, 2026
The biggest 5 of 41 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 41
Talked about on GitHub (41 times).
On GitHub · 41
- Oct 5, 2026chore(upstream): review dsh-tui 0.13.0 — PlutoKeating/dsh-lark-bot0 reactions
- Oct 5, 2026chore(upstream): review dsh-tui 0.13.0 — jason-namehard/dsh-feishu-session-control0 reactions
- Oct 5, 2026agent-skills.github.ccch1mneyyy.dsh-tui: 0.12.0 → 0.13.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.ccch1mneyyy.dsh-tui: 0.10.2 → 0.12.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026[Feature] 实现 OpenCode 会话迁移与外部会话浏览恢复 — codeasier/dsh-TUI0 reactions · 1 comment
36 more on GitHub
- Sep 30, 2026chore(upstream): review dsh-tui 0.12.0 — PlutoKeating/dsh-lark-bot0 reactions
- Sep 30, 2026chore(upstream): review dsh-tui 0.12.0 — jason-namehard/dsh-feishu-session-control0 reactions
- Sep 29, 2026chore(upstream): review dsh-tui 0.11.2 — PlutoKeating/dsh-lark-bot0 reactions
- Sep 29, 2026chore(upstream): review dsh-tui 0.11.2 — jason-namehard/dsh-feishu-session-control0 reactions
- Sep 26, 2026agent-skills.github.ccch1mneyyy.dsh-tui: init at 0.10.2 — sudosubin/agents.nix0 reactions
- Sep 26, 2026Add dsh-TUI to DeepSeek Harness Plugins — hashgraph-online/awesome-ai-plugins0 reactions · 1 comment
- Sep 25, 2026chore(upstream): review dsh-tui 0.11.0 — PlutoKeating/dsh-lark-bot0 reactions
- Sep 25, 2026chore(upstream): review dsh-tui 0.11.0 — jason-namehard/dsh-feishu-session-control0 reactions
- Sep 24, 2026Validate dsh-TUI v0.11.0 with DSH 0.1.7-rc.1 — sympoies/dsh-workbench0 reactions · 29 comments
- Sep 22, 2026fix(dsh): 宿主框架 peer 标为 optional,避免 pnpm 自动装配无解 range — ccch1mneyyy/working-activity0 reactions · 1 comment
- Sep 17, 2026chore(upstream): review dsh-tui 0.10.2 — PlutoKeating/dsh-lark-bot0 reactions
- Sep 17, 2026chore(upstream): review dsh-tui 0.10.2 — jason-namehard/dsh-feishu-session-control0 reactions
- Sep 16, 2026feat: add adaptive ambient rendering — lql341/dsh-astra0 reactions
- Sep 11, 2026chore(upstream): review dsh-tui 0.10.1 — PlutoKeating/dsh-lark-bot0 reactions
- Sep 11, 2026chore(upstream): review dsh-tui 0.10.1 — jason-namehard/dsh-feishu-session-control0 reactions
- Sep 7, 2026chore(upstream): review dsh-tui 0.9.3 — jason-namehard/dsh-feishu-session-control0 reactions
- Sep 7, 2026chore(upstream): review dsh-tui 0.9.1 — jason-namehard/dsh-feishu-session-control0 reactions
- Sep 7, 2026chore(upstream): review dsh-tui 0.9.2 — jason-namehard/dsh-feishu-session-control0 reactions
- Sep 5, 2026[upstream-watch] upstream/dsh-TUI advanced beyond the pinned revision — hust-open-atom-club/oh-dsh0 reactions
- Aug 27, 2026chore(upstream): review dsh-tui 0.9.3 — PlutoKeating/dsh-lark-bot0 reactions
- Aug 26, 2026fix(compat): promote dsh-tui 0.9.3 with authenticated patch — sympoies/dsh-runtime-kit0 reactions · 1 comment
- Aug 26, 2026[upstream-watch] upstream/dsh-TUI advanced beyond the pinned revision — hust-open-atom-club/oh-dsh0 reactions · 1 comment
- Aug 25, 2026chore(upstream): review dsh-tui 0.9.1 — PlutoKeating/dsh-lark-bot0 reactions · 1 comment
- Aug 25, 2026chore(upstream): review dsh-tui 0.9.2 — PlutoKeating/dsh-lark-bot0 reactions · 1 comment
- Aug 25, 2026[upstream-watch] upstream/dsh-TUI advanced beyond the pinned revision — hust-open-atom-club/oh-dsh0 reactions
- Aug 24, 2026[upstream-watch] upstream/dsh-TUI advanced beyond the pinned revision — hust-open-atom-club/oh-dsh0 reactions
- Aug 23, 2026希望能增加对deepseek-tui的适配 — farion1231/cc-switch0 reactions · 1 comment
- Aug 22, 2026收录更新: dsh-tui-feishu 迁移到 Easyhoov/dsh-tui-feishu — dsh-tui-ecosystem/dsh-tui-ecosystem0 reactions · 4 comments
- Aug 22, 2026[Audit] dsh-TUI — SoberReport-AI/DeepGuard0 reactions · 3 comments
- Aug 21, 2026挖到 15 个宝藏插件,网友把 DeepSeek Harness 玩出了花。 — szwnba/affweb0 reactions
- Aug 21, 2026catalog: add cikeseven-dsh-tui (community curation, created by @CikeSeven) — diegosouzapw/awesome-omni-dsh-plugins0 reactions · 1 comment
- Aug 19, 2026feat: 基于 DSH session/event 实现 WebUI、dsh-TUI 与飞书的消息级实时同步及历史回填 — PlutoKeating/dsh-lark-bot0 reactions · 3 comments
- Aug 19, 2026Don't recognize dsh-tui — herdrdev/herdr0 reactions · 4 comments
- Aug 17, 2026收录: dsh-music-player-tui — dsh-tui-ecosystem/dsh-tui-ecosystem0 reactions · 2 comments
- Aug 17, 2026Audit candidate: ccch1mneyyy/dsh-TUI — MarkQWu/agents-in-the-wild0 reactions
- Aug 17, 2026Audit candidate: ccch1mneyyy/dsh-TUI — xiaolai/nlpm0 reactions · 2 comments
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- auditSkill
- bugSkill
- practiceSkill
- pr-commentsSkill
- prSkill
- release-notesSkill
- reviewSkill
- vuln-checkSkill
The file
Files
AGENTS.md
dsh-TUI 是 DeepSeek Harness 的终端界面插件:零核心改动、纯插件挂载的交互式 TUI(@deepseek-harness-tui/dsh-tui)。Agent、会话、模型、工具、持久化与策略域由 DeepSeek Harness 拥有,本包只消费它们。改动前先读 docs/contributing.md(本仓库共享开发契约的权威文本)与 ADAPTER.md(上游边界与契约);整体结构见 docs/architecture.md。
仓库布局
src/index.ts 公共 Cordis 插件入口、配置 Schema、对运行时实现的惰性移交
src/dsh-adapter/plugin.ts 运行时实现:TTY 校验、服务注册、Agent 创建/恢复、React 树挂载与收尾
src/dsh-adapter/channel.ts Channel 入口:后端中立核心(channel/core/)+ 仅 DSH 会话挂载的扩展(channel/extensions.ts)
src/agent/ 后端中立的会话领域:AgentEvent、AgentSession、类型化能力(无 I/O、无厂商依赖)
src/channel/ 共享投影器(AgentEvent → 视图状态)与审批/问卷等中立 store
src/backends/claude/ 实验性 Claude Agent SDK 后端;多后端结构见 docs/agent-backend-design.md
src/dsh-adapter/oauth/ 内置订阅 OAuth:provider 路由、/auth、凭据存储与问卷桥接
src/screens/ Chat.tsx 交互协调器与状态栏呈现
src/components/ 功能组件;design-system/ 是主题感知原语
src/components/sidePanel/ 侧栏分栏(几何、标签栏、PanelHost、键盘接缝)与内置面板适配
src/themeCatalog.ts 内置、静态 JSON 与运行时插件主题的统一列表/解析
src/ui.ts 本地渲染器、主题化 Box/Text 与公共 TUI 原语的首选门面
src/ink/ Ink 系渲染器与终端实现——敏感基础设施,改动聚焦并附专用回归
src/native-ts/ 渲染器使用的 Yoga 布局引擎
src/terminal-utils/ 终端格式化与呈现辅助
src/dsh-adapter/ 唯一允许 import 官方 @deepseek-ai/* 的位置;themes.ts 提供 tuiThemes 插件接缝
src/*Prefs.ts 等 ~/.dsh-tui 下的持久化用户偏好与会话元数据
.agents/skills/ 仅供仓库维护者使用的项目技能,不随 npm 包分发
presets/ 随包分发的 preset(liangshen)
bin/dsh-tui.js dsh-tui 直达命令入口
vendor/dsh-std vendored 依赖(frozen lockfile 构建,见 scripts/build 相关脚本)
tui-profile/ 仓内 TUI Profile:插件准入 + 私有协议定义(纯文件,随本仓代码修订)
cordis.patch.yml profile 安装的包级覆盖层;行序、行 ID 与 insert/override 语义关键
cordis.yml 直接 Cordis/DSH 启动的完整裸组合示例
scripts/ 无头回归、复现环境、探针与诊断;运行前先读脚本头部说明
docs/ 根 README 之外的完整文档;中文无后缀,英文 .en.md 后缀
lib/ 由 src/ 生成的产物——忽略入库、随 npm 分发,绝不手改完整仓库地图与运行时链路见 docs/contributing.md。
命令
pnpm install --frozen-lockfile # pnpm 11;Node ^22.19 || >=24(CI 用 Node 24)
pnpm compile # 干净编译 src/ → lib/types/(先删整个 lib/;vendor 构建未变则跳过)
pnpm build # compile + 全部构建门禁
pnpm verify:build # 构建门禁(边界/契约/patch surface/plugin 系列等),并行、不重复编译;--jobs 1 串行排查
pnpm verify:package # npm tarball 目标完整 + 入口 smoke import
pnpm smoke # 通用无头屏幕组装冒烟仓库没有根级 test 或 lint 脚本——不要声称跑过它们。静态关口是 TypeScript 构建;行为验证靠聚焦回归脚本与复现环境。多数用普通 node 调用的脚本 import lib/types/,先 pnpm build;import TypeScript 源的脚本在头部声明 node --import tsx/esm <script>。不要凭扩展名推断输入层(verify-themes.mjs 实际经 tsx import src/)。scripts/ 还含取证/交互工具(堆分析、PTY 探针、回放捕获、性能探针),不是有界测试,不要当套件全跑。
- 按改动面选验证:共享渲染、
Chat、提示/问卷布局、工具卡、主题原语或ink/core 的改动必须跑 CI 回归;窄改动跑对应聚焦脚本,对照表见 docs/contributing.md。终端可见改动在无头断言之外,环境可用时在 inline 与 fullscreen 两种模式、窄终端宽度下手动演练受影响流程。 - 纯文档、纯 workflow、纯 YAML 改动不需要重建(除非同时改了 TypeScript 输入)。
上游边界与契约
- 厂商包按目录隔离:
@deepseek-ai/*只在src/dsh-adapter/,@anthropic-ai/*只在src/backends/claude/;后端中立层src/agent/、src/channel/不 import 厂商包、src/dsh-adapter/与src/backends/;UI 层不 importsrc/backends/,从src/dsh-adapter/只取类型(存量值 import 的 allowlist 只减不增)。完整规则表见 ADAPTER.md;pnpm run verify:boundary扫描全部源码,越界即失败。 - 校验版本线、peer 范围与 blessed 包清单在
src/dsh-adapter/contract.ts;本地检测到 drift 打警告,CI 上verify:contract直接失败。 - 运行时或发布类型引用的
@deepseek-ai/*框架包必须同时是 peer 与 dev 依赖(verify:manifest-deps门禁);仅测试/脚本使用的框架包只进 dev 依赖。 cordis.patch.yml对官方行的干预已快照到patch-surface.snapshot.json,改动需保持同步(verify:patch-surface门禁)。
约定与红线
- 源码与产物分离:改
src/,绝不直接改lib/,不提交lib/下的生成结果。 - 真源投影:后端的持久化会话记录(DSH 会话事件日志、Claude 的转录文件)是 transcript 真源;不要插入可能与持久化分歧的乐观助手/工具事实。保留事件顺序、序列锚点与 call-ID 匹配。
- 职责分层:投影属于共享投影器
src/channel/projection.ts,TUI 动作属于 channel 核心dsh-adapter/channel/core/与 DSH 扩展channel/extensions.ts(新后端经会话能力接入,不写 channel 代码),交互模式与按键优先级属于Chat.tsx,终端协议、布局与帧差分属于ink/。不要为界面好写而在 TUI 里重实现 DSH 域服务——经 channel 或既有注册表缝隙适配。 - 注册即效应:资源经 Cordis 注册,用
ctx.effect或既有单一退出漏斗清理。渲染失败必须响亮且非零退出;正常退出前恢复终端状态(raw 模式、光标、alt-screen、同步输出、鼠标、焦点)。 - 渲染安静:TUI 活动期间不加
console.log或 stdout 诊断;用 opt-in 的 stderr/调试路径(DSH_TUI_DEBUG、DSH_TUI_RENDER_LOG)。 - TypeScript:纯 ESM,相对导入用
.js后缀;纯类型依赖优先import type;不因 Ink 系渲染器的放宽而引入any,用unknown收窄;遵循现有两空格、单引号、无分号风格,不批量格式化渲染器文件。 - 终端宽度是显示单元宽度,不是 JS 字符串长度;考虑 ANSI 转义、组合字符、emoji 与东亚宽字符,用仓库的宽度/切片/换行辅助函数。
- 尺寸只有一个来源:
ink/之外一律经useTerminalSize()取尺寸(页边距、分栏会逐层收窄它),不直接读stdout.columns/rows或自行监听 resize;确需物理终端的,登记进verify:terminal-size-source的ALLOWED并写明理由。 - 双语文档同步:行为、配置、快捷键与限制在
README.md(英文默认)与README_ZH.md(中文)两版同步。插件配置、slash 命令、主题、渲染器、技能发现的跨文件同步清单见 docs/contributing.md。 - 密钥:交互启动读取
DEEPSEEK_API_KEY;诊断只能报告是否已设置,绝不泄露完整值。 - PR:创建或更新 PR(包括改写描述)一律使用
.agents/skills/pr。 - Git 安全:只暂存显式路径,不用
git add ./git add -A;不运行破坏性清理命令;未经要求不 commit、不打 tag、不 push、不发布。发布由v*tag 驱动且必须与package.json版本完全一致。
编辑本文件
CLAUDE.md 是指向 AGENTS.md 的符号链接;编辑真身。每条规则保持自包含,细节链接到权威文档;表达在清晰存活时优先精简。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

