dsh-plugin-meta-memory
Agent 与会话 活跃维护

dsh-plugin-meta-memory

YYTbit/dsh-plugin-meta-memory

这是专为DeepSeek Harness打造的开源结构化长期记忆插件,可突破大模型上下文长度限制,实现跨会话的精准信息存储与调用,解决传统交互记忆碎片化问题,适用于个人知识助理、企业知识管理、智能客服等需要长期留存用户特征的场景,能大幅提升模型交互的连贯性与实用性。

3
Stars 标星
0
Forks 分支
3
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
9 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:YYTbit/dsh-plugin-meta-memory
git clone https://github.com/YYTbit/dsh-plugin-meta-memory.git
git clone git@github.com:YYTbit/dsh-plugin-meta-memory.git
README.md master

dsh-plugin-meta-memory

Structured long-term memory system for DeepSeek Harness.

What it does

Teaches the agent how to organize memories using a structured system:

  • Units: Work categories named verb-modifier-noun.unit
  • Records: Each memory has a brief (quick scan) and full (detailed) version
  • Index: Self-maintained global storyline
  • Auto-injection: Relevant briefs are injected into context automatically

Install

dsh plugin --profile your-profile add dsh-plugin-meta-memory

How it works

Memory structure

.meta-memory/
├── index.md
└── units/
    ├── debug-auth-module.unit/
    │   ├── 0.token-refresh-fail.brief.md
    │   └── 0.token-refresh-fail.full.md
    └── read-deeplearning-paper.unit/
        ├── 0.transformer-attention.brief.md
        └── 0.transformer-attention.full.md

Brief format (injected into context)

# token-refresh-fail
JWT token refresh returns 401 due to timestamp offset calculation error.

Full format (loaded on demand)

# token-refresh-fail

## Context
Auth module was failing on token refresh after 1 hour.

## Finding
expiresAt calculated using milliseconds instead of seconds.

## Evidence
src/auth/refresh.ts:42 - Math.floor(Date.now() / 1000) fixes it.

## Relevance
Any JWT/token related debugging in the future.

CLI tool

mm init              # Initialize memory directory
mm list              # List all units and records
mm read <unit>       # Read all briefs in a unit
mm search <query>    # Search briefs by keyword
mm index             # Show the index

Configuration

- id: meta-memory
  name: dsh-plugin-meta-memory
  config:
    memoryPath: '~/.dsh/meta-memory'
    enableInjection: true
    enableSkill: true
    maxBriefBytes: 4096

License

MIT -- YYTbit