DeepSeek Harness 插件

dsh-git-memory

Git-backed, reviewable long-term context for DeepSeek Harness.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
starfishwrx/dsh-git-memory
最近更新
2026年8月15日
分类
记忆
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/starfishwrx/dsh-git-memory
插件名:dsh-git-memory
作者:starfishwrx

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

DSH Git Memory

![CI](https://github.com/starfishwrx/dsh-git-memory/actions/workflows/ci.yml) ![License: MIT](LICENSE)

Git-backed, reviewable long-term context for DeepSeek Harness.

> Status: compatibility spike / pre-alpha. The current release proves the DSH > integration seams and deliberately does not store user memory yet.

Product direction

DSH Git Memory is being built around one trust invariant:

> One controlled memory transaction equals one Git commit.

The intended product gives DeepSeek Harness useful context on day one, then accumulates source-backed memory during normal use. Accepted memory stays local, diffable, reviewable, and revertible.

What works today

  • Installable DSH bundle with a dsh.bundle manifest.
  • Stable dynamic context registered through ctx.systemPrompt.context().
  • Metadata-only observation of session/event.
  • A direct human command: /memory status.
  • A read-only model tool: memory_status.
  • Windows and Ubuntu CI.
  • No transcript persistence, no background model calls, and no memory writes.

The spike records only aggregate event counts and timestamps in process memory. It never retains message or tool-result content.

Quick start from source

Prerequisites:

  • Node.js 24 or newer.
  • pnpm 11.
  • DeepSeek Harness 0.1.0-rc.6.
git clone https://github.com/starfishwrx/dsh-git-memory.git
cd dsh-git-memory
pnpm install
pnpm verify
dsh plugin --profile web add .
dsh --profile web --dump-config

Start the Web profile, then run:

/memory status

The model can also call:

memory_status

This package has not been published to npm yet. GitHub dependency installs run the package's prepare build and therefore require explicit pnpm allowBuilds permission. Pin a commit when testing a source install.

Planned user experience

1. /memory setup gathers basic profile, project, goal, preference, boundary, and consent information. 2. A confirmed onboarding draft becomes an auditable baseline commit. 3. Normal DSH sessions generate bounded, redacted memory candidates. 4. Review mode lets the user approve, edit, or reject candidates. 5. Conservative automation can be enabled only after an initial trust period. 6. DSH receives a bounded dynamic context snapshot; detailed recall uses memory_search.

See [the roadmap](docs/ROADMAP.md) and [architecture](docs/ARCHITECTURE.md) for the delivery plan.

Safety posture

  • Managed repositories will live under $DSH_HOME/git-memory, not inside a

user's source repository.

  • Memory tools will not accept arbitrary filesystem destinations.
  • Sensitive values such as credentials, private keys, cookies, and tokens are

hard-denied.

  • Raw session transcripts are not copied into the memory Git history.
  • Git remotes, pushing, and writes outside managed repositories are disabled by

default.

  • Model-inferred observations can never silently become global user policy.

Read [PRIVACY.md](PRIVACY.md), [THREAT_MODEL.md](THREAT_MODEL.md), and [the target data model](docs/DATA_MODEL.md) before contributing storage code.

Development

pnpm install
pnpm typecheck
pnpm test
pnpm build

pnpm verify runs the stable CI checks. Maintainers with DSH installed can set DSH_BIN to the absolute path of DSH's lib/bin.js and run pnpm smoke:dsh. The smoke script installs the built bundle into a disposable profile, boots DSH on an ephemeral port, checks the Web response, and cleans up.

The only module allowed to depend directly on unstable DSH APIs in future releases is the DSH adapter layer. The compatibility spike is intentionally small while that boundary is proven.

Compatibility

The current tested line is DeepSeek Harness 0.1.0-rc.6 on Node.js 24. DSH is evolving quickly, so plugin and Harness versions are deliberately pinned. See [COMPATIBILITY.md](COMPATIBILITY.md).

Contributing

Issues and focused pull requests are welcome. Please read [CONTRIBUTING.md](CONTRIBUTING.md). Never use real transcripts, credentials, personal paths, or private user context in fixtures.

License

MIT. See [LICENSE](LICENSE).