返回目录
Agent 与会话 索引目录

dsh-ecolink

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).

Stars
5
Forks
0
Issues
0
更新
7 天前

PROJECT TOPICS

项目标签

PROJECT README

README

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

CLASSIFICATION EVIDENCE

分类依据

项目类型索引目录
功能分类Agent 与会话
规则置信度

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: awesome、awesome-list、awesome-lists、agent-memory、agent-memory-system、context-sync。