Introduction¶
When running agents with DSH, the conversation continuously injects context such as AGENTS.md prompts, skill catalogs, recalled sessions, and runtime environment snapshots. These contents are written into the session as context nodes, but the DSH chat view does not render this type of row by default. Starting with 0.1.7-rc.2, only context nodes that carry tool addition/removal blocks (tool-addition / tool-removal) are shown. To verify “what was actually injected at that time,” users often have to switch to the trajectory view, which is inconvenient for everyday chat comparison.
Below is the community client plugin dsh-reveal-context (maintainer azazo1): without modifying DSH source code, it redraws these hidden injection rows into the Chat transcript by using an additional conversation definition and a custom node kind, and supports selective disabling by source kind.
What is this¶
dsh-reveal-context is a client plugin for DSH (the web and desktop clients share the same web application), current package version 0.1.0, licensed under MIT. It solves the pain point: non-tool context injection rows are invisible in the chat interface.
Implementation approach (excerpted from the project README): DSH filters context nodes in isVisibleChatNode; this plugin registers another conversation definition that matches the same batch of user/message events but produces nodes with the kind reveal-context, thus passing visibility checks, and the plugin’s own renderer draws them as a row. The engine keys each event’s context by (definition.kind, id), coexisting with DSH’s built-in definitions without interfering. ChatNodeDataMap is DSH’s public merge-extensible payload registry, and adding a new node kind is within the design.
Core Features¶
Verified capabilities:
-
Show hidden injection rows in Chat
Includes AGENTS.md-type notifications, skill catalogs, recalled sessions, runtime snapshots, etc. (consistent with the package description). -
Master switch
You can disable “Show hidden injection rows” in settings; when off, the conversation reverts to DSH default behavior. -
Exclude by source kind
Configure “Sources to keep hidden”: onesource.kindper line, or comma-separated; leave empty to exclude none. Environment snapshots (form: 'snapshot') replace the previous one with the next, each occupying a row; if you find them noisy, add the corresponding kind to the exclusion list. -
Preferences take effect immediately
Preferences are stored in the profile’s patch layer and apply without a page reload.
Installation and Activation¶
Web Client¶
Install into the web profile:
dsh plugin --profile web add azazo1/dsh-reveal-context
After installation, restart dsh web and refresh the browser page.
Desktop Client¶
Install into the desktop profile. The Electron app exclusively manages this profile, and the dsh plugin command line refuses --profile desktop. In the in-app Plugin Manager, enter the same package name azazo1/dsh-reveal-context (or a local directory) as the web command. Restart the app and refresh the window after installation.
Engine Version¶
Requires @deepseek-ai/dsh-* not lower than 0.2.0-rc.1, and still within 0.2.x (peerDependencies and devDependencies are >=0.2.0-rc.1 <0.3.0). Earlier engine lines cannot install the current plugin version. Web and desktop use the same package; no separate builds are needed.
Typical Usage¶
- Complete installation and restart/refresh as described above.
- Open Settings → Plugins → dsh-reveal-context and adjust as needed:
| Field | Description |
|---|---|
| Show hidden injection rows | Master switch, on by default |
| Sources to keep hidden | One source.kind per line, comma-separated allowed; empty means exclude none |
- Return to Chat to compare with injection content previously visible only in the trajectory; if snapshot rows like
runtime-contextare too numerous, add theirsource.kindto “Sources to keep hidden.”
Use Cases and Considerations¶
Who it’s for: DSH / agent developers who need to audit or debug DSH-injected contexts (rule files, skill catalogs, session recall, runtime snapshots, etc.) directly within the chat stream.
Boundaries (as stated in the README):
- Covers only
context-type nodes onuser/messagethat originate from non-user sources;system-prompt,permissioncommand lines are out of scope. developer/message(e.g., tool addition/removal by the agent loop) is out of scope;contextcontaining tool addition/removal blocks is already shown by DSH itself, and matching them again by this plugin may result in an extra row.- The row renderer relies on the persisted event’s
contentandsource; the node shape follows DSH’s current internal conventions and has no external API guarantee; the plugin may need updates after major DSH upgrades.
Security and trust: The plugin runs under the current DSH process permissions and injects client UI and conversation logic. Before installing, read the GitHub repository source and the MIT license, and judge whether it suits your environment.
The DSH ecosystem emphasizes “everything is a plugin”; the community directory’s plugin page on SkillHub is an independent site and is not officially affiliated with DeepSeek or 幻方.
Conclusion¶
dsh-reveal-context makes the previously hidden context injection rows in DSH’s Chat visible again, with per-kind opt-out to control noise. If you frequently switch between the trajectory and chat just to inspect injected content, you can install it into the web profile via the official command, or install the same package name in the desktop client through the in-app Plugin Manager.
- Directory page: https://www.skillhub.cn/plugins/azazo1/dsh-reveal-context
- Source and docs: https://github.com/azazo1/dsh-reveal-context