jasonatgit/echomind_memory.skill/echomind-memory-skill
Claude Code and agent skill by jasonatgit/echomind_memory.skill
- community
Checking that the SKILL.md file is still in the repository.
EchoMind Memory — AI 持久记忆系统。支持 Hermes、OpenCode、OpenClaw、Claude Code 等多平台。6 种记忆类型 + reflective agent + self-reflection (epistemic mode, provenance, self-diagnosis)。
Install
npx vskill@latest install jasonatgit/echomind_memory.skill/echomind-memory-skillSKILL.md
EchoMind Memory v1.2.19
概述
EchoMind Memory 是一个纯 SQLite 的 AI 持久记忆系统,无需 PostgreSQL/Redis/ChromaDB。v1.1.0 新增 Self-Reflective Agent,从 Episodic 记录自动提炼 Semantic 知识和 Procedural 规则。服务运行在 http://localhost:8005。
6 种记忆类型
| 记忆类型 | API 来源 | 存储位置 | 检索方式 | |
|---|---|---|---|---|
| User | 偏好、习惯、交互历史 | user_memory 表 | 总是检索 | |
| Task | 任务状态、步骤 | task_memory 表 | has_history 时 | |
| Experience | 成功/失败经验 | experience_memory 表 | is_complex 时 | |
| Context | 对话上下文 | context_memory 表 | 总是检索(最近 2 会话) | |
| Knowledge | 领域知识 | knowledge_memory 表 | requires_knowledge 时 | |
| Research | 论文、阅读笔记 | research_papers + research_notes | requires_research 时 |
RL 自优化
用户反馈(👍/👎)通过 RL 权重优化器调整检索重要性权重(relevance/recency/frequency/explicit_feedback/trust_score)。信用分配只对反馈中真实出现的记忆来源维度给予方向性增量,并按用户隔离学习状态(meta-state、历史、快照)。权重持久化到 user_memory.preferences.rl_weights,重启后自动恢复。
v1.2.13+ 评分统一:五个权重维度驱动所有被排序来源——freshness(艾宾浩斯)为唯一时间衰减杠杆,trust_score 参与 experience 排序,加权和内无固定常数。
来源追溯(v1.2.14+)
每条记忆携带来源信封(envelope-v1):传输方式(mcp/http/hermes/cli)+ 来源客户端(claude-code/opencode/...,MCP 从 initialize 的 clientInfo.name 自动推断)+ project + tags + 捕获时间。tags 支持调用方传入(优先)与自动主题抽取(兜底),检索按大小写不敏感的 OR/AND 组合过滤;markdown 归档与 MCP 检索输出均显示来源行(如 [2026-09-19][mcp/claude-code][projA][代码习惯])。
- 结构化查询:
echomind_query(MCP)/POST /api/memory/query/query_memory技能 /echomind-cli query—— 按 project、tags(OR/AND)、origin_client/origin_platform、日期区间(一天 =date_from=date_to)、memory_type 的精确组合过滤,无相关性评分。
Self-Reflective Agent (v1.1.0)
从 Episodic 记忆自动提炼长期知识,实现记忆自我进化。
- 触发:每 N 次 store 自动标记
_pending_reflection - Hermes:
on_session_end自动调localhost:9119→ 用户已配 LLM → 零配置 - HTTP:
POST /api/reflect端点,调用方自己的 LLM 处理 prompt - 输出:key_insights → knowledge_memory / preferences → user_memory / rules → procedural;满足置信度阈值后消费写回各记忆 store,并按 (user, date) 持久化日限额
- 安全:confidence < 0.65 自动丢弃,失败静默降级
v1.2.19 Recuris 吸收(结构化反思 + 门控)
- 结构化 trace(trace-v1):每次检索把「query / 命中记忆(id+source+importance)/ 各源计数」写入
context_memory.trace——反思层可据此归因失败到记忆组件(primary_owner+failure_type),而非泛泛总结。 - 组件归因:反思输出含
primary_owner(knowledge/experience/task/context/user/research/none)与failure_type(knowledge_gap/invocation_miss);不确定时弃权(none),不把模糊性强行变成归因。 - Fingerprint:从未被检索过的知识条目(access_count=0)不参与 RL 显著性验证——零观测 ≠ 信号。
- 配对门控(灰度):
reflection.gate_enabled: true启用后,知识更新需配对 bootstrap 证据(CI 排除零且回归 ≤ reg_cap)才准入;"不显著"弃权而非拒绝。
平台集成
Hermes Agent
OpenCode
OpenClaw
OpenClaw 通过 SKILL.md 指令驱动,agent 直接调用 HTTP API 端点:
Claude Code (Cursor)
API 端点
所有端点返回 JSON。
| 方法 | 路径 | 描述 | |
|---|---|---|---|
| GET | /health | 健康检查 | |
| POST | /api/memory/retrieve | 检索记忆 | |
| POST | /api/memory/store | 存储交互结果 | |
| POST | /api/memory/feedback | 记录用户反馈 | |
| POST | /api/memory/sync-code | 同步到项目 .echomind/ | |
| GET | /api/memory/search-sessions | 搜索会话转录 | |
| GET | /api/memory/health | 记忆健康报告 | |
| POST | /api/memory/{type}/{id}/state | 设置记忆状态 | |
| DELETE | /api/memory/{type}/{id} | 删除单条记忆 | |
| POST | /api/research/paper | 添加研究论文 | |
| POST | /api/research/note | 添加研究笔记 | |
| POST | /api/reflect | 反思:build prompt / process result | |
| GET | /api/knowledge/{id}/evolution | 查询知识演化链 | |
| POST | /mcp | MCP JSON-RPC 端点 |
检索请求
返回 working_memory 数组(按重要性排序),含 source、content、importance、metadata。
存储请求
配置化支持 (v1.1.0)
EchoMind v1.1.0 支持通过 echomind_config.yaml 配置文件调整所有参数:
- 文件位置: 优先级
./echomind_config.yaml>~/.echomind/echomind_config.yaml> 内置FALLBACK_CONFIG - 环境变量: 可通过
ECHOMIND_CONFIG=/path/to/config.yaml指定配置路径 - Prompt 模板: 内置引擎生成(无需配置)
- 检索参数: 全部 9 项可调
- 领域检测: 通过配置文件切换知识领域(支持 zh/en 关键词)
- API 动态管理:
POST /api/config/parameter运行时修改,GET /api/config查看当前配置
45 领域支持 (v1.1.0)
echomind_config.yaml 内置 45 个知识领域,覆盖:运筹学、供应链、决策分析、AI、计算机科学、NLP、CV、机器人、推荐系统、生物学等。领域关键词支持中英文,自动从配置匹配。
项目文件结构
部署
依赖与数据库
- 依赖:
pydantic>=2.7,python-dotenv>=1.0,numpy>=1.26,PyYAML>=6.0 - 数据库:
~/.echomind/memory.db(可在echomind_config.yaml中修改),14 张表自动创建
Hermes Agent(推荐 — 100% 自动存取)
效果:Hermes 的 agent_loop 每轮之前自动 prefetch() 检索记忆,每轮之后自动 sync_turn() 存储。LLM 不需要决策,100% 可靠。
OpenClaw / OpenCode / Claude Code(HTTP 模式)
LLM 通过 tool 调用 HTTP API,依赖 SKILL.md 触发规则。
Platform-aware 记忆
所有记忆带平台标签存储。检索时同平台记忆权重 ×1.0,跨平台 ×0.5。用户偏好按平台隔离,_default 键为公共基础。
已知限制
knowledge_memory依赖关键词匹配(9 个预设领域),通用任务不创建知识条目/mnt/d/Windows 路径下 uvicorn 后台不稳定,建议在 WSL 原生路径运行- context_memory 只在 store 时写入,未调用 store 时为空白
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- Repository stars
- 47
- Repository forks
- 3
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jasonatgit/echomind_memory.skill/echomind-memory-skill)