deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:SmileTao/dsh-plugin-dev-skill
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
An AI Skill for developing DeepSeek Harness (dsh) plugins.
English | 中文
This project provides a knowledge-packed Skill file (SKILL.md) that teaches AI coding assistants how to write dsh plugins. When loaded into a TraeCode, Cursor, Claude Code, or any Agent Plugins v1-compatible client, it gives the AI instant access to:
It is NOT a dsh runtime plugin itself — it is a development-time knowledge asset that makes AI assistants write better dsh plugins, faster.
Writing dsh plugins requires understanding Cordis services, typed events, the session log invariant, tool execution contracts, and 15+ extension points. Without this skill, an AI assistant has to guess or hallucinate API shapes. With it, the AI gets it right the first time.
| Without skill | With skill |
|---|---|
Hallucinated ctx.registerTool() |
Correct ctx.tools.register(defineTool({...})) |
| Wrong event names | Correct tools/pre-execute waterfall |
Missing inject field |
Correct export const inject = ['tools'] |
| Impure UI presenters | Pure presentCall / presentResult |
| Manual load-order hacks | Declarative inject dependency |
Copy the skills/dsh-plugin-dev/ directory to your project's .trae/skills/ folder:
cp -r skills/dsh-plugin-dev /your/project/.trae/skills/
The skill auto-triggers when you ask the AI about dsh plugins.
Copy skills/dsh-plugin-dev/SKILL.md to your project's .agents/skills/dsh-plugin-dev/SKILL.md or equivalent skills directory.
Read skills/dsh-plugin-dev/SKILL.md directly as a cheat sheet.
dsh-plugin-dev-skill/
├── README.md # This file
├── LICENSE # MIT
├── .gitignore
├── skills/
│ └── dsh-plugin-dev/
│ └── SKILL.md # The core skill file (knowledge base)
├── examples/
│ ├── tool-plugin/
│ │ ├── index.ts # Example: JSON formatter tool
│ │ └── cordis.yml # Plugin loading config
│ ├── hook-plugin/
│ │ └── index.ts # Example: Safety-gate permission hook
│ └── llm-adapter/
│ └── index.ts # Example: Custom LLM provider adapter
└── docs/
├── architecture-zh.md # dsh 架构速览(中文)
└── quickstart-zh.md # 快速上手(中文)
| Goal | Mechanism |
|---|---|
| Add a model provider | ctx.llm.registerAdapter() |
| Add a model-facing tool | ctx.tools.register(defineTool({...})) |
| Permission gate / policy | tools/pre-execute waterfall |
| Add a human command | ctx.commands.register() |
| Background work | ctx.jobs.start() |
| Filesystem access/policy | ctx.fs provider or fs/* events |
| Sandbox confinement | ctx.sandbox backend |
| Intercept request/tool/turn | agent/* or tools/* events |
| Inject model-facing context | agent.inject() |
| UI / editor integration | ctx.agents + session/event |
| Durable session state | extend SessionEventMap |
| System prompt section | ctx.systemPrompt.section() |
| Scheduled tasks (cron) | timer → followup() when idle |
| MCP server adapter | discover → ctx.tools.register() |
| Session title generation | ctx.sessionTitle provider |
session/event feed and drives input back through agent.followup().tools/pre-executectx key per conceptexec.signal for cancellation@deepseek-ai/dsh 0.1.0-rc.5+Contributions are welcome! If you find an outdated API reference, missing extension point, or have a new template to add:
skills/dsh-plugin-dev/SKILL.mdexamples/本项目是一个 AI Skill 知识库,帮助 AI 编程助手正确地编写 DeepSeek Harness (dsh) 插件。
它本身不是 dsh 运行时插件,而是一个开发期的知识资产,让 AI 助手在写 dsh 插件时不再猜测 API 形状。
TraeCode / Trae IDE:
cp -r skills/dsh-plugin-dev /your/project/.trae/skills/
Cursor / Claude Code 等:
将 SKILL.md 复制到项目的 .agents/skills/ 目录下。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness-skills。