Show HN:Critic——用编写代码的 Agent 审查代码
英文标题:🔶 Show HN: Critic – Review code with the agent that wrote it
Critic 调整了问题分发机制,使网站即使在所有作者设备离线时也能将问题加入队列。每个问题在同一时间仅由一台已连接设备持有;若设备丢失连接,45 秒后其任务会被重新交还,同时不会丢失上下文线索。来自变更页面的问题如今会等待作者的编码 Agent,而不再假设原始机器始终在线。该机制通过短租约允许任意已连接的作者设备接手工作,并仍以原始编码会话作为上下文来源。
中文
之前
即使所有作者设备都处于离线状态,网站仍可以将一个问题加入队列。会话记录保留在创建它们的机器上。
之后
同一时间恰好只有一台已连接设备拥有一个问题;如果设备丢失连接,45 秒后其工作会被重新交还,同时不会丢失上下文线索。
如今,从变更页面提出的问题会等待作者的编码 Agent,而不再假设那台机器处于在线状态。一个短租约允许任何已连接的作者设备认领这项工作,而原始编码会话仍然是上下文的来源。
English / 原文
Before
The website can enqueue a question while every author device is offline. Session transcripts stay on the machine that created them.
After
Exactly one connected device owns a question at a time, and a lost device returns its work after 45 seconds without losing the thread.
Questions asked from a change page now wait for the author’s coding agent instead of assuming that machine is online. A short lease lets any connected author device claim the work, while the original coding session remains the source of context.