Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心
界面增强 #artifact#cordis#deepseek-harness#dsh#dsh-plugin

dsh-artifact

dsh 的 Claude Code 风格 artifacts:写出自包含 HTML 的 artifact 工具、内置撰写技能、侧边栏入口与带沙箱预览的浏览器。

jannchie @jannchie ⬇ 1 ★ 0 main

安装

dsh plugin --profile web add github:jannchie/dsh-artifact
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

dsh 的 Claude Code 风格 artifacts:写出自包含 HTML 的 artifact 工具、内置撰写技能、侧边栏入口与带沙箱预览的浏览器。

该插件未提供要点说明,请参考仓库 README。

artifactcordisdeepseek-harnessdshdsh-plugin
  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/jannchie/dsh-artifact
许可证MIT
主要语言main
下载量1
GitHub 星标0
最近推送2026-08-16
收录日期2026-09-19
分类界面增强

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

# dsh-artifact

English | [中文](README.zh.md)

[![npm](https://img.shields.io/npm/v/dsh-artifact)](https://www.npmjs.com/package/dsh-artifact)
[![license](https://img.shields.io/npm/l/dsh-artifact)](./LICENSE)

Artifacts for [DeepSeek Harness](https://github.com/deepseek-ai): the agent writes self-contained HTML documents, and you read them in a tab beside the conversation.

![The artifact browser rendering a generated cheat sheet](https://raw.githubusercontent.com/Jannchie/dsh-artifact/main/images/en.png)

Without it, a report the agent produces either scrolls out of the chat or lands in your repository as a stray `.html` file nobody opens again. An artifact is stored outside the workspace, listed newest-first, and rendered in place — so it survives the conversation that produced it and follows you across projects.

## Install

```sh
dsh plugin --profile web add dsh-artifact
```

Restart `dsh web` afterwards: plugins are composed at process start.

## Getting started

Ask the agent for something worth keeping:

> Summarize this week's benchmark results as a report.

It calls the `artifact` tool, and the document appears under the **Artifacts** tab. Click through to read it, `‹` to go back.

The agent also gets a `writing-artifacts` skill, so the HTML it produces is a real document — one reading column, semantic headings, tables that scroll on their own, a palette that follows your theme — rather than an app shell wrapped around three paragraphs.

## The `artifact` tool

| Command | Arguments | What it does |
|---|---|---|
| `list` | — | Every artifact, newest first |
| `read` | `path` | One artifact's full HTML |
| `write` | `path`, `content` | Create or replace an artifact |
| `delete` | `path` | Remove an artifact |

`path` is relative to the store and the `.html` suffix is optional, so `write path:"q3-report"` produces `q3-report.html`. Writes are confined to the store: a path that escapes it is rejected rather than saved somewhere the browser cannot list.

## Where artifacts live

`$DSH_HOME/artifacts` — by default `~/.dsh/artifacts`, beside the sessions and storages the harness already keeps there.

Deliberately not the workspace: artifacts follow the person, not the project, and a repository should not fill up with generated HTML.

## Rendering

Artifacts render in an iframe with `allow-scripts` and nothing else — **no network, no same-origin**. External stylesheets, CDN scripts, webfonts, `fetch`, `localStorage` and cookies are all unavailable, so an artifact inlines everything it needs. The bundled skill teaches this; you only notice it if you hand-write one.

The preview injects the app's live color tokens, so artifacts follow your theme — including a theme another plugin overrode.

## Configuration

Override in your profile's `cordis.patch.yml`:

```yaml
- id: artifact
  config:
    # Artifact directory. Omit or null for $DSH_HOME/artifacts.
    root: /absolute/path/to/artifacts
    # Maximum characters accepted in one write.
    maxArtifactChars: 400000
    # Inject the system-prompt section about when to write an artifact.
    promptSection: true
    # Register the bundled writing-artifacts skill.
    skill: true
    # Colors handed to previewed artifacts, layered over the live theme.
    # A key without a leading `--` is read as an alias token.
    palette:
      state-business-primary: '#e0552b'
```

## Notes

Implementation notes for other plugin authors — the slot contracts, the two-envelope wire protocol, and four traps worth knowing about — are in [NOTES.md](NOTES.md).

## License

MIT

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。