Preface¶
When installing an enterprise SASE client (Yunshu/Eagleyun) on Mac, behaviors such as screenshots, keyboard monitoring, clipboard access, and file scanning often occur in the background. It is difficult for ordinary users to directly see “what the terminal is doing at this moment” from the system interface. DSH (DeepSeek Harness) splits capabilities into plugins; dsh-shuyun translates existing local logs and system TCC records into a readable log stream, displayed in the DSH top bar (optional SwiftBar menu bar). It does not intercept, close, bypass Yunshu, or send data externally.
What is this¶
- Plugin Name:
dsh-shuyun(Cordis module id, HTTP route is/api/shuyun/state) - Maintainer: tanxiaolong
- Category: admin-security (SkillHub Directory:
tanxiaolong/dsh-shuyun) - Positioning: A read-only observation tool for macOS only; collection and display are completed entirely in local memory, showing the most recent ~60 action logs. Except for three status files, it does not write to disk or upload.
Compared to directly checking log stream or the Yunshu agent logs, this plugin merges multiple evidence sources into two panels: “Currently Doing” and “Recent Actions,” and provides a persistent badge in the top bar. It is suitable for developers to glance at the terminal monitoring trends while using DSH for development.
Core Features¶
DSH Top Bar Badge (Does not depend on SwiftBar)¶
Displays a badge in the top right of the DSH window, on the same line as the date. Clicking it allows you to view “Currently Doing” and “Recent Actions.” This corresponds to the client registration in conversation.session.header.utilities (build artifact lib/client.js).
Optional macOS Menu Bar (Requires SwiftBar)¶
If the directory ~/Library/Application Support/SwiftBar/Plugins exists, the plugin will write shuyun.2s.sh; it skips if SwiftBar is not installed, without affecting the top bar or the API. To uninstall the menu bar item, you can delete the script or remove SwiftBar (the plugin will not recreate the script if the directory does not exist).
Recognized Action Types (From README list)¶
Screenshots, screen recording captures, audio recording, camera, keyboard monitoring, file scanning, clipboard reading, software inventory collection, reporting to server, etc. The correspondence between panel items and log fields can be found in the description table in the README (e.g., “Reading browser address” comes from Yunshu polling the foreground browser identifier; the log does not record the URL in plaintext).
Evidence Sources (Read-only Local)¶
| Evidence Source | Purpose |
|---|---|
macOS TCC unified logs (log stream) |
Requests for screen recording / microphone / camera / keyboard monitoring / full disk file / accessibility, filtering eagleyun / yunshu related processes |
~/Library/Logs/com.eagleyun.sase/agent/*.log |
Yunshu agent incremental logs (screenshots, clipboard, foreground app, browser window count, etc.) |
/opt/.yunshu/logs/sase.dlp.engine.log |
DLP file paths to be scanned |
Process table (ps) |
Whether daemons are online, remote assistance, etc. |
State is written to ~/Library/Application Support/shuyun/: menubar.txt, menu.txt, state.json.
HTTP Interface¶
The server entry point src/index.js exposes GET /api/shuyun/state. The collection logic is in src/collector.js and can be probed individually:
npm run probe
(Requires execution in the plugin source code directory; the main workflow uses DSH to load the plugin.)
Installation and Enablement¶
Official installation command:
dsh plugin add dsh-shuyun
After installation, restart DSH; a badge should appear to the right of the date in the top bar.
The current version in the documentation is 0.3.5 (package.json), License MIT, Node >=20, DSH Core constraint:
>=0.2.2-alpha.2 <0.3.0
Prerequisites¶
- macOS (Intel / Apple Silicon):
package.jsondeclaresos: ["darwin"], relying on/usr/bin/log,/bin/ps -axo,stat -f, etc. - DSH Desktop or
dsh webwith web service: Profiles without a web layer (headless / ACP / SDK) will not activate client injection. - Yunshu client is installed and running locally; the panel will be empty if Yunshu is not installed.
- Current user can read the Yunshu log directory; if permissions are tightened, it may display “Yunshu logs missing”.
No root is required, no TCC permissions for screen recording or accessibility are needed for the plugin, no API key is required, and collection and display do not require internet connectivity.
Post-Installation Check¶
Click the top bar badge to view the last line status:
| Display | Meaning |
|---|---|
权限日志已连接 · 云枢日志已连接 |
TCC and Yunshu logs are both available |
云枢日志缺失 |
Cannot read the agent log directory |
权限日志:unavailable |
log stream is restricted; details in tccReason |
| 「未连接」 | DSH is not running or the plugin is not started |
Typical Usage¶
- Install the plugin and restart DSH to confirm the top bar badge appears.
- Keep DSH open during daily development; click the badge when needed to view the current and recent action logs.
- If SwiftBar is installed and the Plugins directory exists, you can view it synchronously in the system menu bar; you do not need to install SwiftBar if you only need the top bar.
- When troubleshooting collection issues, compare the “Yunshu logs missing” or
tccReasonin the connection status line, then check if Yunshu is running and if the log directory permissions have been tightened by IT.
Upgrading from old package names: 0.1.x was yunshu-watch, 0.2.0 became shuyun, and 0.3.5 unified to dsh-shuyun; the new version will delete the old yunshu-watch.2s.sh in SwiftBar upon startup, and the old status directory ~/Library/Application Support/yunshu-watch/ can be manually deleted.
Applicable Scenarios and Notes¶
Suitable for: Developers or security self-check scenarios (read-only observation) on enterprise Macs where Yunshu has been deployed, who want transparent insight into terminal-side monitoring trends while using the DSH workspace.
Boundaries (as explained in README):
- TCC records permission access requests; the badge displays the “last similar action + time,” not an exact mirror of real-time recording switches.
- It is only visible when Yunshu writes logs or triggers system permission requests; if the log format changes or is cleaned up, the corresponding action will disappear, and the plugin will not fabricate records.
- Camera / Microphone may have no TCC entry when not actually in use; this is normal.
Permissions and Security: The plugin runs with the current DSH process permissions and reads local Yunshu and system logs; you should review the source code and MIT license before installing to ensure it meets company compliance requirements. The plugin does not modify Yunshu behavior but will write the aforementioned Application Support/shuyun state files locally.
Uninstall¶
Remove dsh-shuyun in DSH “Workspace → Installed”, and clean up residues:
rm -rf "$HOME/Library/Application Support/shuyun"
rm -f "$HOME/Library/Application Support/SwiftBar/Plugins/shuyun.2s.sh"
- Community Directory: https://www.skillhub.cn/plugins/tanxiaolong/dsh-shuyun
- Source Code & Documentation: https://github.com/tanxiaolong/dsh-shuyun
The DSH ecosystem emphasizes “everything is a plugin”; SkillHub is the community directory and has no official affiliation with DeepSeek / Hanxin. The value of dsh-shuyun lies in collecting scattered local evidence into readable, read-only real-time status in the top bar, facilitating alignment with the fact of “what Yunshu is doing to the terminal” within the DSH scenario, without replacing the enterprise security client itself.