TMCRA-Agent-Memory

by reshuibuduo

记忆github 检测到 manifest package.json#dsh收录于 08-16

面向 DSH 与 Codex 的技术预览版本机图记忆:每轮前从用户全局与当前项目作用域召回证据,分别保存 USER 与 ASSISTANT 记录,并保留项目、会话、角色和来源信息,用于可视化图谱与带证据引用的知识页。

Technical-preview local graph memory for DSH and Codex: recalls owner-global and current-project evidence before each turn, writes USER and ASSISTANT records separately, and preserves project, session, actor, and source provenance for a visual atlas and cited knowledge pages.

安装

dsh plugin --profile web add github:reshuibuduo/TMCRA-Agent-Memory#path:/integrations/deepseek-harness-local

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

这个 DSH 插件把原生 agent/pre-step 与 session/event 生命周期接到同一台电脑上的 TMCRA。

先安装纯本地运行时,再生成共享接入配置:

powershell -ExecutionPolicy Bypass -File .\scripts\install-local.ps1
node .\integrations\local-agent-hooks\scripts\configure.mjs --runtime-config .\.tmcra\config\runtime\local-runtime.json

完成依赖、类型、生命周期测试和打包后,把插件加入指定 Harness Profile:

powershell -ExecutionPolicy Bypass -File .\scripts\install-deepseek-harness-local.ps1 `
  -PackageDirectory D:\tmcra-packages

Shell:

TMCRA_DSH_PACKAGE_DIRECTORY="$HOME/tmcra-packages" \
bash scripts/install-deepseek-harness-local.sh

脚本依次执行 npm ci、类型检查、Harness 生命周期测试、构建、npm pack 和 dsh plugin --profile web add。插件默认读取 ~/.tmcra/local-integration.json,也可以通过 configPath 指向另一份纯本地接入配置。Harness 预览版可能无法正确处理带空格或非 ASCII 字符的压缩包路径,因此打包目录必须使用短的 ASCII 路径。

每一个被 Harness 接受的人类回合都会执行:

  • 解析与其他本地 TMCRA 接入一致的项目身份;
  • 在第一次模型调用前召回用户全局与当前项目证据;
  • 以插件来源、明确不可信的数据消息注入召回内容;
  • 以 user 主体写入用户问题;
  • 用实际 Harness agent/subagent 身份写入可见回答;
  • 本地写入失败时进入 outbox,在下一回合重试。

这个包不含 TMCRA 账户、套餐、设备授权、托管作用域或生产 API 地址。

生命周期和打包内容已针对 @deepseek-ai/dsh-agent-loop 0.1.0-rc.6 验收。最后的 dsh plugin add 仍要求电脑已经安装 DSH CLI;找不到 CLI 时安装器会停止。

原始 README: https://github.com/reshuibuduo/tmcra-memory/blob/main/integrations/deepseek-harness-local/README.zh-CN.md ↗