DeepSeek Harness Plugin: nikolors/dsh-screen-memory

Introduction

When building tools for agents, you often encounter this requirement: allowing an Agent to “remember” the current screen content on demand during task execution and revisit it in subsequent steps. This capability is very useful for debugging, auditing, or any scenario requiring visual context.

Existing approaches typically require developers to write their own screenshot, storage, and retrieval logic, or to rely on third-party tools and manually stitch together the call chain. DSH’s philosophy is “everything is a plugin,” reducing integration costs through modular capabilities. nikolors/dsh-screen-memory is a memory-type plugin for DeepSeek Harness that encapsulates “screen memory” as a tool that can be started and stopped on demand, implemented as a short circular frame buffer.

Plugin Overview

  • Name: nikolors/dsh-screen-memory
  • Maintainer: Nikolors
  • Category: Memory
  • Platform: Windows
  • License: MIT
  • Core value: Provides an on-demand, short circular frame buffer in the DSH environment, supporting retrieval of screen content from “one minute ago.” Defaults to one frame per second with 60 frames retained, and does not continuously occupy disk resources in the background.

Core Features

This plugin provides three tool functions for controlling and querying the screen frame buffer:

  • screen_memory_start(interval, keep): Starts screen recording. interval controls the sampling interval (default 1 second), and keep controls the number of frames retained (default 60 frames). It only works while invoked and does not continuously consume resources in the background.
  • screen_memory_stop: Stops screen recording.
  • screen_memory_latest(count): Returns a list of file paths for the most recent N frames, with newer frames listed first.

By combining these three functions, you can “enable memory” on demand within an Agent’s workflow and “look back” when needed.

Installation and Activation

  1. Ensure Python is installed in your environment and install the Pillow dependency (e.g., pip install pillow).
  2. Obtain the screen recording script screen_roll.py. This script is hosted in the dsh-eyes-ru repository — you can pull it from there or implement it yourself.
  3. In the DSH interface, navigate to Plugins → Add plugin, and select nikolors/dsh-screen-memory.
  4. In the plugin’s configuration fields (cordis.patch.yml), specify the path to the Python executable and the path to screen_roll.py to complete installation and activation.

Typical Usage

Below is an example (pseudocode) of enabling and using this plugin within a DSH workflow:

  1. At the beginning of the workflow, call screen_memory_start to begin screen recording:
   screen_memory_start(1, 60)

This means sampling once per second and retaining 60 frames in a circular buffer.

  1. Perform operations that require “remembering the screen” (e.g., interacting with desktop applications, opening documents, etc.).

  2. In a subsequent step, use screen_memory_latest to retrieve the paths of the most recent N frames for the Agent to view or further process:

   screen_memory_latest(5)
  1. When done, call screen_memory_stop to stop recording:
   screen_memory_stop()

Use Cases and Notes

This plugin is well-suited for scenarios where you need to “review the screen” on demand within an agent workflow, such as:
- Verifying whether the Agent opened the correct interface after a particular step;
- Recording the visual context of the Agent’s interactions with external applications;
- Retaining screen snapshots of critical steps during debugging and auditing.

Notes:
- The plugin runs with the permissions of the current DSH process. Ensure that the script and dependencies are from trusted sources. It is recommended to review the source code and license before installation.
- The plugin depends on Python and the screen recording script. Make sure the environment and script paths are correctly configured.

Summary

nikolors/dsh-screen-memory provides a lightweight screen memory capability: start on demand, automatic circular buffering, retrieve on demand, with no continuous background resource consumption. Through simple tool invocations, you can add visual memory capabilities to your Agent within a DSH workflow.

For more information and source code, visit:
- Skill Community Directory: https://www.skillhub.cn/plugins/Nikolors/dsh-screen-memory
- GitHub Repository: https://github.com/Nikolors/dsh-screen-memory

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

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

Xiaoye