dsh-fount-reality: DSH Background Screen Observation and Autonomous Activation

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

  1. idle / burst: idleFps and burstFps only determine the capture frequency; whether to wake up depends on screen changes and stability (see configuration below).
  2. Wake after stabilization: The background Agent is launched only after passing the novelty/stable thresholds and the consecutive stable sample count.
  3. Throttling: minWakeGapMs, motionCooldownMs, etc., limit the wake-up interval and cooldown after dynamic screen content.
  4. 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_status will 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. agentPreset can 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

  1. Install as described above and set enabled to true in cordis.patch.yml, adjusting FPS and thresholds as needed.
  2. In DSH, confirm sampling and error status via reality_status; use reality_control to pause monitoring if needed.
  3. 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:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye