Preface¶
DeepSeek Harness (DSH) supports a plugin-based architecture, but standard agent plugins typically manifest as single-prompt Agents. When facing complex engineering tasks, a single role often struggles to cover implementation, review, and memory. The rolebox plugin transforms a single coding agent into a configured engineering team through role definitions and graph protocols, with each role possessing independent prompts, models, skills, and permissions.
What Is This¶
rolebox is a universal Agent plugin that supports DeepSeek Harness (DSH), OpenCode, Pi, and Codex. It defines specialized roles based on YAML and leverages the Graph v3 protocol to implement declarative workflows. The plugin comes with 18 built-in role definitions and supports persistent memory (SQLite + FTS5) as well as multi-agent orchestration.
Core Features¶
- Multi-role Definition: Define custom AI agent roles based on YAML, with each role configurable with independent prompts, models, skills, permissions, and maximum steps.
- Graph v3 Protocol: Use
graph_declareto declare workflows (nodes and edges) and submit results viagraph_submit_outcome. Workflows are declarative, not prompt chains. - Persistent Memory: Use SQLite + FTS5 to store memories; decisions, conventions, and experiences are searchable after session restarts.
- Tool Ecosystem: Built-in 32 LSP tools, hashline editing tools, and 32 desktop control tools (such as
computer_screenshot,computer_click, etc.). - Visual Monitoring: Provides a Rolebox monitor pane and TUI visualization interface for viewing and filtering the 18 loaded roles.
Installation and Activation¶
This plugin is installed via npm. Before installation, ensure that the DSH version meets the requirements.
- Verify the DSH version:
dsh --version, must be >= 0.2.1-alpha.3. - Install the npm package:
npm install rolebox. - The plugin will automatically load the 18 built-in roles, which can be viewed and filtered in DSH settings.
Typical Usage¶
Declaring workflows using graph_declare is the core operation. Below are the typical steps:
- Load Skills and Read Protocol: The Agent loads the required skills and reads the Graph v3 protocol reference.
- Declare Workflow: Use the
graph_declarecommand to define nodes. For example, define ataskstore-remove-completedtask with two nodes:change(implement modifications) andreview(verification), and declare the number of iterations. - Run Baseline Checks: Run
bun testandtsc --noEmitbefore or during declaration to establish a baseline. - Submit Results: Submit execution results via
graph_submit_outcome. Only accepted results can advance the workflow. - View Roles: Open the Rolebox panel in DSH settings to view the 18 loaded roles currently selected.
Use Cases and Notes¶
- Use Cases: Complex coding tasks requiring multi-role collaboration (e.g., separating implementers and reviewers), persistent context memory, or strictly defined workflow boundaries.
- Important Notes:
- Declarative Execution: Workflows advance through
graph_declareandgraph_submit_outcome; the Agent cannot advance progress solely through free-text reports. - Loop Limitations: Loops are bounded and must be declared.
- Permission Risks: The plugin runs with the current DSH process permissions. Please review the source code and license (
github/license/EricMoin/rolebox) before installing and using.
- Declarative Execution: Workflows advance through
Conclusion¶
Through YAML definitions and the Graph v3 protocol, rolebox provides DSH with the capability to build from a single Agent to an engineering team. If you need fine-grained control over workflows, role division, and persistent memory, this plugin offers an actionable solution.