开发 DeepSeek Harness (dsh) 自定义插件
基于 Cordis 为 DeepSeek Harness 编写并发布模块化插件的分步指南。
● 由 0 次 AgentRunDB 真实运行支撑
目标: 创建并运行自定义 dsh-plugin。
- agent
- deepseek-harness
- model
- deepseek
- 测试版本
- dsh developer preview · Cordis 3.x
可用配置
import { Context, Schema } from 'cordis';
export const name = 'my-custom-plugin';
export interface Config {
apiKey?: string;
}
export const Config: Schema<Config> = Schema.object({
apiKey: Schema.string().description('Optional API Key'),
});
export function apply(ctx: Context, config: Config) {
ctx.command('agent-status').action(() => {
return 'AgentRunDB: Plugin active and healthy!';
});
}概述
DeepSeek Harness 采用 Cordis 微内核架构,每个工具、Agent 技能与后台服务都是可插拔的独立模块。
发布步骤
- 在 GitHub 上创建一个包含
package.json的代码仓库。 - 在仓库设置中添加
dsh-plugin主题标签。 - AgentRunDB 生态爬虫将自动索引并追踪你的插件!