dsh-plugin-hello
by xu1132
最小 DeepSeek Harness 社区插件:注册唯一的模型可调用工具 hello,按名字问候调用者——最小完整插件示例
A minimal DeepSeek Harness community plugin. It registers a single model-callable tool, hello , that greets a caller by name. It is the smallest complete example of a…
安装
dsh plugin --profile web add github:xu1132/dsh-plugin-helloGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
A minimal DeepSeek Harness community plugin. It registers a single model-callable tool, hello, that greets a caller by name. It is the smallest complete example of a dsh-plugin bundle and a good starting point for a first contribution.
What it does
When the plugin loads, it registers the hello tool on ctx.tools:
- Input:
name(string, required) — the person to greet. - Output:
"<greeting>, <name>!"— for exampleHello, Ada!.
The greeting prefix is configurable and defaults to Hello.
Install into a profile
dsh plugin forwards to pnpm inside the profile directory, so any pnpm install form works:
dsh plugin --profile demo add github:you/dsh-plugin-hello
The first run initializes the profile with @deepseek-ai/dsh-base, links this package, and appends it to the profile's dsh.profile.bundles because package.json declares dsh.bundle. A git install fetches sources, so pnpm runs the prepare script to build lib/ from src/. pnpm 10+ refuses that script until it is allowlisted; dsh prints the exact allowBuilds entry to copy into the profile's pnpm-workspace.yaml. Verify the composed layer, then boot:
dsh --profile demo --dump-config # shows a "# == dsh-plugin-hello" layer
dsh --profile demo
Ask the model: Use the hello tool to greet Ada. It calls hello and receives Hello, Ada!.
Configure
Set a custom greeting by overriding the row in the profile's cordis.patch.yml:
- id: hello
name: dsh-plugin-hello
config:
greeting: Howdy
Invalid configuration fails the load.
Development
pnpm install
pnpm run typecheck
pnpm run build # emits lib/index.js and lib/index.d.ts
pnpm run test
Structure
hello/
├── package.json # bundle manifest (dsh.bundle), scripts, deps
├── cordis.patch.yml # the configuration layer the bundle inserts
├── src/index.ts # the plugin: name / inject / Config / apply
├── tests/hello.spec.ts
├── tsconfig.json
└── vitest.config.ts
License
原始 README: https://github.com/xu1132/dsh-plugin-hello/blob/main/README.md ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent