dsh-expert-ai
DeepSeek Harness 的可配置专家 Host / Client 插件
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:elonnzhang/dsh-expert-ai说明文档
阅读完整 README ↗Usage
1. Configure experts
Open Settings → 专家 after the Web Profile starts. Add or edit a record with:
The plugin UI follows the Harness locale and provides complete English and Simplified Chinese dictionaries. Switching the application language updates Settings and the Chat Panel without translating user-authored names, descriptions, or Persona content.
- ID: lowercase letters, numbers, and hyphens, for example
zjh - Name: the display name, for example
张剑辉 - Description: a short responsibility summary
- Category:
business,science,culture, orcustom - Custom category: recommended when
Categoryiscustom - Tags: searchable capabilities such as
储能系统,工程化 - Persona: the initial identity and response rules; converted to a managed Agent file when Agent is empty
- Enabled: only enabled records reach the
expertIdentityservice and the Chat Panel
You can also import an Agent Markdown file. Its YAML frontmatter is ignored and its Markdown body is the identity. A file selected through the browser is imported into the managed file because the browser does not expose a path that the Host can reopen. When no external path is entered, the Persona is written to:
$DSH_HOME/expert-ai//agents/.md
Or choose Import → From the expert method library, enter a mimeographs branch or tag (default
main), load the catalog, and pick an expert. The import pins AGENTS.md, SKILL.md, LICENSE and
the catalog-declared references/*.md to the resolved commit under
$DSH_HOME/expert-ai/mimeographs//. An existing copy for the same slug is reused, regardless of the requested commit. Catalog and ref resolutions are cached in the same directory, so a cached
catalog remains usable while GitHub is unavailable. Imported experts can read these local references
through read_expert_reference.
An external Agent file remains the sole source of identity and is not copied or overwritten by the plugin.
The settings document is the Profile's Cordis patch, not $DSH_HOME/settings.yaml:
$DSH_HOME/profiles/
/cordis.patch.yml
Saving on the settings page rewrites the expert-ai row of that file.
2. Chat with an expert
Open Chat Panel in the sidebar and choose an expert to start a new conversation with that expert. The plugin creates an isolated project under $DSH_HOME/expert-ai/projects/, then creates a Session and binds the expert's persona on the Host:
- The Session receives a record-specific system prompt through Host binding; the opening message is written by the plugin and does not repeat the full persona.
- The Session is forced to the read-only file sandbox: files can be read, not changed.
- The binding is saved under
$DSH_HOME/expert-ai/sessions/, so reopening the Session after a Host restart keeps its persona.
3. Consult one expert from a conversation
Type @ in the composer to search by expert ID or name. Picking an expert inserts @ in the current conversation, matching ds-bot. You can also type @ or @ directly, including names with spaces. The mention stays model-visible text and the primary agent decides whether a consultation helps. consult_expert(id, question) starts a persona subagent for that expert on the Harness spawn provider and returns its answer. The expert answers once, without follow-up questions.
4. Update the plugin
After publishing a new GitHub revision, build the plugin before pushing. Then update it from the Harness checkout:
pnpm dsh plugin --profile web update dsh-expert-ai
pnpm dsh web --port 3080
If the profile still uses an old linked installation, remove and add it again:
pnpm dsh plugin --profile web remove dsh-expert-ai
pnpm dsh plugin --profile web add https://github.com/elonnzhang/dsh-expert-ai.git