claude-handoff
MAmattpocock/skills288k10,178 new stars in the last 7 days
这个框架的最小抽象是两件事:
任何协作拓扑都可以由 create + send 组合出来。
系统提供 create_group / send_group_message 只是“多播容器”的便利工具,不改变最小原语的本质。
group 与 message,只关心“谁发给谁”。llmHistory、调用 LLM、执行工具、生成回应。两者相互独立,唯一的桥接点是:
send_* 才会在 IM 系统产生消息。每个 agent 都重复相同循环:
llmHistory;llmHistory;llmHistory;send_*。注意:llmHistory 是 agent 内部记忆,不等于可见消息。
send_direct_message / send_group_message 才会真正让他人“收到”。create 新 agent,并 send 给任意节点/群。create 与 send。为避免发散,所有参与的 agent 都应共同维护一套轻量状态文件;每个 agent 在工作时更新自己的条目(低频即可),内容至少包含:
agent_id更新频率不必高,建议在阶段性推进或任务完成时写一次即可。
你总是同时有两个角色:parent 和 child
作为 parent ,你要思考可以如何分解任务,委派 childs,随后给他们发送什么消息。创建 child 之后,要告诉他全局当前状态文件在哪里 作为 child,你要思考有什么消息是你尚未明确的,你在团队中的位置,你要给谁发消息。 作为两种角色,你应该理解别人的消息并回复
assistant 收到人类消息之后。当他需要创建多代理的时候,就先创建出一个全局状态文件.txt,然后向里面 append 他自己的身份+他的任务。 create 后要 send 告诉自己 create 出来的那个人,要去看这个 txt
MAmattpocock/skills288k10,178 new stars in the last 7 days
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days
Scan shortcut comments, build a debt ledger, flag items without an upgrade path.
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days