feat: add Hermes Agent MemOS integration#1963
Open
dnegxuantian wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
本 PR 为 Hermes Agent 增加 MemOS 集成,覆盖三条能力链路:
setup.sh一键配置脚本、Hermes 用户插件示例和集成文档。migrate_hermes_memory.py,读取~/.hermes/memories/MEMORY.md和USER.md,按内容分类迁移到text_mem/pref_mem。hermes_log_syncer.py,读取~/.hermes/logs/agent.log识别完整 turn,结合~/.hermes/state.db补全内容,先写入RawConversationTurn,再批量提交给 MemOS Scheduler / MemReader。Implementation notes
status="archived"存储为源材料,正常检索不会直接召回原始聊天记录。MEM_READ调度路径,由 MemOS 负责提取、合并、压缩和组织。--mcp-url、MEMOS_MCP_URL或~/.hermes/memos-log-syncer.json配置。Type of change
How Has This Been Tested?
本地运行
pytest覆盖 4 个测试文件共 33 个用例,全部通过(33 passed, 1 warning):tests/api/test_mcp_serve.pytests/examples/test_hermes_log_syncer.pytests/examples/test_hermes_memos_plugin.pytests/examples/test_migrate_hermes_memory.py代码风格通过
ruff format+ruff check。Checklist