How fei2411/deepseek-bot works
DS Bot is a DeepSeek Harness plugin that adds persistent Bots, group chats, and a React interface to DSH. The principal workflow is a user chatting with a Bot; Bots can coordinate with other Bots or answer through group-chat rules, using DSH sessions, models, and tools. The host also provides memory, browser access, schedules, and token-usage reporting. Relationships between the client and host are only loosely evidenced in the excerpts, so the graph avoids asserting specific API routes; several host relationships are supported by module imports or registration in the plugin entry point.
Main entry points: index.js Plugin entry · turns.js Bot sessions · tools.js Team tools · groups.js Group chats
Components 18
Plugin and interface
- Plugin entry
ds-bot/index.js - Bot interface
ds-bot/src/client/index.js - Client API
ds-bot/src/client/api.js - Usage view
ds-bot/src/client/usage-page.js
Bots and sessions
- Bot sessions
ds-bot/src/host/turns.js - Bot roster
ds-bot/src/host/roster.js - Model selection
ds-bot/src/host/models.js - Permissions
ds-bot/src/host/permissions.js
Group collaboration
- Group chats
ds-bot/src/host/groups.js - Team tools
ds-bot/src/host/tools.js - Mention parsing
ds-bot/src/shared/mentions.js
Bot capabilities and records
- Bot memory
ds-bot/src/host/memory.js - Bot browser
ds-bot/src/host/browser.js - Scheduled tasks
ds-bot/src/host/schedules.js - Usage tracking
ds-bot/src/host/usage.js - Persistent state
ds-bot/src/host/store.js
Other components
- User
- DeepSeek Harness
Connections 27
- User → Bot interface: chats with
- Bot interface → Client API: requests state
ds-bot/src/client/index.js - Client API → Plugin entry: calls plugin
- Plugin entry → DeepSeek Harness: extends
- Plugin entry → Bot sessions: installs
ds-bot/index.js - Plugin entry → Bot roster: installs
ds-bot/index.js - Plugin entry → Model selection: installs
ds-bot/index.js - Plugin entry → Permissions: installs
ds-bot/index.js - Plugin entry → Group chats: installs
ds-bot/index.js - Plugin entry → Team tools: installs
ds-bot/index.js - Plugin entry → Bot memory: installs
ds-bot/index.js - Plugin entry → Bot browser: installs
ds-bot/index.js - Plugin entry → Scheduled tasks: installs
ds-bot/index.js - Plugin entry → Usage tracking: installs
ds-bot/index.js - Bot sessions → DeepSeek Harness: uses sessions
- Bot sessions → DeepSeek Harness: uses models and tools
- Group chats → Team tools: uses
ds-bot/src/host/groups.js - Group chats → Bot sessions: dispatches turns
ds-bot/src/host/groups.js - Team tools → Mention parsing: resolves mentions
- Bot memory → Team tools: uses tool helpers
ds-bot/src/host/memory.js - Bot browser → Team tools: uses tool helpers
ds-bot/src/host/browser.js - Bot sessions → Scheduled tasks: uses schedule helpers
ds-bot/src/host/turns.js - Usage tracking → DeepSeek Harness: meters model use
- Usage view → Bot interface: renders usage
ds-bot/src/client/index.js - Usage view → DeepSeek Harness: reports tokens
- Plugin entry → Persistent state: configures state
ds-bot/index.js - DeepSeek Harness → Persistent state: stores data locally