Introduction¶
DeepSeek Harness (DSH) is responsible for local Agent sessions, tool permissions, and runtime context; RabiRoute, on the other hand, holds business state such as persona, plans, memory, and channel delivery. If these two systems operate in silos, developers often have to switch back and forth between the Codex client and DSH, or manually write HTTP calls in DSH to invoke the Manager. This makes it difficult to reliably inject “which plan the current session is following” into the model context.
Below is an introduction to the community plugin dsh-rabiroute-agent (maintainer vb2250158, current package version 0.13.40, MIT License). It connects DSH sessions to RabiRoute’s managed tasks, messages, plans, and memory interfaces without launching a separate Runtime or forwarding to Codex. The business contract aligns with Codex, while sessions and tools remain held by DSH.
What is this¶
dsh-rabiroute-agent is an open-source DSH plugin categorized as a workflow. Its positioning in the README is to connect DSH sessions to RabiRoute’s managed tasks, messages, plans, and memory interfaces. The business source of truth remains in Rabi; the plugin handles the DSH-side connection, tool registration, UI slots, and model context assembly.
Runtime Requirements: This release requires DSH 0.2.1-alpha.1 or a compatible 0.2 series (see docs/dsh-0.2-compatibility.md in the repository for details).
- Directory Page: SkillHub - dsh-rabiroute-agent (Community directory, no official affiliation with DeepSeek / High-Flyer)
- Source Code & Documentation: github.com/vb2250158/dsh-rabiroute-agent
Core Features¶
The following capabilities are derived from the README and package descriptions, summarized by usage path.
Rabi Tools & Connection¶
The plugin registers three categories of tools to DSH (since 0.13.22, the Manager API whitelist is no longer maintained; current and future Rabi interfaces can be invoked via the Manager tool):
rabiroute_agent_threads: Find, read, create, resume Agent threads, and send official replies, etc.rabiroute_agent_send: Send messages to channels or other personas, preserving delivery receipts.rabiroute_manager_api: Generic Manager HTTP invocation. The plugin remains responsible for same-origin paths, Host discovery, identity verification, and preventing automatic replay.
The rabiHost service provides inspect(signal) and start(signal) to read local Host status or activate it explicitly. The discovery logic uses the configured hostExecutable, the environment variable DSH_RABI_HOST_EXECUTABLE, or cached paths; it does not scan the disk. The verification path is written to $DSH_HOME/plugins/dsh-rabiroute-agent/host-location.json by default.
Connection and Degradation Strategy (0.8.0): Normal business requests require /meta to satisfy liveness, readiness, and identity consistency. A precise GET /meta can still be used for diagnostics even if the core is not ready. When managerBaseUrl is empty, it is dynamically discovered via Host status --json; when non-empty, it represents the full HTTP(S) origin of an explicit Manager.
DSH Native Agent Hooks¶
agentHooksEnabled is enabled by default, listening for session entry, user submission, pre/post tool execution, and turn end. Automation rules are configured in RabiRoute under “Persona → Automation → Agent Hooks”; it does not read Codex configuration or launch other Agents. Context injection, tool rejection, and “Continue Processing” returned by the Manager are executed by DSH, with “Continue Processing” limited to once per turn.
DSH logs are written as plugin:dsh-rabiroute-agent/hook-invoked and hook-result for statistics starting from dsh-hook-insights 0.2.0 (excluding raw bodies or tool arguments). After installation, you must restart DSH and refresh the page for new turns to generate records.
Since 0.13.38, Context Snapshots are supported upon disconnection (requires the host to call rabiAgentHooks.requireBinding and select allowCachedContext). Snapshots are stored in $DSH_HOME/plugins/dsh-rabiroute-agent/hook-context-cache.json by default; they contain private context and should not be included in Git or shared configurations.
Plans, Sidebar, and Session Display¶
- Plan Context (0.9.5): When user messages enter the model, a summary of the bound plan (title, status, steps, progress, and
rabiroute_manager_apidetails) is attached via the officialsystemPrompt.context.planContextEnableddefaults to true. - Workspace Rabi Plan Popup: When the workspace matches the route persona, a Rabi button appears to the right of the title. The list relies on
POST /api/roles/:roleId/plans/queryand the host sidebar slot. The popup also provides “Check Progress” and “Advance Settings” (rules are saved by persona workspace; auto-advance is off by default). - Session Plan Status Tags (0.13.18): In grouped/tiled/search lists, a persistent plan status tag appears to the left of the session text; “Multiple Plans” is shown when multiple plans are bound. The host requires the Session Row Extension Patch included in the package.
- Plan Material Archiving (0.10.0): Screenshots and files can be automatically archived to the bound plan. See
PLAN-RESOURCES.mdin the repository for details.
Session Modes¶
- Rabi Assistant Mode: Upon installation,
rabi-assistantis automatically registered and selectable in the session menu. It opens the aforementioned Rabi tools while retaining officialweb_searchandweb_fetch. It assembles DSH official compression and tool result trimming. - Message Processing Mode (
message-processing): Provides only the three categories of Rabi tools to the model. It usestools.guardto reject non-Rabi tools such as Shell, files, and sub-Agents. It is suitable for sessions focused on “receiving messages, delivering to channels, and following plans and tasks.” Select it in the mode menu for new sessions; sessions with existing messages cannot switch modes. Before enabling, copy the two YAML files from the package’spresets/message-processing/to.agent-presets/message-processing/in the DSH Home, or addpresets/toagent-presets.config.roots(check for existing presets with the same name first; user configurations are not overwritten).
Other UI capabilities include: optional proactive-answer.message Q&A cards, TTS via POST /rabiroute/speech, and “Locate Agent” for non-DSH sources handed to RabiRoute to launch the client window. The README emphasizes: Source code testing and isolated connection verification cannot replace the acceptance testing of Hooks and real business delivery after installation in a production environment.
Installation & Activation¶
Install via DSH “Settings → My Plugins” or the official entry point using a fetchable fixed Git commit (replace <commit> with the actual commit):
pnpm dsh plugin --profile web add --save-exact github:vb2250158/dsh-rabiroute-agent#<commit>
Explanation of what this step does: It installs the plugin package with an exact version pin under the specified profile (web in the example). --save-exact writes to the lock file, facilitating future verification of the actual loaded version.
Recommendations after installation:
- Use the actual local DSH Home and profile. The package registers configuration layers via
dsh.bundleand does not modify official source code. - After active tasks end, reload via the managed entry point and verify the loaded version and tool schemas.
- Restart DSH and refresh the page (Hook logs, TTS, and some UI features depend on this step).
If Message Processing Mode is required, copy the preset YAMLs (see previous section) after the plugin installation is complete, and select “Message Processing Mode” for new sessions.
Typical Usage¶
Configuring Manager and Host¶
Example cordis.patch.yml for the current profile (from README):
- id: rabiroute-agent
config:
managerBaseUrl: ""
hostExecutable: ""
enforceAgentCommunication: true
requestTimeoutMs: 60000
managerBaseUrlleft empty: Each operation discovers the current Manager address via Host and verifies/meta.hostExecutable: For non-Windows or unconventional installations, explicitly specify the Host executable; when empty, Windows can derive it based onLOCALAPPDATA.requestTimeoutMs: Budget for the entire operation, default 60000 ms (1–120 seconds).
Machine-specific values are stored only locally and are not added to shared patches.
Updating Plans via Manager Tools¶
Example call format for rabiroute_manager_api given in the README (you must read the current interface documentation and ETag yourself before writing; this example is not execution authorization):
{
"method": "PATCH",
"path": "/api/roles/example-role/plans/example-plan",
"bodyJson": "{\"currentStep\":\"Updated based on actual evidence\"}",
"requestHeadersJson": "{\"If-Match\":\"\\\"revision-from-get\\\"\",\"Idempotency-Key\":\"stable-operation-id\"}"
}
Minimal Real Acceptance Path: After installation and reload, execute GET /meta using formal tools within a session to verify Host identity, then perform business read/write as needed. Isolated configuration checks cannot prove that Hooks or channel delivery are functioning correctly.
Hook Automation¶
After configuring “Agent Hook” rules in the RabiRoute admin panel, DSH will invoke the Manager at corresponding lifecycle stages. You can use dsh-hook-insights to view hook-invoked / hook-result statistics. The results of “Continue Processing” and tool rejections are subject to DSH permissions; failed or pending verification states will not trigger automatic re-sending of write operations.
Use Cases & Notes¶
Who is it for
- Users already using RabiRoute to manage persona, plans, memory, and channels, who wish to develop and debug Agents in DSH using the same set of business contracts.
- Users needing visible plan status in the session list, sidebar, or system prompt, rather than manually pasting plan summaries every time.
- Users needing a dedicated session that “only goes through Rabi APIs” (Message Processing Mode) or a Rabi Assistant Mode with web access capabilities.
Important to Know
- The plugin runs with the current DSH process permissions. Before installation, you should read the source code and MIT License, and understand that the tools can reach local Host, Manager, and business interfaces within the scope of Rabi authorization.
- Business data and authorization are subject to Rabi; the plugin does not automatically replay failed writes. Timeouts or identity changes will retain an “Uncertain” status.
hook-context-cache.json,host-location.json, etc., are local private files. Do not commit them to Git or shared configuration repositories.- When accessing DSH from another machine, the embedded Rabi plan iframe may be unavailable (README has explained loopback and Electron
file://limitations). - The SkillHub directory page is a community collection. Installation commands and versions are subject to the GitHub README and fixed commits. Do not use undocumented command spellings.
Conclusion¶
dsh-rabiroute-agent connects RabiRoute’s plans, tasks, memory, and Hook automation to the DSH session layer while retaining DSH’s control over tools and runtime. If your workflow is already centered on Rabi, it provides a verifiable bridging path, rather than a second set of Agent Runtime.
- Community Directory: https://www.skillhub.cn/plugins/vb2250158/dsh-rabiroute-agent
- Source Code & Full Documentation: https://github.com/vb2250158/dsh-rabiroute-agent