Rolebox: Configuring Single-Encoding Agents for Engineering Teams

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_declare to declare workflows (nodes and edges) and submit results via graph_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.

  1. Verify the DSH version: dsh --version, must be >= 0.2.1-alpha.3.
  2. Install the npm package: npm install rolebox.
  3. 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:

  1. Load Skills and Read Protocol: The Agent loads the required skills and reads the Graph v3 protocol reference.
  2. Declare Workflow: Use the graph_declare command to define nodes. For example, define a taskstore-remove-completed task with two nodes: change (implement modifications) and review (verification), and declare the number of iterations.
  3. Run Baseline Checks: Run bun test and tsc --noEmit before or during declaration to establish a baseline.
  4. Submit Results: Submit execution results via graph_submit_outcome. Only accepted results can advance the workflow.
  5. 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_declare and graph_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.

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.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye