dshbase

插件目录 / Developer / deepseek-harness-genui

deepseek-harness-genui

已验证 · 实测可装 pengyue-polaron

✓ 持续维护 3 位贡献者 基于 14 个官方 DSH 包 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

114Stars
13Forks
1未关闭 issue
TypeScript语言
2026-09-20最近推送
跨平台平台

功能简介

代码优先生成式UI,用于DSH

✅
我们的评价
推荐 — 实测可用且热门

代码优先生成式UI,用于DSH 实测能干净安装、正常启动。114+ stars,社区认可度高,是低风险选择。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

DeepSeek Harness GenUI

DSH Insights health

English | 简体中文

npm version
Node.js
Paper
dsh.so risk
License

DeepSeek Harness with an interactive day plan inline and a scientific model open in Canvas

DeepSeek Harness GenUI lets an Agent build a focused interface when a task is awkward in text. The Coding Agent writes ordinary React + TypeScript—not a component-tree DSL—and the interface can save user selections for the next Agent turn.

The result is a task-specific app that can explain a difficult relationship, collect connected choices, or continue a tool-backed workflow without asking the user to repeat their input.

Related research: EvoGenUI-Bench: Evaluating LLMs as Multi-Turn Generative UI Assistants.

Install

Requires Node.js ^22.19.0 || ^24.0.0 and a supported DeepSeek Harness Web profile.

dsh plugin --profile web add dsh-plugin-genui
dsh --profile web

v0.14 supports Inline, Canvas, fullscreen, and localhost on the tested Harness versions listed in the release notes. TUI/headless profiles are not supported. The local compiler uses WebAssembly and needs no install-script approval. Plugin users do not need Chrome or Chromium.

Where It Helps

Use an interface when the user needs to see a complex relationship or make several connected choices. Plain questions, rewriting, summaries, and simple lists should stay in prose.

Pick calendar slots

Select useful writing blocks and save them to the task. A later calendar action remains separate and permission-gated.
English interface for choosing three writing slots
Explore photosynthesis

Move four causal controls and see the limiting step change immediately.
English interactive photosynthesis model with four causal controls
Trace a code path

Turn a source-grounded CLI explanation into a local explorer of files, functions, and branches.
English source-grounded code path explorer returned from a CLI request

The Core Loop

  1. The Agent writes and builds a React + TypeScript app for the current task.
  2. The user saves meaningful values such as selections, form answers, drafts, or progress.
  3. A later Agent turn reads those values and continues the task.
  4. Connected tools and public HTTPS routes must be declared. Harness asks for task-scoped access, and undeclared calls are blocked.

Later edits update the same app. A candidate that fails the build or source checks does not replace the last working version; a crashing version is quarantined and rolled back when possible.

Inline & Canvas

Inline Canvas
An interactive code path shown inline in a DeepSeek Harness conversation The DeepSeek Harness sidebar, conversation, and code-path explorer visible together in the right-side Canvas
A compact control or focused choice. More room without covering the conversation.

Inline, Canvas, fullscreen, and localhost are different surfaces over the same task state.

Try It

Start a new Web session and paste a prompt:

Plan a Saturday route with a museum, a riverside garden, and dinner. Build an
interface where I can change the times and make the garden optional.
Build an interactive double-slit experiment. Let me change wavelength, slit
spacing, and screen distance and see the interference pattern update.

After saving something in the interface, ask:

What did I just choose in the interface? Continue from the saved result.

The useful proof is not only that an interface appears—it is that the next Agent turn can continue from the interaction.

Why Code-First

Component-schema renderers are usually better for predictable cards, tables, charts, and forms. This plugin is for structures that cannot be known in advance: simulations, spatial tools, source explorers, and multi-step task apps whose saved result must continue the same Harness task.

The trade-off is deliberate: generated code is more expressive than a fixed component catalog, while this project remains DeepSeek Harness-specific rather than a cross-client UI protocol. See dsh-genui, dsh-visualize, A2UI, and MCP Apps for related approaches.

DESIGN.md

Open Settings → Plugins → Plugin configuration to choose automatic design selection, use material-3, apple-human-interface, or shadcn-ui, or import a custom DESIGN.md. The file controls visual language, not page structure; React remains free to implement the interaction the task needs.

Safety

Generated code runs in an opaque-origin sandbox. A trusted parent keeps the real task capability token and brokers only saved state, declared tools, and declared credential-free public HTTPS routes. MCP credentials never enter generated code. Temporary links and grants expire after 7 days, as does task state 7 days after its last update.

This boundary protects host credentials and capabilities, but it cannot make malicious code safe to trust with data already authorized for it to read. Do not put secrets in generated-app state or grant access to data the app should not display. See Security for the threat model.

Development

Building from source requires pnpm 11:

pnpm install
pnpm run typecheck
pnpm run build
pnpm test
pnpm run package:plugin

Acceptance scenarios · Release notes · Contributing · MIT

Listed on dsh-market · dsh.so · awesome-dsh-plugin · dsh.plus

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 deepseek-harness-genui」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:pengyue-polaron/deepseek-harness-genui

Headless(CLI)profile:

dsh plugin --profile headless add github:pengyue-polaron/deepseek-harness-genui

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7797 个插件 →