Introduction¶
DeepSeek Harness (DSH) binds “which agent to select, which tools to attach, and how to write system prompts” together via Agent presets. Common practices in official preset cards and settings revolve around configuring a single Eli Mode entity: personality, knowledge base injection, and tool toggles are all completed within the same interface. When you need multiple roles in parallel—for example, one focused on writing and one on retrieval, each with different checked knowledge base entries and MCP connections—you have to repeatedly modify the preset directory or combination text. This is prone to accidentally modifying Eli Mode’s built-in files and makes it inconvenient to “select an Agent first, then modify its parameters” within the Web settings.
Below is an introduction to the community plugin dsh-agent-manager (repository let-mi-think/agent-manager). It adds an Agent Management section to the DSH Web settings and coexists with dsh-eli-mode without modifying any Eli Mode files. Knowledge base read/write still reuses Eli Mode’s eliKb service; if this optional dependency is not installed, the knowledge base-related UI will be disabled, but other configurations remain fully functional.
What is this¶
dsh-agent-manager is a multi-Agent management and configuration plugin for DeepSeek Harness, maintained by let-mi-think. The npm package name is dsh-agent-manager, the current version is 0.1.0, and the license is MIT.
The core problem it solves is: without touching Eli Mode, it allows separate configuration of personality prompts, knowledge base injection templates and selectable entries, toggles for four knowledge base tools, and restricting available MCP connections per Agent. It also supports creating a new Agent by copying a blueprint from an existing preset, which becomes visible in the preset selector for new sessions.
Core Features¶
Settings Section & Preset Cards¶
- Adds an Agent Management section in DSH settings: The flow is select an Agent first, then configure it (adding a “multi-Agent selection” step compared to the monolithic Eli Mode configuration).
- Overlays an Edit button on the official “Agent Presets” card to jump into that Agent’s configuration (implemented via DOM injection; the button may not appear if the official card structure changes, but the standalone section remains available).
Per-Agent Configuration Options¶
- Personality prompt, knowledge base injection prompt template.
- Selectable knowledge base entry list: Checked entries are injected into the prompt, while the body content is read on-demand by
kb_read. The format for each line in the list is- <entry_path> — <title>, consistent with the eli-mode directory page. - Independent toggles for the four knowledge base tools (enforced at runtime; disabled tools may still appear in the list, but calls will be rejected with an explanation).
- Available MCP connections: No restriction by default (
mcpRestrictis false); when enabled, access is allowed based on the checkedmcpServers. If the selection is empty, all MCP tools are disabled for that Agent.
New Agent Creation¶
Select an existing preset as a blueprint; the plugin copies its directory and rewrites the combination file, writing a sidecar .agent-manager.json (managedBy / blueprintId / createdAt) to ~/.dsh/.agent-presets/<id>/. Deletion is only allowed for presets carrying this marker and located in the specified directory, preventing accidental deletion of existing presets like eli-mode or wechat.
Knowledge Base Import & Indexing¶
Reuses ~/.dsh/eli-knowledge and the same wiki, without re-implementing the storage layer. The panel provides Import Knowledge Base (enter absolute path → scan preview → batch import) and Rebuild Index Only; since eli-kb does not automatically rebuild the root index index.md when files are directly copied to wiki/, the plugin supplements this entry point.
Key import rules: Only recognizes .md / .markdown; skips index.md at all levels, hidden directories, node_modules, etc.; skips existing entries with the same name by default (overwrite can be checked); if the first line of the source file is not a # Title, a # <filename> line is added. This is because the upstream kb.js discards the first line when reading, which would otherwise make the body permanently unreadable.
Whether entries with Chinese or non-[a-z0-9-] segment names can be read depends on whether the normalizeId patch has been applied to dsh-eli-mode’s lib/kb.js; without the patch, entries may be “listable but unreadable.” When using Chinese entries, ensure Eli Mode uses a patched version.
MCP Restriction per Agent¶
The data source is the DSH tool registry (ctx.tools.schemas()), not the MCP connector’s own status. It uses ctx.tools.restrict({ deny }) in the preset plane to remove tools from unchecked connections; subscribes to tools/registered to recalculate after connection changes; if restrict() fails, it only logs a warning and remains unrestricted to avoid preset mount failure.
Installation & Activation¶
Host requirements: dsh 0.1.0-rc.7 (see dsh.engines.dsh in the package), Node ^22.19.0 || ^24.0.0. The client artifact lib/client.js is distributed with the package, requiring no build upon installation.
Execute under the Web profile:
dsh plugin --profile web add dsh-agent-manager
After installation, restart dsh web, and the Agent Management section will appear in the settings. If dsh-eli-mode is not installed, knowledge base listing, import, and rebuild index functions will be disabled.
Typical Usage¶
1. Configure an Agent in Web¶
After restarting Web, open Settings → Agent Management → Select the target Agent → Edit personality, knowledge base injection template, checked entries, and tool toggles. If MCP restriction is needed, enable restriction and check the allowed connections.
2. Access Edit from Preset Card¶
Click Edit on the Agent preset list card (if the button does not appear, you can still access the same configuration via the Agent Management section).
3. Create New Agent¶
Select “New” in Agent Management, specify a blueprint preset and a new id; the new Agent appears in the preset selector and takes effect in new sessions.
4. Batch Import Knowledge Base¶
Click Import Knowledge Base in the Agent Management header → Enter the absolute path of the source directory (optional destination prefix, e.g., tripartite/...) → Scan to view + Added / = Exists and skip reasons → Import N items. eliKb.regenerateAllIndexes() is called automatically after import.
5. Maintain Index or Preview Injection when DSH is Not Running¶
In the plugin package directory (the example uses a PowerShell environment; use node with the same path on Linux/macOS):
node scripts/reindex-kb.mjs
node scripts/preview-injection.mjs [presetId]
If existing wiki files have content loss due to the first line not being a title, you can preview or fix it in the package directory:
node scripts/fix-title-lines.mjs
node scripts/fix-title-lines.mjs --apply
Configuration is persisted in the agent-manager section of ~/.dsh/settings.yaml, shaped as agents: { <presetId>: { ... } }, without being written into the preset combination text.
Use Cases & Notes¶
Who is it for: Teams and individual developers already using multi-Agent presets in DSH Web who need per-Agent personality and knowledge base lists, want to restrict MCP by role, or need to batch initialize Eli knowledge bases from a directory.
Permissions & Security: The plugin reads/writes ~/.dsh/settings.yaml, ~/.dsh/.agent-presets/, and (when Eli Mode is available) the knowledge base directory with the current dsh process permissions. Please review the GitHub source code and the MIT license yourself before installation to ensure compliance with your deployment strategy.
Ecosystem Note: The DSH community plugin directory (e.g., skillhub.cn) is maintained by the community and has no official affiliation with DeepSeek / High-Flyer. The installation commands and behavior in this article are based on the repository README.
Known Limitations (Summary): The preset card edit button relies on DOM selectors; creating a new Agent writes directly to the preset directory with only line-by-line modification and YAML validation; knowledge base import is a copy operation, not bidirectional sync; deleting entries via eli-kb remove() may leave behind empty shell directories containing only index.md.
Conclusion¶
dsh-agent-manager consolidates “multi-Agent selection + per-Agent configuration” into the DSH Web settings and aligns with Eli Mode knowledge bases and the official MCP tool registration mechanism. It is suitable for long-term maintenance of multiple roles within the Harness without modifying the Eli Mode core.
- Plugin Directory Page: https://www.skillhub.cn/plugins/let-mi-think/agent-manager
- Source Code & Full Documentation: https://github.com/let-mi-think/agent-manager