Introduction¶
The philosophy of DeepSeek Harness (DSH) is “everything is a plugin”. When you need to manage multiple Agents (e.g., CEO, employees, project groups) and build complete collaboration workflows (tasks, approvals, scheduling), manual orchestration becomes costly. The dsh-onecompany plugin introduces a “one-person company” model, placing you in the board seat while Agents act as employees, collaborating through a set of standardized company services.
Core Features¶
This plugin provides a complete company-level collaboration framework for DSH, mainly including:
- Multi-Agent Orchestration: Supports session management for roles such as CEO, project groups, and the lobby.
- Task Management: Supports the full lifecycle of task creation, claiming, commenting, and status updates.
- Approval Workflows: Covers approval flows for scenarios such as spending, launching, high-risk operations, and hiring.
- Scheduled Tasks: Supports cron expressions, interval scheduling (
every), and one-time scheduling (at). - Company Mailbox: A unified inbox/outbox with categorization for messages, questions, requests, and reports.
- Work Logs: Tracks work hours and token consumption, aggregated by employee and date.
- Document Library (ACL): Project-based access control.
- Employee Tools: A set of scoped tools registered for employees (e.g.,
company_org,company_mail_send,company_task_create, etc.).
Installation and Activation¶
The plugin is fully self-contained, does not depend on any third-party plugins, and only relies on DSH official core services.
- Run the following command to install the plugin:
dsh plugin --profile web add "github:xiazhi88/dsh-onecompany"
-
After installation, restart the DSH Web service (
dsh --profile web). -
After restart, a “One-Person Company” entry will appear at the bottom of the sidebar. Click it to enter the standalone full-page panel.
Typical Usage¶
After installation and activation, you can perform the following operations in a session or panel:
- View Status: Use
/company statusto check the current company’s operational status. - Assign Work: Use
/company assign <employee> <task>or directly@employee_namein any session. - Approvals: Use
/company approve|reject <id>in the panel or session to handle approval requests. - Hiring: Create employees on the “Organization” page in the panel. The session agent is only created when the employee receives a message for the first time (lazy start).
Workflow Example:
Board creates a task → Delivered to mailbox → Employee claims and executes → Set to review → Report → Acceptance.
Configuration and Data¶
The plugin configuration file is located at cordis.patch.yml. Key configuration items are as follows:
- insert:
- id: onecompany
name: dsh-onecompany
config:
companyRoot: '' # 公司根目录;空 = $DSH_HOME/onecompany
companyName: 一人公司
tickMs: 30000 # 调度/投递周期
maxResidentAgents: 8 # 常驻员工上限
defaultDailyTokenCap: 5000000
approvalsRequired: [hire, spend, strategy, danger]
timeZone: Asia/Shanghai
autoProvision: true # 启动时自动补建 CEO 与项目群会话
kickoffOnCreate: true # 新建会话后发开场消息
reportDelivery: record # digest = CEO 转简报;record = 只归档(不叫醒 agent)
Domain data is stored in the onecompany v1 storage domain, containing tables such as agents, projects, docs, tasks, comments, messages, approvals, schedules, and worklogs.
Notes¶
- Dependencies: Does not depend on any third-party plugins, only on official DSH core services (
agents/tools/commands, etc.). - Deactivation Mechanism: When deactivated, scheduling and mailbox delivery stop immediately, and resident employees are unloaded. However, data, sessions, and the document library are preserved as-is, and functionality resumes upon re-activation.
- Lazy Start: The session agent for an employee is only created when the employee receives a message for the first time.
- Report Routing:
digest(default): Delivered to the project group/lobby, where the CEO forwards it as a briefing.record: Only archives without waking the agent.
- Task Session Modes:
- Default is
per-taskmode: Each task gets a one-time execution session that stops after completion (but the session is retained). residentmode: A permanent workstation mode with continuity, but context will grow over time.
- Default is
- Work Logs: Aggregates token/work hours from child sessions based on
parentSessionlineage.
Summary¶
dsh-onecompany provides a practical multi-Agent orchestration solution for DSH. By treating Agents as company employees and combining tasks, approvals, mailboxes, and document libraries, it builds a collaborative environment that simulates a real company. It is suitable for users who want to team up and process-oriented their Agents.
- GitHub Repository: https://github.com/xiazhi88/dsh-onecompany
- Plugin Directory: https://www.skillhub.cn/plugins/xiazhi88/dsh-onecompany