Introduction¶
In DeepSeek Harness (DSH), Agents typically act only when triggered by a conversation turn. If you want it to continuously “watch” the screen in a desktop environment, analyze changes automatically when noteworthy visual shifts occur, and only interrupt the user when there is specific value, you need a background observation and wake-up mechanism separated from the main chat. The community plugin dsh-fount-reality (Maintainer: win10ogod, Directory Category: Workflow) references the private Reality Channel concept from the Rika Character Pack to provide screen sampling, change detection, and an independent background Agent loop for DSH. Its tagline is: Autonomous screen attention and private background Agent loop for DeepSeek Harness. The plugin is developed for DSH 0.1.7-rc.2, 0.2.0-rc.2, and 0.2.1-alpha.1 (peer dependencies in package.json are consistent with the README).
What is this¶
dsh-fount-reality continuously samples the main screen within the DSH process, but the sampling timer does not directly start the Agent loop: it first patrols at a low FPS. Upon detecting a significant change, it briefly increases the FPS, and only wakes the independent background Agent after confirming that the new screen content is stably continuous. The background Agent analyzes the full frame, inspects its available tools and memory, and only calls reality_notify to send a desktop notification if it decides there is specific value. Routine internal analysis remains in an independent persistent session, without inserting into the original chat turn. Continuous dynamic screens (like videos) will fall back to low FPS after hitting the sampling limit and enter an explicit cooldown period.
Core Features¶
Sampling and Wake-up Strategy¶
- idle / burst:
idleFpsandburstFpsonly determine the capture frequency; whether to wake up depends on screen changes and stability (see configuration below). - Wake after stabilization: The background Agent is launched only after passing the novelty/stable thresholds and the consecutive stable sample count.
- Throttling:
minWakeGapMs,motionCooldownMs, etc., limit the wake-up interval and cooldown after dynamic screen content. - Images and Models: By default, only the current frame is kept in memory; the frame is saved via DSH’s attachment service only when waking up to hand it to the background Agent. The selected model must accept image input; otherwise,
reality_statuswill display an error, and the plugin will not switch to non-vision judgment.
Screen Capture (Desktops)¶
The capture path differs from Fount’s node-screenshots. Windows/macOS share @screen-capture/node; the Linux backend delivers the same PNG sampling data to the wake-up algorithm:
| Desktop | Capture Method | Status After Restart |
|---|---|---|
| Windows 10 1903+ | @screen-capture/node using Windows Graphics Capture |
Auto-reconnects if a desktop session exists |
| macOS 12.3+ | Same API, underlying ScreenCaptureKit | Auto-reconnects if Screen Recording permission is granted |
| Linux Wayland | wayland-screenshot resident CLI, underlying XDG ScreenCast Portal/PipeWire |
Run cast enroll --monitor once initially; Portals supporting restore tokens can restore headlessly after restart, displaying permission-required if authorization expires |
| Linux X11 | gnome-screenshot background capture |
Auto-retries if DISPLAY is readable and the command is installed |
The plugin only captures the main screen. Other platforms still require a logged-in desktop session and system authorization.
Operations and Control¶
reality_status: View operations, recent background activity, and errors.reality_control: Pause or resume monitoring within the current DSH program; pausing will also cancel currently executing background turns.- Background Agent: Uses the current DSH default model, inheriting its tool and model capabilities; the plugin does not lower its output, context, or tool limits.
agentPresetcan specify the preset used by the background Agent; if omitted, it follows the selected session’s preset or the DSH default.
Installation and Enablement¶
Install to the desired DSH profile, e.g., web:
dsh plugin --profile web add github:win10ogod/dsh-fount-reality
dsh --profile web --dump-config
The plugin defaults to enabled: false; enable it in the profile’s cordis.patch.yml, for example:
- id: fount-reality
name: dsh-fount-reality
config:
enabled: true
workspacePath: 'C:\Users\you\project'
idleFps: 0.2
burstFps: 2
noveltyThreshold: 0.06
stableThreshold: 0.025
stableSamples: 3
maxBurstSamples: 24
minWakeGapMs: 300000
motionCooldownMs: 60000
workspacePath is optional; in this case, the plugin starts after seeing a normal Agent session with a workspace.
Linux Wayland Authorization¶
You need to install wayland-screenshot and its PipeWire/Portal system dependencies first, then run the authorization once with the same DSH_HOME as DSH:
WAYLAND_SCREENSHOT_STATE_DIR="${DSH_HOME:-$HOME/.dsh}/storages/fount-reality/wayland" wayland-screenshot cast enroll --monitor
The plugin stores the restore token in this local directory and returns it to the Portal on restart to attempt a headless restore; whether it is accepted is decided by the desktop Portal.
Typical Usage and Local Verification¶
- Install as described above and set
enabledtotrueincordis.patch.yml, adjusting FPS and thresholds as needed. - In DSH, confirm sampling and error status via
reality_status; usereality_controlto pause monitoring if needed. - In the plugin source directory, execute:
npm run check
npm run check verifies sampling wake-up and DSH v4 message sources.
npm run smoke:capture
npm run smoke:capture captures a single frame on the currently logged-in desktop, outputting only dimensions and byte count without saving the image; Wayland requires prior completion of the authorization above, and this diagnostic command will not open the selector. The image buffer limit for diagnostic commands is 64 MiB, which does not affect the plugin’s formal path using DSH attachment service limits.
Verification scope recorded in README: Windows 10/11 native APIs have captured PNGs; Linux X11 gnome-screenshot has captured PNGs on a native desktop; macOS arm64 suite is installable, but the SSH session lacks Screen Recording permission, so native desktop capture is not yet completed; the Wayland restore-token flow has currently passed simulation tests and has not been tested on a real Wayland desktop.
Suitable Scenarios and Notes¶
Suitable for: Those who want to add “desktop context” to the DSH workflow without cramming every frame change into the main chat; scenarios requiring the background Agent to analyze the screen in an independent session and only notify via desktop notification when valuable.
Notes:
- The plugin runs with the permissions of the current DSH process and continuously reads the main screen; read the GitHub source and the MIT license before installing (package.json version
0.1.2, Node>=22.13.0). - The DSH ecosystem philosophy is “everything is a plugin”; the SkillHub Directory Page is a community site and has no official affiliation with DeepSeek or Hithink RoyalFlush.
- Image models, system screen recording/capture permissions, and Wayland Portal policies all affect whether normal wake-up and notification are possible.
Conclusion¶
dsh-fount-reality separates screen sampling, change detection, and the background Agent into an independent loop, and uses reality_notify to control the frequency of interruption to the user. For version and issue tracking, refer to GitHub; directory and repository links are as follows: