dsh plugin CLI

CLI 使用指南

把目录里选好的插件装进本地 Harness:安装、锁定、生效、批量导入一条龙。

dsh-hub CLI

官方命令行工具 @dsh-ai/cli 可以在终端里直接搜索目录、查看信号,并一键执行从网站导出的安装计划:

dsh-hubshell
npm install -g @dsh-ai/cli

dsh-hub search agent memory --sort stars   # 搜索目录
dsh-hub info hindsight#coding-agents       # 查看信号与安装命令
dsh-hub install <name> --run               # 安装单个插件
dsh-hub apply dsh-plugin-stack.json --run  # 执行导出的安装计划

手动安装插件

站点上每个插件的「复制命令」都会给出可直接执行的安装命令。三种来源对应三种写法:

installshell
# NPM 包
dsh plugin --profile web add dsh-status-rotator

# GitHub 仓库(支持 owner/repo 或完整 URL)
dsh plugin --profile web add github:vectorize-io/hindsight#coding-agents

# Release tarball
dsh plugin --profile web add https://example.com/releases/plugin-1.2.0.tgz
参数类型 / 默认说明
--profile <name>string · web安装到哪个 Harness profile
--pin <commit|version>string · —固定到具体 commit 或版本,生产环境建议使用
--dry-runflag只解析并打印将要安装的内容,不落盘

让插件生效

安装后需要刷新配置并重启对应 profile:

applyshell
dsh --profile web --dump-config
# 然后重启该 profile 的 Harness 进程

查看与管理

manageshell
# 已安装列表
dsh plugin --profile web list

# 更新 / 移除
dsh plugin --profile web update dsh-status-rotator
dsh plugin --profile web remove dsh-status-rotator

批量安装组合

在站点上把插件收藏进「我的组合」,然后用「复制安装计划」一次拿到所有命令; 或「导出 JSON」得到 dsh-plugin-stack.json,配合 jq 批量安装:

stackshell
jq -r '.plugins[].install' dsh-plugin-stack.json | sh
dsh --profile web --dump-config

安全提示

插件会以你的本机权限运行第三方代码。安装前查看源码仓库,生产环境用 --pin 固定 commit;本目录的「精选收录」只核对可安装性与描述准确性,不等于安全审计。