dsh-zcode-scribe: Read-Only Memory Room and Path Security Mechanisms of DeepSeek Harness

Preface

DeepSeek Harness (DSH) adopts a plugin-based architecture, and providing long-term memory for agents is a critical component within it. ZCode offers a memory model based on extraction sub-agents and markdown memory rooms, but dsh-zcode-scribe has added further security hardening on top of this foundation. It not only inherits the architectural concepts of memory management but also introduces strict path security rules to prevent traversal attacks, Unicode spoofing, and NTFS alternate data streams.

Plugin Positioning

  • Name: dsh-zcode-scribe
  • Author: BOWLUNA
  • Category: Memory
  • Open Source License: MIT
  • Core Value: Provides DSH with a read-only memory room, the scribe_recall tool, and a set of path security rules that reject directory traversal, Unicode spoofing, and NTFS alternate data stream injection.

Core Features

  1. Read-only Memory Room: Markdown-based persistent storage; indexes are never silently truncated.
  2. scribe_recall Tool: A registered tool that executes in the host program for retrieving information from the memory room.
  3. Path Security Rules: Includes 52 test cases that strictly validate paths, rejecting directory traversal, Unicode spoofing, and NTFS alternate data stream attacks.

Installation and Prerequisites

Before installation, please ensure the necessary prerequisites are installed:

  • @deepseek-ai/dsh-tools (version range >=0.1.5-rc.2 <0.2.0 || >=0.1.6-alpha.1 <0.2.0)
  • @deepseek-ai/schemastery (version ^3.18.2)

The installation command is as follows:

dsh plugin --profile web add dsh-zcode-scribe

Typical Usage

The plugin includes a test suite and a boot-check tool that can be used to verify installation and functional status:

node test/run.mjs
node tools/boot-check.mjs --port 32050

Use Cases and Notes

  • Current Status: The plugin is in an early stage and currently operates in read-only mode.
  • Implemented: The scribe_recall tool is available and has been verified in real sessions.
  • Not Implemented: Write, extraction, and narrowing writer features are not yet available, restricted by milestone M0.
  • Functional Impact: The current installation only changes what the model can request (via registered tools), and does not yet change what the model knows (prompts have not been injected yet).
  • Architectural Inheritance: The memory model originates from ZCode, including extraction sub-agents and manifests, but does not require a full ZCode installation as a dependency.

Conclusion

dsh-zcode-scribe provides DeepSeek Harness with a secure and extensible long-term memory foundation. Through strict path security checks and read-only mode, it reduces the risks of memory injection and path traversal. With the achievement of milestone M0, write and extraction capabilities will be unlocked in subsequent releases.

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

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

Xiaoye