DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Farm — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-farm

Farm

DSH 服务农场:注册、启动、停止、重启和监视长期运行的项目服务。左侧边栏入口 + 概览抽屉(按工作区分组、实时日志跟踪、搜索、导出);为代理提供 farm_status/start/stop/restart/logs/register 工具;每个工作区可选择使用 farm.yaml 声明。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-farm@0.1.0
README兼容性版本

兼容性与来源证明

Farm 以 dsh-farm 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/2

版本

0.1.0stable
2026/9/2
最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
41.2 kB
文件数
5
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/9/11
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

README

dsh-farm 🚜

DSH service farm plugin: register, start, stop, restart and watch long-running project services — the agent can do it through tools, you can do it through the web UI.

Install

dsh plugin --profile <name> add /path/to/dsh-farm

Restart the DSH web surface afterwards.

What you get

  • UI: a 🚜 button at the sidebar foot with a running-services badge; clicking it opens the overview drawer — services grouped by workspace with status dots, start/stop/restart buttons, and a log view with live follow (SSE), substring search and download/export.

  • Agent tools: farm_status / farm_start / farm_stop / farm_restart / farm_logs(service, tail, search) / farm_register(name, workspace, command, ...). Say "帮我把 dev server 注册到 farm 并启动" in a session and the agent does the rest.

  • farm.yaml (optional, per workspace, commit-friendly):

    services:
      dev-server:
        command: pnpm dev
        # cwd: sub/dir        # optional, resolved against the workspace
        autoRestart: true
        env:
          PORT: 5173
    

    Declared services appear in the UI and farm_status automatically (source: yaml); the file is always the source of truth.

Behavior notes

  • Services are spawned as children of the DSH process (/bin/sh -c), so they are reclaimed when DSH exits. Dynamic registrations persist across restarts in $DSH_HOME/storages/dsh-farm/services.json (state does not).
  • Stop = SIGTERM, then SIGKILL after a 3s grace.
  • autoRestart retries an abnormal exit up to 5 times with exponential backoff (1s → 16s).
  • Logs: 5000-line in-memory ring per service plus an append-only file under $DSH_HOME/storages/dsh-farm/logs/<id>.log.

HTTP API (localhost only, prefix /farm)

RouteMeaning
GET /farm/services?workspace=list (farm.yaml entries merged in)
POST /farm/servicesregister/update a dynamic service
GET /farm/services/:idone service
DELETE /farm/services/:idunregister (stops if running)
POST /farm/services/:id/start|stop|restartlifecycle
GET /farm/services/:id/logs?tail=&search=&export=1logs, export=1 downloads
GET /farm/services/:id/logs/streamSSE live follow

Config (override in the profile patch)

- id: farm
  config:
    dataDir: /abs/path   # default $DSH_HOME/storages/dsh-farm
    ringLines: 5000
    stopGraceMs: 3000