How xmanrui/dsh-im works
DSH-IM is a DeepSeek Harness plugin that connects IM bots and an AI Office Connector to a local Harness. The user configures bots and channel behavior in the plugin settings; the host-side channel integrations manage connections and message handling, with Harness sessions producing replies back through the messaging channels. The README also describes multi-bot management and channel-specific features such as voice, streaming, QR setup, and callbacks. Edges are limited to relationships documented in the README or visible in indexed imports; unsampled channel internals are represented at directory level.
Main entry points: index.js Settings UI · host/channels Channel host adapters · src/channels IM channel runtimes · context-enhancement.js Context settings
Components 19
Plugin settings
- Settings UI
plugin-src/client/index.js - Channel settings
plugin-src/client/channels - Workspace editor
plugin-src/client/workspace-editor.js - Context settings
plugin-src/client/context-enhancement.js - Agent presets
plugin-src/client/agent-preset.js - Bot aliases
plugin-src/client/bot-alias.js
Plugin host
- Host registration
plugin-src/host/index.mjs - Management RPC
plugin-src/management-rpc.mjs - Channel host adapters
plugin-src/host/channels - Delivery service
plugin-src/host/delivery-service.mjs
Messaging channels
- AI Office connector
src/channels/office - IM channel runtimes
src/channels
Shared capabilities
- Connection diagnostics
src/channels/shared/connection-error.mjs - Connection tests
src/channels/shared/connection-test.mjs - Message failure handling
src/channels/shared/message-failure.mjs - Host localization
src/channels/shared/i18n.mjs - Context enhancement config
src/channels/shared/context-enhancement.mjs
Other components
- Operator
- DeepSeek Harness
Connections 19
- Operator → Settings UI: configures
README.md - Settings UI → Channel settings: presents
plugin-src/client/index.js - Operator → Workspace editor: sets workspace
- Operator → Context settings: sets context
- Operator → Agent presets: selects preset
- Operator → Bot aliases: edits alias
- Settings UI → Management RPC: requests management
plugin-src/client/index.js - Management RPC → Host registration: dispatches
plugin-src/management-rpc.mjs - Host registration → Channel host adapters: registers channels
plugin-src/host/index.mjs - Channel host adapters → IM channel runtimes: adapts channels
- Channel host adapters → AI Office connector: adapts connector
- IM channel runtimes → DeepSeek Harness: forwards messages
- DeepSeek Harness → Delivery service: provides replies
- Delivery service → IM channel runtimes: delivers replies
plugin-src/host/delivery-service.mjs - AI Office connector → DeepSeek Harness: connects outward
README.md - Connection diagnostics → Host localization: localizes errors
src/channels/shared/connection-error.mjs - Message failure handling → Connection diagnostics: extracts evidence
src/channels/shared/message-failure.mjs - Connection tests → Host localization: formats test text
src/channels/shared/connection-test.mjs - Context settings → Context enhancement config: validates settings
plugin-src/client/context-enhancement.js