SeedlingPlanted 7 min read

消息该进哪个线程:读懂意思的协调者,和按固定顺序检查的引擎

Claude 项目里的协调者读懂每条消息的意思,再决定自己回答、开新线程还是转给已有线程。Super Agent 的引擎让每条事件过一串固定的检查,只在三处问小模型。有人盯着时前者更好用,无人值守时后者更安全。

这一天我在一个 Claude 项目里干活。项目里有一个主对话,每件工作另有自己的线程(thread)。一天下来我往主对话里丢了十来条消息:有的开出了新线程,有的当场得到回答,有的被转进了已有的线程。于是我问接待我的那个 Claude:你是怎么分的?和我们自己做的 Super Agent 引擎比,哪种做法更好?

这篇把它的回答、我当天看到的行为,和 Super Agent(下文叫 SA)引擎的做法摆在一起。主对话里的那个 Claude 下文叫协调者。协调者这一边,我只写看得见的行为,不猜它内部怎么写的。引擎这一边根据 2026 年 12 月 2 日的代码写成,我只读了代码,没有为这篇文章重新跑测试。

一句话:协调者读懂每条消息的意思,再从三个动作里选一个。引擎让每条事件按固定顺序过一串检查,只在三处问一个很小的模型。没有哪种做法处处更好:没人盯着时,引擎的做法更安全;人就在对话里时,协调者的做法更好用。

协调者:先读懂意思,再选一个动作

第一个问题是这条消息写在哪。写在某个线程里的消息,直接到那个线程里干活的 Claude 手上。这像订阅了一个话题,不需要任何判断。

写在主对话里的消息才到协调者手上。它读完之后三选一:一句话能答的,自己答;是一件新工作,开一个新线程;这件事已经有线程在管,转给那个线程。它自己的说法是,这里没有固定规则,是对每条消息的判断。

线程里的消息你写在某个线程里
原样送达,不做路由判断
那个线程里面干活的 Claude
主对话里的消息你写在项目的主对话里
先到
协调者读懂意思 · 没有固定规则
一句话能答
自己回答就在主对话里
一件新工作
开一个新线程一件工作一个线程
已有线程在管
转给那个线程这件事归它管
只有带强调色的那一步在做决定,而且它是靠读消息做的决定。

当天我的消息都去了哪

我的消息(缩写)动作去了哪
讲讲 SA 引擎的本体开新线程讲解本体的线程
写一篇博客开新线程写博客的线程
审计 SA 引擎开新线程审计引擎的线程
这是写死的吗?当场回答主对话
也许工单应该叫线程当场回答主对话
关于飞书话题的一个设计意见转发正在给一个概念改名的线程
还有别的线程概念吗?转发同一个改名的线程
把你的做法画出来开新线程画图的线程,这篇的图出自它

看最后两条转发。「还有别的线程概念吗?」这句话里没有任何线程的名字,也没有可以拿来匹配的键。协调者是从内容认出这件事归谁的。

引擎:一串固定顺序的检查

SA 的引擎读的是外部来源的事件:飞书的消息、Jira 工单的变化、git 的评审和 CI 结果、定时器。每条事件走同一串检查,哪一步有了结论就停。检查是代码,用到的规则是存下来、带版本的记录。消息的正文从不决定谁带授权、放行了什么、回复送到哪。

从一个来源读到一条事件飞书、Jira、git 或定时器
是引擎自己发出的回复吗?
是
作废
不是
有未结束的工单订阅了这个话题吗?话题键精确相等
有
交给那张工单的会话沿用那张工单的授权单
没有
小模型有已结束的工单订阅了这个话题吗?结束不到 7 天 · 作者带授权
有
重开那张工单除非模型有把握说无关
没有
有存下的规则命中吗?事件种类、作者、字段,不看正文
没有
忽略冲着 owner 来的可以交去分诊
有
小模型规则里的 judge 条件成立吗?只有带这句条件的规则才问
拿不准
挡下,等 owner任务收件箱里的一张卡
成立
回到来源再读一遍,还一样吗?动手之前的核对
不一样
作废
一样
小模型和某张已有的工单是同一件事吗?只问没被订阅过的话题
0.8 以上
并入那张工单那张工单自己的规则允许时
不是,或拿不准
开一张新工单,授权单锁定工单订阅这个话题
一条事件在引擎里走的路。带强调色的三步各问一次很小的模型,其余都是代码。图里省略了几种等待:引擎暂停、事件太旧、当天名额用完、规则写了「先问我」。

模型用在哪。三处小模型各回答一个很窄的问题,答案是一个概率。规则里的 judge 条件,0.8 以上算「是」,0.2 以下算「不是」,中间的挡下来交给 owner。「是不是同一件事」要 0.8 以上才并进已有的工单。每个答案只在规则本来就允许的几条路之间选,不给任何人带来授权。

有两种情况会用一个完整的模型会话。带授权的人在一个有未结束工单的话题里 @ 了机器人时,一个短的后台会话读这条消息,从五个处置里建议一个:并入、另开、停止、报状态、忽略。没有规则命中、而消息是冲着 owner 来的,可以交给对话里的 agent 分诊。两种情况下,会话都只给建议,代码检查之后才执行。

授权单是锁住的。引擎受理一条事件时,把工单的授权单写一次:依据哪条规则的哪一版、放行了哪些对外动作、回复送到哪。之后再改规则,不影响已经开着的工单。

并排看:判断放在哪

问题协调者SA 引擎
谁决定路线对消息意思的一次理解,每次重新做代码里一串固定顺序的检查,规则是带版本的记录
第一步看什么消息写在哪:线程里,还是主对话里话题键,和工单订阅的话题精确比对
模型的角色模型的判断就是路由小模型回答三个窄问题,其余是代码
正文的角色正文是主要的输入正文从不决定授权、放行和去向
拿不准时按最可能的理解去做。你看得到结果,可以纠正规则拿不准的挡下等 owner;「同一件事」拿不准的开新工单
授权留在你手里。转发一条消息不等于批准任何事,线程在做不可撤销的事之前仍然会问你受理时锁进工单的授权单
决定的记录对话本身。哪个线程收到了什么,一看就知道每条事件一条结论,带原因码、规则 id 和版本。重放得到同样的结果
含糊的消息能处理,因为它读的就是意思只接得住键和规则能对上的。其余忽略,或交去分诊

哪种更好,看有没有人盯着

没人盯着:引擎的做法

SA 在你不在的时候对 Jira、git 和飞书动手。在那里分错一次,可能在任何人看到之前就给同事发了消息,或者改了仓库。固定的检查让结果可以预料,结论的记录让它可以审计,锁住的授权单让一张工单没法自己扩大权限。

人在对话里:协调者的做法

你的消息很短,几件事混在一起,还常常接着一小时前说过的话。没有哪个键或哪条规则接得住「也许工单应该叫线程」,读懂意思才接得住。猜错的代价很小:你马上看得到,再说一句就纠正了。

两边的代价正好是对方的长处。引擎分不了规则没预料到的消息。协调者的选择不可重复,除了你的注意力,没有别的东西检查它。

两边已经在几个地方碰头了

引擎不只有上面那串固定的检查。在 owner 自己的对话里,对话里的 agent 做的判断和协调者是同一类:小事自己办;要改仓库、耗时长的工作,请求开一张工单;owner 明确指着某张工单说话时,把这句话追加到那张工单。区别在后面那一步:引擎先核对这一轮确实是 owner 本人输入的,然后才建工单。

两边的概念几乎一一对得上:

协调者这边SA 这边
线程工单,加上它订阅的话题
线程里的消息直接到那个线程已订阅话题里的事件直通给那张工单的会话
开一个新线程受理事件,开一张新工单
转给管这件事的线程外部事件按「同一件事」并入;owner 对话里追加到指明的工单
当场回答对话里的 agent 自己答,或者分诊的结论是「回答」

引擎可以借的一个做法:拿不准就问

这个主意是协调者自己提的。「是不是同一件事」这一步,引擎是不声不响地选了一边:小模型的把握不到 0.8,就照常开一张新工单。这样安全,但同一件事可能被分进两张工单。协调者的习惯是,有人能回答时就问。引擎可以对中间那一段照做:在话题里回一句,问发消息的人指的是哪张工单。

现在
开一张新工单并入
设想
开新单问对方指的是哪张工单并入
00.20.81
小模型对「这条消息和某张已有工单是同一件事」的把握
设想只多出中间那一段:把握在 0.2 到 0.8 之间时,问人而不是猜。0.8 是代码里现在的值;0.2 只是一个建议,照搬了 judge 条件已经在用的「有把握说不是」。

有两条底线要留着。这一问是一条对外消息,要过和别的回复一样的放行清单和限速。在这条规则下不带授权的人,不能靠回答这一问去左右一张工单。

回头看,两边在做同一件事:决定一条消息归谁。差别是把判断放在哪。协调者把整个判断交给模型,靠在场的人兜底。引擎把判断压进规则和代码,只给模型留三个窄口,靠记录兜底。选哪一种之前,先问一句:分错的时候,有没有人看着。

Which thread gets the message: a coordinator that reads for meaning, and an engine with fixed checks

I spent this day working in a Claude project. The project has one main chat, and each piece of work has its own thread. During the day I dropped about ten messages into the main chat. Some started a new thread, some got an answer on the spot, and some were sent into a thread that already existed. So I asked the Claude that receives me there: how do you decide? And compared with the Super Agent engine we build ourselves, which way is better?

This post puts three things side by side: its answer, the behaviour I saw that day, and how the Super Agent (SA) engine routes events. I call the Claude in the main chat the coordinator. For the coordinator I describe only behaviour that can be seen, and I do not guess how it is built inside. The engine side is written from the code as of 2 December 2026. I read the code and did not run the tests again for this post.

In one sentence: the coordinator reads each message for its meaning and picks one of three moves. The engine sends each event through a fixed order of checks and asks a very small model at only three of them. Neither way is better everywhere. The engine's way is safer when nobody is watching. The coordinator's way works better when a person is in the conversation.

The coordinator: read for meaning, then pick a move

The first question is where the message was written. A message inside a thread goes straight to the Claude that works in that thread. This is like a topic subscription and needs no decision.

Only a message in the main chat reaches the coordinator. It reads the message and picks one of three moves. If one line can answer it, the coordinator answers. If it is new work, the coordinator starts a new thread. If a thread already owns the subject, the coordinator forwards the message there. In its own words, there are no fixed rules here. It is a judgement on each message.

Message in a threadyou write inside a thread
delivered as it is, no routing decision
That threadthe Claude working in it
Message in the main chatyou write in the project chat
goes to
Coordinatorreads for meaning · no fixed rules
one line answers it
Answers itin the main chat
new work
Starts a new threadone thread per piece of work
a thread owns it
Forwards itto the thread that owns it
Only the accented step makes a decision, and it decides by reading the message.

Where my messages went that day

My message, shortenedMoveWhere it went
Explain the SA engine's ontologyNew threadThe thread that explains the ontology
Write a blog postNew threadThe thread that writes the post
Audit the SA engineNew threadThe thread that audits the engine
Is it hard coded?AnsweredThe main chat
Maybe ticket should be threadAnsweredThe main chat
A design point about Lark topicsForwardedThe thread that was renaming a concept
Any other thread concept?ForwardedThe same renaming thread
Draw your way of doing itNew threadThe drawing thread, which made the figures here

Look at the two forwarded messages. "Any other thread concept?" contains no thread name and no key that could be matched. The coordinator recognised from the content which thread owned the subject.

The engine: a fixed order of checks

The SA engine reads events from outside sources: Lark messages, changes to Jira items, git reviews and CI results, and timers. Each event goes down the same list of checks, and the first check that gives a result ends the walk. The checks are code. The rules they use are saved as versioned records. The text of a message never decides who is authorised, what is allowed, or where a reply goes.

An event is read from a sourceLark, Jira, git or a timer
Is it the engine's own reply coming back?
yes
Dropped
no
Does an open ticket subscribe to this topic?exact match on the topic key
yes
Passed to that ticket's sessionunder that ticket's mandate
no
small modelDoes an ended ticket subscribe to this topic?ended under 7 days ago · author authorised
yes
That ticket is reopenedunless the model is sure it is unrelated
no
Does a saved rule match?event kind, author, fields. Never the text
no
Ignoredor triage, if addressed to the owner
yes
small modelDoes the rule's judge condition hold?only for rules that carry one
not sure
Held for the ownera card in the task inbox
yes
Read again at the source: unchanged?the check before the engine acts
no
Dropped
yes
small modelSame matter as an existing ticket?only for topics no ticket has subscribed to
0.8 or more
Joined to that ticketif that ticket's own rule allows it
no, or not sure
New ticket, mandate lockedthe ticket subscribes to the topic
The path of one event through the engine. The three accented checks each make one call to a very small model. Every other check is code. The figure leaves out the waits: a paused engine, old events, a used-up daily limit, and rules that say "ask me first".

Where a model is used. The three small-model checks each answer one narrow question with a probability. For a rule's judge condition, 0.8 or more is a yes and 0.2 or less is a no. Anything between is held for the owner. The same-matter check needs 0.8 or more to join an existing ticket. Each answer only chooses between paths that the rules already allow. It gives authority to nobody.

Two cases use a full model session. When an authorised person mentions the bot in a topic that has an open ticket, a short background session reads the message and suggests one of five actions: attach, open, stop, status or ignore. When no rule matches a message that is addressed to the owner, the chat agent can triage it. In both cases the session only suggests. Code checks the suggestion before anything happens.

The mandate is locked. When the engine accepts an event, it writes the ticket's mandate once: the rule and its version, the outward actions that are allowed, and where replies go. A later change to the rule does not change a ticket that is already open.

Side by side: where the judgement sits

QuestionCoordinatorSA engine
What decides the routeA reading of what the message means, made new each timeA fixed order of checks in code, with rules saved as versioned records
First checkWhere the message was written: in a thread or in the main chatThe topic key, compared exactly with the topics that tickets subscribe to
Role of a modelThe model's judgement is the routerA small model answers three narrow questions. Code does the rest
Role of the textThe text is the main inputThe text never decides authority, allowed actions or destinations
When it is not sureIt takes the most likely reading. You see the result and can correct itAn unsure rule match is held for the owner. An unsure same-matter check opens a new ticket
AuthorityStays with you. Forwarding a message approves nothing, and a thread still asks before a step that cannot be undoneLocked into the ticket's mandate at acceptance
Record of the decisionThe chat itself. You can see which thread received whatOne decision per event, with a reason code and the rule id and version. A replay gives the same result
Vague messagesHandled, because meaning is what it readsOnly what a key or a rule catches. The rest is ignored or goes to triage

Which is better depends on whether a person is watching

Nobody is watching: the engine's way

SA acts on Jira, git and Lark while you are away. A wrong route there can send a message to a colleague or change a repository before anyone sees it. Fixed checks make the result predictable. The decision record makes it auditable. The locked mandate means a ticket cannot widen its own authority.

A person is in the conversation: the coordinator's way

Your messages are short, they mix several things, and they often continue something said an hour ago. No key and no rule would catch "maybe ticket should be thread". Reading for meaning does. A wrong guess costs little, because you see it at once and one more message corrects it.

The cost of each design is the strength of the other. The engine cannot route a message that its rules did not foresee. The coordinator's choices cannot be repeated, and nothing except your attention checks them.

The two designs already meet in places

The engine is more than the fixed checks above. In the owner's own chat, the chat agent makes the same kind of judgement as the coordinator. It does a small thing itself. It asks for a ticket when the work changes a repository or takes long. It adds a message to a ticket when the owner clearly points at that ticket. The difference is the next step: the engine first verifies that the owner personally typed that turn, and only then creates the ticket.

The concepts on the two sides line up almost one to one:

CoordinatorSA
ThreadTicket, plus the topics it subscribes to
A message in a thread goes straight to that threadAn event in a subscribed topic passes through to the ticket's session
Start a new threadAccept the event and open a new ticket
Forward to the thread that owns the subjectOutside events join by the same-matter check. In the owner's chat, the message is added to the ticket the owner names
Answer on the spotThe chat agent answers by itself, or triage decides "answer"

One habit the engine could borrow: ask when unsure

This idea came from the coordinator itself. At the same-matter check, the engine picks a side without telling anyone: when the small model is below 0.8, it opens a new ticket. That is safe, but one matter can end up split across two tickets. The coordinator's habit is to ask when a person is there to answer. The engine could do the same for the middle band: reply in the topic and ask the requester which ticket they mean.

Today
Opens a new ticketJoins
Idea
New ticketAsks the requester which ticket they meanJoins
00.20.81
The small model's confidence that the message is the same matter as an existing ticket
The idea adds only the middle band: between 0.2 and 0.8, ask a person and do not guess. 0.8 is the value in the code today. 0.2 is only a suggestion, copied from the "sure it is not" value that the judge condition already uses.

Two limits must stay in place. The question is an outward message, so it must pass the same allow-list and rate limits as any other reply. A person without authority under the rule must not be able to steer a ticket by answering it.

Looking back, both sides do the same job: they decide who gets a message. They differ in where they put the judgement. The coordinator gives the whole judgement to a model and relies on the person who is present. The engine presses the judgement into rules and code, leaves three narrow openings for a model, and relies on records. Before you choose between them, ask one question: when a route is wrong, is anyone watching?