Zoria-Lind/dsh-ecolink

Memory ecosystem bridging the DeepSeek web app and local DSH — one local memory pool shared by a browser extension (harvest/inject), a zero-dependency local service (sole writer), and a DSH adapter (pre-step injection).

Project Overview项目介绍

This is a DSH plugin that connects DeepSeek web version and local DSH memory ecosystem. It enables bidirectional reading and writing of shared structured local memory between the two ends. Use it when you need unified memory across DeepSeek web and local DSH. Note memory data is stored locally only, a running local service is required.

这是打通DeepSeek网页版与本地DSH的记忆生态插件,核心能力是让两端共享同一份结构化本地记忆池,实现记忆双向读写共享。需要统一DeepSeek网页端与本地DSH的记忆时使用。注意仅本地存储记忆数据,需正确启动本地服务才能正常使用。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Zoria-Lind/dsh-ecolink

Zoria-Lind/dsh-ecolink 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-ecolink

打通 DeepSeek 网页版本地 DSH 的记忆生态:网页端记住的,DSH 直接用;DSH 里产生的,网页端也能读到。同一份结构化本地记忆池(~/.dsh-memory/memory.json)。

组件

组件 目录 说明
dsh-ecolink-web extension/ Chrome/Edge MV3 扩展:网页端标签收割(DSM 兼容格式)、请求注入(打分+预算+会话去重)、防污染三件套、popup 面板(配置/会话管理/DSM 导入/压缩)
dsh-ecolink-service service/ 本地记忆池唯一写者:零依赖 HTTP 服务、时间戳分层、归档、双模式压缩(网页端为主 + Flash API 备用)、请求日志
dsh-ecolink-adapter adapter/ DSH 适配层:直读记忆池、pre-step 注入、#记忆名 过滤

快速开始

# 1. 启动服务(记忆池唯一写者)——日常不需要手动起:
#    DSH 的 adapter 会自动拉起(serviceAutoStart 默认开);
#    登录自启任务兜底:scripts/install-autostart.ps1(不开 DSH 也能用)
node dsh-ecolink/service/server.mjs

# 2. 加载扩展
#    Edge: edge://extensions → 开发人员模式 → 加载解压缩的扩展 → 选 extension/

# 3. DSH 挂载适配层
dsh plugin --profile web add D:/dsh/dsh-plugins/dsh-ecolink/adapter

服务默认 http://127.0.0.1:17520,零外部网络请求、零遥测;记忆数据只落在本机。 运维脚本:scripts/start-service.ps1(隐藏启动)/ stop-service.ps1(停止)/ install-autostart.ps1 / uninstall-autostart.ps1(登录自启)。

记忆流动

网页端对话 ──吐 <DSM:memory_write> 标签──▶ 扩展收割(DOM + 历史响应双通道)
     │                                       │
     │ 注入(打分+预算)                        ▼
     ◀────────────────────────────── ecolink-service 落盘
                                              │
DSH 会话 ──pre-step 注入(同选择器)──◀─────────┘ (adapter 只读)
  • 写入:模型在网页对话中输出 <DSM:memory_write>内容</DSM:memory_write>(兼容 DSM 的 key/importance 属性格式),扩展收割后落盘
  • 读取:请求注入(网页端)/ pre-step 注入(DSH),同一套打分选择器
  • 压缩:popup 一键——网页端模式为主,Flash API 模式备用(约 0.01 元/次)

测试

node --test extension/test/core.test.mjs   # 扩展核心 14 项
node --test service/test.mjs               # 服务 12 项
node adapter/test/smoke.mjs                # 适配层 66 项

文档

  • 完整方案与阶段表:PLAN.md
  • 组件细节见各目录 README

License

MIT © 2026 Zoria Lind

上一个 Prev dsh-obsidian 下一个 Next dsh-better-workspace