DeepSHPlugins
dsh-file-memory 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-file-memory

記憶與知識TypeScriptMIT

檔案型工作記憶:memorize/recall 把關鍵前提逐字儲存在會話筆記檔案,無損挺過上下文壓縮。

1 StarsICCuse 更新時間 2026-08-14
訪問 GitHub 倉庫
dsh-file-memory 專案預覽

專案介紹

中文

檔案型工作記憶:memorize/recall 把關鍵前提逐字儲存在會話筆記檔案,無損挺過上下文壓縮。

English

File-backed working memory: memorize/recall key premises verbatim in a session notes file so they survive context compaction losslessly.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
ICCuse
倉庫
ICCuse/dsh-file-memory
GitHub Stars
1
Forks
0
開發語言
TypeScript
許可證
MIT
最近推送
2026-08-14
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

49/ 100
維護活躍
81
文件與實用資訊
67
生態關注度
9
安裝便捷訊號
100
專案宣告訊號
85

關注度尚低(1);標準命令一鍵安裝。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:ICCuse/dsh-file-memory

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

@deepseek-ai/dsh-file-memory

中文 | English

File-backed working memory for long tasks. Two model-facing tools — memorize and recall — keep key premises as verbatim bytes in a session-scoped notes file inside the workspace, so they survive context compaction losslessly: a summarizer can blur or drop a fact, but a file round-trips it byte-exact.

Why

Compaction checkpoints are LLM-generated and LLM-rewritten generation after generation; the prompt-space "state document" proposals still re-summarize the previous state every pass. Files are the only lossless medium the agent already has: write once, read back exactly. This is the pragmatic complement to prompt-space compaction, usable today on the shipped compaction-basic backend.

Tools

ToolBehavior
memorize(entries)Appends verbatim deduplicated lines to <workspace>/.dsh-notes/<session>.md.
recall(query?)Reads the notes back, optionally filtered to lines containing query; caps output at maxRecallChars.

Both require an agent-backed session and a mounted fs service; they resolve the notes file relative to the session's workspace cwd (falling back to the backend default when the session has no cwd).

Config

FieldDefaultMeaning
maxRecallChars6000Recall output cap.
notesDir.dsh-notesNotes directory name inside the workspace; must be a bare directory name.

maxRecallChars must be an integer >= 1; misconfiguration throws at plugin load.

Install

Not on npm yet - install from this repository:

npm install github:ICCuse/dsh-file-memory
# or: pnpm add github:ICCuse/dsh-file-memory

Then mount the bundle (declared in package.json 'dsh.bundle'):

- id: dsh-file-memory
  name: 'dsh-file-memory'

Or, once published, 'dsh plugin --profile web add dsh-file-memory'.

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案