VinsonWild/Wangdefa.Memory

VinsonWild★ 2C#Last synced: 2026-08-21

Open on GitHub

Wangdefa.Memory 是一个为个人助理Agent 设计的五层记忆体组件,数据完全保留在本地,不依赖云端,达到轻量、白盒可控、可解释,未来将进一步往企业级原生记忆体方向拓展。

README excerpt

bash dotnet add package Wangdefa.Memory bash dsh plugin add github:VinsonWild/WangdefaMemory bash git clone https://github.com/你的用户名/WangdefaMemory.git cd WangdefaMemory dotnet build -c Release dsh plugin add ./WangdefaMemory.MCP yaml - insert: - id: mcp-wangdefaMemory name: '@deepseek-ai/dsh-mcp-client' config: serverName: WangdefaMemory transport: stdio command: "dotnet" args: - "exec" - " /WangdefaMemory.MCP/bin/Release/net10.0/WangdefaMemory.MCP.dll" cwd: " /WangdefaMemory.MCP" env: DEEPSEEK API KEY: '${DEEPSEEK API KEY}' mcp WangdefaMemory process message 帮我记录一下:我喜欢用简洁的代码风格 json { "enrichedInput": "...", "intent": "闲聊", "hasMemory": false, "frameId": "认知 20260819 143022" } mcp WangdefaMemory save memory 好的,已记录你的偏好 认知 20260819 143022 completed json { "success": true, "message": "记忆已补全并保存,cardId: 认知 20260819 143022,状态: completed" } mcp WangdefaMemory process message 写代码时要注意什么 csharp using Wangdefa.AgentMemory; using Wangdefa.AgentMemory.Models; using Wangdefa.Contracts; // 如果不需要内置 A线,可传入 null 或 Mock 实现 var chatService = new MyChatService(); var basePath = Path.Combine(Directory.GetCurrentDirectory(), "memory"); ServiceRegistry.Initialize(chatService, basePath); var memory = Serv…

View full README on GitHub →
Agentsagent-memoryaiai-agentcordiscsharpcsharp-codedeepseek-harnessdsh-plugin

Category