reshuibuduo/tmcra-memory

deepseek-harness-local

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

记忆agent-memoryai-agentsclaude-code

TMCRA owner-local memory for DeepSeek Harness

This DSH plugin connects the native agent/pre-step and session/event lifecycle seams to a TMCRA instance running on the same computer.

It requires the owner-local runtime and the shared integration config created by:

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

Install and test the local package, then add it to the selected 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

The installer runs npm ci, type checking, the Harness lifecycle test, the build, npm pack, and dsh plugin --profile web add. The plugin reads ~/.tmcra/local-integration.json by default. configPath can point to another owner-local integration config. DeepSeek Harness preview releases can mis-handle tarball paths containing spaces or non-ASCII characters, so the packaging directory must be a short ASCII-only path.

For every admitted human turn, the plugin:

  • resolves a project identity shared with the other local TMCRA adapters;
  • recalls user-global and current-project evidence before the first model step;
  • injects that evidence as an explicit plugin-sourced, untrusted user message;
  • stores the human prompt with user provenance;
  • stores the visible completed answer with the exact Harness agent/subagent identity;
  • queues failed writes locally and retries them on the next turn.

No TMCRA account, subscription, device authorization, hosted scope, or production API endpoint is part of this package.

The lifecycle and package contents have been accepted against @deepseek-ai/dsh-agent-loop 0.1.0-rc.6. The final dsh plugin add command still requires a locally installed DSH CLI; the installer fails if it is missing.