ycr40/dsh-prolong-memory ↗★ 1

dsh-prolong-memory

把每次会话事件追加到工作区 log.txt,供 agent 用 grep 或 python 检索。 适合希望 agent 跨会话回忆历史工作的用户;挂载后自动记录,可用 /prolong status 查看状态。

套件
dsh-prolong-memory
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年8月20日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Usage

Once mounted, no interaction is needed — every session in the profile gets a log.txt in its workspace, starting with a write-probe section. Ask the agent anything about earlier work ("what exact command failed back then?") and the prompt section steers it to grep the log.

Check plugin health at any time:

/prolong status
prolong-memory status
log file: log.txt (per-session workspace)
window: full

session 9f3c…
  path: /work/demo/log.txt
  writable=yes sections=128 lastSeq=341

denied tool calls referencing the log: 0

Configuration (cordis.yml / patch overlay)

fielddefaultmeaning
logFilelog.txtlog file name inside the workspace (path traversal rejected; misconfiguration fails loud)
logWindow00 = keep everything; N>0 = keep last N sections; -1 = disable entirely (no-log ablation)
promptOrder150system-prompt section ordering
registerPrompt / registerCommandtruetoggle the prompt section / the status command independently
denyKeep20denied-call records kept for the status report

Temporary debugging without touching the profile: dsh --profile web --patch ./overlay.yml.