feat(plugin): add ReMe integration skeleton for QwenPaw (towards #349) - #403
Open
RerankerGuo wants to merge 1 commit into
Open
feat(plugin): add ReMe integration skeleton for QwenPaw (towards #349)#403RerankerGuo wants to merge 1 commit into
RerankerGuo wants to merge 1 commit into
Conversation
…tscope-ai#349) Introduces an installable plugin skeleton under plugins/qwenpaw/ so QwenPaw users can connect to a running ReMe MCP server and get durable, file-native long-term memory today without waiting for deeper Python-SDK-level integration tracked in agentscope-ai#349. Contents: - README.md: prerequisites, install steps, directory layout, scoping notes - .mcp.json: streamable-http MCP endpoint shared with sibling plugins - hooks/hooks.json + hooks/auto_memory.py: fire-and-forget Stop hook that daemonizes via double-fork and calls server-side auto_memory over MCP, anchored on conversation_id and profile_id; best-effort logging only - skills/reme-memory/SKILL.md: three-mode recall SOP (semantic/topological/ state) plus a multi-profile scoping section showing tags-based isolation Deliberately out of scope and left for follow-ups: deep Python-SDK embed, QwenPaw scheduler-driven consolidation/proactive workflows, and full lifecycle plus memory tests.
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
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.
背景
QwenPaw 是 Qwen 系列助理,与 ReMe 集成后可获得持久、文件原生的长期记忆能力。Issue #349 提出了完整的 Python SDK 级集成需求,但该需求涉及 QwenPaw 内部调度器和会话管理器的深度耦合,实现成本高且需要分阶段推进。
本轮先交付 可安装的 QwenPaw 插件骨架,使 QwenPaw 用户当前就可以通过 ReMe MCP (HTTP) 接口完成 80% 的长期记忆能力(召回 + 自动持久化)。完整深度 SDK 集成留给后续 PR 或社区贡献者。
改动内容
在
plugins/qwenpaw/下新增一套与plugins/claude_code结构完全同构的 QwenPaw 插件骨架(共 5 个新文件 + 4 级目录):plugins/qwenpaw/README.md— 安装说明、前置条件(启动 ReMe MCP server)、目录结构、多用户隔离使用提示。plugins/qwenpaw/reme/.mcp.json— ReMe streamable-http MCP 配置,默认http://127.0.0.1:2333/mcp,与其他插件保持一致。plugins/qwenpaw/reme/hooks/hooks.json— Stop Hook 注册,使用QWENPAW_PLUGIN_ROOT环境变量定位插件根目录。plugins/qwenpaw/reme/hooks/auto_memory.py— fire-and-forget 型 Stop Hook:conversation_id/session_id+profile_idauto_memory工具plugins/qwenpaw/reme/skills/reme-memory/SKILL.md— ReMe 记忆召回 SOP,覆盖 3 种召回模式(语义 search / 拓扑 traverse / 状态 daily_list+frontmatter_read),并补充 多用户/多 profile scoping 章节,显式说明如何利用tags: [user:alice]frontmatter +tagssearch filter 实现 profile 隔离。与 Issue #349 的关系
验证方式
~/.pyenv/versions/3.12.12/bin/python -m pre_commit run --files <5 个新文件>→ 全通过(check-json / add-trailing-comma / black / flake8 / pylint C0116 修复 / pyroma 共 12 个 hook)。~/.pyenv/versions/3.12.12/bin/python -m pytest tests/unit -x -q→ 858 passed,零回归。python3 -c "json.load(open('.mcp.json')); json.load(open('hooks.json'))"→ OK。reme start service.backend=mcp service.transport=streamable-http启动服务qwenpaw plugins add ./plugins/qwenpaw+qwenpaw plugins enable reme/mcp或等价命令,应能看到remeserver 已连接且search/traverse/daily_list/read工具可用影响范围
claude_code/codex/openclaw)目录结构保持严格对齐,维护成本均匀。Checklist
858 passed)