ycr40/dsh-prolong-memory

ycr40★ 2JavaScriptLast synced: 2026-08-20

Open on GitHub

PRO-LONG-style programmatic memory plugin for DeepSeek Harness (DSH): appends every durable session event to a per-workspace log.txt the agent retrieves with grep/python. Built-in write probe, /prolong status command, permission-deny counter, and a reproducible compaction A/B experiment.

README excerpt

dsh-prolong-memory 中文文档 Programmatic memory for DeepSeek Harness (DSH): every durable session event is appended to a structured log.txt in the workspace, and the agent retrieves it programmatically with grep / Python. No subagents, no vector search. Built-in self-diagnostics : a write probe, a /prolong status command, and a permission-deny counter — so when a permission/sandbox plugin restricts this plugin, you can immediately tell host-side log writes being blocked apart from agent retrieval calls being denied . Why Long-horizon agent sessions lose detail to context compaction. DSH's built-in summarizer is faithful to information that was explicitly marked as important , but operational detail that nobody flagged in advance — exact command lines, exit codes, file paths, error text — gets framed away. This plugin keeps a verbatim, greppable record of everything durable, and teaches the agent (via a small system-prompt section) to consult it when context feels missing. This was verified with a reproducible A/B experiment (experiments/compaction-ab): scenario plugin ON plugin OFF facts explicitly marked "remember this" 6/6 6/6 (DSH summary suffices — plugin is redundant here) facts b…

View full README on GitHub →
Agentsdsh-plugindsh-pluginsagentsearch

Category