Introduction¶
In DeepSeek Harness (DSH), when performing multi-agent collaboration, steer delivery (ctx.subagents.sendMessage) between adjacent Agents can accomplish “sending a message to a parent or child.” However, the harness itself acknowledges several gaps: messages can only be delivered to direct parent-child relationships, there is no persistent mailbox, no CC or priority support, no receipts or threads, and the delivery path typically only contains a single senderSessionId.
If you need to verify “who sent to whom, how many hops were made, whether there is a receipt, and whether it is closed”事后 (post-hoc), but do not want to create a new set of event types in the session logs, you need to add a traceable collaboration ledger on top of the existing API. Below is the community plugin dsh-report-ledger (Maintainer: stone-brick, Category: Workflow): it uses front matter thumbnails + on-disk body storage + an append-only delivery path to make “reporting” a first-class primitive between agents, and adds a “Report” timeline tab to the session interface of the web profile.
What is this¶
dsh-report-ledger is a DSH plugin: it turns “reporting” into a first-class interaction primitive between agents, providing a traceable delivery path ledger, receipts / closure / amendments, and a session timeline view on the browser side. Data is saved locally in $DSH_HOME/report-ledger/ by default (can be overridden via the DSH_REPORT_LEDGER_ROOT environment variable) and is not uploaded to external services.
The plugin aligns with DSH 0.2.0-rc.2 (compatibility in package.json is >=0.2.0-rc.2 <0.3.0); 0.1.5-rc.3 is no longer supported. The current release version is 0.2.2, License MIT, Node >=20.
- Directory Page: https://www.skillhub.cn/plugins/stone-brick/dsh-report-ledger
- Source Code: https://github.com/stone-brick/dsh-report-ledger
The DSH ecosystem philosophy is “everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Core Design: Two-Layer Structure and Delivery Path¶
In the model context, a report only exposes a front matter thumbnail (subject, sender/recipient, CC, co-authors, hops, etc.), while the body remains in the ledger file and is read on demand via report_read; if the body is too long, the tool may only return the header and file location, and the harness’s read paginates the rest.
The delivery path is the authoritative source: every operation appends a hop to R-xxxx.route.jsonl (append-only). Fields such as to / cc / authors / hops / last are derived from the hop stream and cached; the next hop will re-correct them, so the ledger will not show recipients that do not exist in the history. The pending delivery set is also derived from the hop stream; direct recipients (to) are woken up via steer, while CC recipients (cc) enter the context via inject but are not woken up. Non-resident recipients are not directly rejected but remain in the pending delivery set to be delivered once the corresponding Agent is created.
Ledger layout example:
$DSH_HOME/report-ledger/
reports/R-0001.md # front matter + body
reports/R-0001.route.jsonl # one line per hop
Core Features¶
Host-Side Tools¶
After installation, the host half of any profile provides eleven report_* tools, plus peer_list / peer_start (twelve are visible when workspace-related capabilities are enabled; report_lease is not present by default). Workspace features are disabled by default; in this case, tools will not show the worktree parameter.
| Tool | Function |
|---|---|
report_author |
Start a report, can send to and cc simultaneously, can associate with a parent report via parent |
report_contribute |
Append a section as a co-author |
report_send |
Direct send to more agents (wake up) |
report_cc |
CC (do not wake up) |
report_forward |
Forward, or use mode:"copy" as a reference copy |
report_read |
Read thumbnail, delivery path, and body (reading counts as a hop but does not advance list sorting) |
report_list |
Filter thumbnail list by session / status / task / worktree etc. |
report_ack |
Acknowledgment |
report_amend |
Amend thumbnail or body (changes are recorded in the hop stream; closed reports will be automatically reopened) |
report_close |
Close (only initiator or co-author) |
report_lease / report_release |
Claim / release existing git checkouts (only when workspace is enabled) |
The lifecycle status is open → acked → closed. Acknowledgment means “received”; closing means “the matter is finished”. If a contribution, direct send, CC, or forward occurs after closure, a reopened entry is recorded before the activity itself.
report_amend replaces thumbnail fields and records the before/after in the hop; the body defaults to appending ### amendment, but can also explicitly replace it with replace_body: true and note it in the hop. Recipients and co-authors cannot be modified via amend; only additional hops can be appended.
Browser Half (web profile)¶
Under the web profile, there is an extra “Report” tab in the session header: timeline, status chips, search, thread jumping, and in-place expandable delivery paths. If the workspace is enabled, report rows will have a checkout marker.
The web server registers three read-only GET routes for the browser to read the ledger; guards only allow loopback peers and loopback Host (see the repository README “Guards and Trust Assumptions” for details).
Optional Workspace¶
Disabled by default. When enabled, peer_start / report_author with worktree:true can assign an independent git worktree to the report, with the branch name derived from the report number and subject slug. When not needed, there are no git calls, and the tool surface does not expose the worktree parameter.
The peer tool peer_start creates a new root session in your own working directory; it is the only capability of this plugin that adds active agents, constrained by maxPeersPerAgent (default 8).
Installation and Activation¶
Official installation command (writes to the profile’s node_modules and automatically appends dsh.profile.bundles via dsh.bundle.patch, no manual config editing required):
dsh plugin --profile web add dsh-report-ledger
Restart the profile (e.g., dsh web) after installation to take effect. You can also verify if it is installed without starting:
dsh --profile web --dump-config # The report-ledger line should appear in the config tree
Uninstall:
dsh plugin --profile web remove dsh-report-ledger
If GitHub is inaccessible in China, the maintainer syncs source code and releases on Gitee (gitee.com/stone_zhan/dsh-report-ledger). You can download the pre-built dsh-report-ledger-0.2.2.tgz and then:
dsh plugin --profile web add ./dsh-report-ledger-0.2.2.tgz
Or:
dsh plugin --profile web add git+https://gitee.com/stone_zhan/dsh-report-ledger.git
If the npm release path goes through an npm mirror, the line above dsh plugin --profile web add dsh-report-ledger is often the easiest way in China.
Typical Usage (Conceptual Flow)¶
Below is a collaboration chain that can be reproduced by cross-referencing the tool table; specific parameters depend on each tool’s schema.
- Create a report with
report_author, filling insubject, directto, optionalcc, andparentto associate with an upstream report if necessary. - The recipient uses
report_readto open the full text and theroute.jsonlhop stream; parties who need to be informed but not woken up have already received the thumbnail context via CC. - Use
report_ackwhen a closed loop is needed; the initiator or co-author usesreport_closewhen the work is done. - Use
report_amendwhen the subject or body is wrong, preserving “what was changed from what to what” in the hop stream instead of silently altering history. - Use
report_listto get an overview by session or status during long-term collaboration; view the timeline and delivery path in the “Report” tab of the web GUI.
Upward reporting and downward dispatching correspond to the direct send semantics of report_send; transferring to other lines uses report_forward.
Applicable Scenarios and Notes¶
Who it is for: Teams or individuals who need formal collaboration with “subjects, recipients, CC, receipts, and closure” between DSH multi-agents, and want the delivery path to be auditable and persistent across process restarts.
Permissions and Trust: The plugin reads and writes the local ledger with the current DSH process permissions; you should read the source code and the MIT license before installation to confirm that cordis.patch.yml and tool behaviors match your deployment strategy. Browser data reading relies on the web server’s loopback guard assumption; do not equate untrusted remote access with the local GUI.
Compatibility: The host half is also available in headless profiles (only missing the three HTTP endpoints when there is no web server). The browser half relies on @deepseek-ai/dsh-client-ui-primitives in the shell’s frozen module table; it uses the same set of components as the built-in conversation view of DSH 0.2.0-rc.2.
Data Location: The ledger consists of local files only; set DSH_REPORT_LEDGER_ROOT when migrating or performing isolated tests.
Conclusion¶
dsh-report-ledger does not replace DSH’s adjacent steer but adds the “report” collaboration primitive on top of it using a file ledger and append-only hop stream: the context only contains bounded front matter, while the full body and audit trail remain in $DSH_HOME/report-ledger/. If you work in the web profile, after installation and restart, you can directly view the timeline and path in the session “Report” tab.
- Plugin Directory: https://www.skillhub.cn/plugins/stone-brick/dsh-report-ledger
- GitHub: https://github.com/stone-brick/dsh-report-ledger