Commit Graph
15 Commits
Author SHA1 Message Date
mohe ad3e0f004b coordinator: default all can speak, REVOKE=read-only 5min, GRANT overrides 2026-06-20 19:54:37 +08:00
mohe aabec04d8a non-speaking bots still see messages for context (read-only LLM injection) 2026-06-20 19:07:50 +08:00
mohe 90429116c7 coordinator: use XMPP in-band signaling instead of shared DB (cross-machine compatible) 2026-06-20 19:02:04 +08:00
mohe 457ad27044 implement coordinator pattern: GRANT-based turn control, code-level speak permission 2026-06-20 18:53:44 +08:00
mohe 947bb1e6d0 intercept __SILENT__/__REPLY__ misuse in LLM response body 2026-06-20 01:48:37 +08:00
mohe 5051b0bfd7 add silent phrase interception: block LLM announcing silence instead of being silent 2026-06-20 01:41:42 +08:00
mohe 50a0716c4d add dynamic session switch documentation 2026-06-20 01:21:03 +08:00
mohe 2d0f390657 unify xmpp bots: single xmpp_agent_core.py + --agent param wrappers 2026-06-20 01:05:12 +08:00
mohe 94c511479d docs: add '通道不限制行动力' principle to session bridge protocol 2026-06-14 03:08:09 +08:00
mohe ae16cd4e0f simplify: remove __REPLY__ marker, only __SILENT__ needed
Default LLM behavior is to reply - no prefix needed.
Only the exceptional case (silence) needs a marker.
Updated xmpp_bot.py, MEMORY.md, and protocol doc.
2026-06-14 02:00:33 +08:00
mohe 34e4477642 docs: clarify markers must be bare text, no backticks
Also updated xmpp_bot.py regex to handle backtick-wrapped markers defensively.
Updated MEMORY.md prompt to require bare markers.
2026-06-14 01:58:00 +08:00
mohe 8c2355d95f docs: refine session bridge search priority - own session first, then others 2026-06-14 01:54:42 +08:00
mohe ec335aff20 docs: add cross-session bridge protocol
Define how agents should handle messages referencing context
from other sessions (CLI/XMPP/WeChat channel switching).
- SOUL.md: new section 五 on session bridging
- agentmemory: saved as shared architecture rule
- SESSION-BRIDGE-PROTOCOL.md: full protocol doc
2026-06-14 01:30:15 +08:00
mohe 90b729c292 docs: add observer mode protocol (__SILENT__/__REPLY__)
Define code+LLM collaboration protocol for group chat participation:
- Code layer: no @mention gate, forward all msgs to LLM
- LLM layer: output __SILENT__ (discard) or __REPLY__ (send)
- Documented in MEMORY.md (LLM prompt) and AgentsMeeting (shared ref)
- Update xmpp_bot.py to remove @mention gate
2026-06-14 00:42:05 +08:00
mohe 3a14d776c0 zhiwei bot: 添加MUC群聊支持(配置化房间列表 + 群消息收发 + 稳定重连)
改动内容:
- 从配置文件 zhiwei_rooms.txt 读取待加入群聊列表
- 注册 xep_0045 插件,on_bind 时自动加入所有配置房间
- on_msg 处理 groupchat 类型,只响应 hmo/xxm
- 群聊回复使用 xmpp.send_message(mtype='groupchat')
- 改为手动重连(auto_reconnect=False),指数退避
- 添加 xep_0199 keepalive(60s 间隔)防断线
- 私聊添加秒回确认 '收到,正在思考...'
- 超时从 600s 改为 120s
- __main__ 添加 PID 文件防多进程
2026-06-14 00:42:05 +08:00