返回目录
模型与 MCP 插件

Plastic-Memories

CCCAUCHY/Plastic-Memories

Experimental context management for DeepSeek Harness with reversible editing of the model-facing session surface.

Stars
1
Forks
0
Issues
0
更新
8 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:CCCAUCHY/Plastic-Memories

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

Plastic Memories

A context-management plugin for DeepSeek Harness (DSH): the model-visible context is a re-shapable projection of an immutable session log.

English · 中文


What it does

Plastic Memories lets a model edit how its own past appears in the current context — without deleting anything.

  • Plasticize — replace or hide a range of units (an assistant message plus its tool results). The session log keeps every original message; only the visible projection changes.
  • Generations — every successful write freezes the current context and starts a new logical generation. Any past generation can be read back by number.
  • Safety zone — users can lock units so the model cannot reshape them; touching one fails loudly.
  • Auto-hide — after a successful write, earlier noise units (failed calls, successful letter / retrospect) are collapsed automatically.

Status

  • Version 0.50.85, experimental; no stable release yet.
  • Works with any preset (the tools are registered globally).
  • Written in plain JavaScript, no runtime dependencies.

Install

# from a built tarball
dsh plugin --profile <profile> add file:/path/to/dist/dsh-plugin-plastic-memories-h0-0.50.85.tgz

# or from a staged checkout
./install-pm.sh stage
dsh plugin --profile <profile> add link:/path/to/staged/dsh-plugin-plastic-memories-h0

Restart the profile and hard-refresh the Web UI.

The three tools

Tool Purpose Shape
plasticize reshape the current context { ops: [{ positions, new_text, lock_this? }] }
retrospect read a generation (read-only) { generation, messages_position?, letters_position?, head?, tail? }
letter leave a note for future generations { text }
// replace unit 6, hide units 7–9, in one write
plasticize({
  ops: [
    { positions: "unit 6", new_text: "condensed summary" },
    { positions: "unit 7 to 9" }
  ]
})

A write lands at the next submission boundary, not at call time; a rejected write leaves a notice instead of failing silently.

Repository layout

pm-h0/            runtime source (index, engine, units, unitops, retrospect, …)
dist/             built tarballs
THEORY.md         design theory (English)
THEORY.zh.md      design theory (Chinese)

Documentation

Theory

Engineering

Tests

cd pm-h0
npm test          # 12 suites, 256 assertions
node uitest.mjs   # 103 UI assertions

The suites need a DSH checkout for the host runtime packages (cordis, dsh-session, dsh-tools). If the default path does not apply, point DSH_CHECKOUT at one:

DSH_CHECKOUT=/path/to/dsh npm test

License

MIT — see LICENSE.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin。