Formation 拓扑

用可递归嵌套的超图把 MicroAgent、人类席位与子组织编排为管道、委派与网状协商。

以 Markdown 查看

Formation 是 Kernuq 的「三」:把智能体与人编成一支队伍。

节点

  • micro_agent:挂载一个或多个 Harness 的 MicroAgent,可设置 carrier(in_process 等)与 lifecycle(resident / ephemeral)。
  • human_seat:人类席位,配置交互类型(如 approval)、送达方式与超时。
  • nested_formation:嵌套的子 Formation,实现集团化。

边

类型 语义
pipe 串并行管道,支持 fan_out.split_json_path 扇出与 fan_in.strategy(barrier_all / first_success / quorum_majority)扇入
delegate 上级 → 下级委派,异常向上升级
mesh 共享黑板主题的网状协商,支持 max_rounds、member_timeout_ms、quorum_min_responders

示例:短剧制作组

uri: "org://formation/ancient-mystery-drama"
owner_unit_uri: "org://unit/group_hq/branch_sh"
entry_node_id: "chief_director"
run_limits:
  max_total_steps: 160
  max_tokens_per_run: 500000
nodes:
  - id: "chief_director"
    node_kind: "micro_agent"
    lifecycle: "resident"
    harnesses: [{ role: "execute", uri: "harness://drama/chief-director" }]
  - id: "script_writer"
    node_kind: "micro_agent"
    lifecycle: "ephemeral"
    harnesses: [{ role: "execute", uri: "harness://drama/script-writer" }]
  - id: "storyboard_painters"
    node_kind: "micro_agent"
    pool_max_parallel: 8
    harnesses: [{ role: "execute", uri: "harness://drama/storyboard-painter" }]
  - id: "producer_final_review"
    node_kind: "human_seat"
    human_seat_spec:
      assignee_uri: "human://branch_sh/seat_producer_lin"
      interaction_kind: "approval"
      timeout_sec: 7200
edges:
  - { from: "chief_director", to: "script_writer", kind: "delegate" }
  - from: "script_writer"
    to: "storyboard_painters"
    kind: "pipe"
    fan_out: { split_json_path: "$.scenes[*]", max_concurrency: 8 }
    fan_in: { strategy: "barrier_all" }
  - { from: "storyboard_painters", to: "producer_final_review", kind: "pipe" }

部署

kernuq schema formation

运行期通过 formation.deploy 部署,或让 Cortex「一句话组建团队」(cortex.interact → cortex.confirm_team)。

kernuq 1.0 发布倒计时

—天
—小时
—分钟
—秒

告开发者:

kernuq还在打磨中,我希望发布一个 1.0 版本出来并且开源共享,后续即使版本不升级,用户也能自完善,并且每个运行的 kernuq 实例都是独一无二的生命体。

kernuq 发布以后 Agent开发这行也基本完蛋了,你截止目前看到的所有 Agent 形态,Chatbot,Coding Agent,Working Agent,Cloud Agent, Personal Agent,Swarm Agent 等等的形态都包含,并且实现更轻量更干净,都是一句话的事情,不是吹牛,此话保真,AI 真的是太强大了。

是的,没错,软件行业已经完蛋了, 前端、后端都完蛋了,Agent 开发行业也完蛋了,AI 寄生人类这个说法很游戏很科学,人类还乐此不彼的被 AI 驱使,没办法,这是宿命啊,无法阻挡。

你如果丢给 AI 这个网站的链接,然后许个愿,支付些许 token 费,接下来若干小时 AI 就会造出另外一个 kernuq.

但是,这除了浪费你的 Token,没有什么意义,赶在我的开源之前做出来发布,没意义,除了浪费 Token,喂养 AI,毫无意义,后面还要浪费时间精力来打磨,验证,审核,不如一起完善周边开源生态。当然,如果你要创建一个平行 kernuq,也欢迎一起交流,咱们肯定可以做一些生态共享的合作。

有了 REA,不开源也变开源,所以没必要违抗趋势,等等吧,就几天时间,多刷点红果,几天就过去了。

如果你有 Agent 开发的想法需要交流或者是中转站资源大佬,可以加微信联系,或加体验用户群交流

体验用户群
体验用户群
个人微信
个人微信