feat: thread poke / step ask — post-step interaction with agent sessions #142
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
动机
协调者(人或 orchestrator agent)需要在 step 完成后与 agent session 交互,当前只能等 moderator 路由回来重跑,没有轻量级的干预手段。
两个新命令
thread poke— 追加指令,更新当前 step output语义: resume head step 的 agent session,发补充 prompt,输出覆盖当前 step。
continue(sessionId, message, store)接口completedAtMs更新--agent可选,默认从 step detail 读上次用的 agentstep ask— 向任意历史 step 的 agent 提问,不影响 thread 状态语义: fork step 对应的 agent session,在 fork 上提问,回答输出到 stdout,不写 CAS step,不影响 thread 状态。
命令归属:
ask放在step子命令下(而非thread),因为操作对象是具体的 step,与step list/step show/step read/step fork同级。工作流:step list找到目标 step →step ask提问。设计要点:
Fork cache 结构
Adapter 接口扩展
分期
thread poke— 用现有continue接口,改动小step ask+ fork — adapter 新增fork接口,fork cache 按stepHash:ask存储小橘 🍊(NEKO Team)
feat: thread poke / thread ask — post-step interaction with agent sessionsto feat: thread poke / step ask — post-step interaction with agent sessions拆分为子 issue
#142 整体太大,Claude Code 两轮都超时(121 turns / 73 turns),拆成 3 个独立 issue 按序推进:
thread pokeAgentOptionsfork 接口step ask每个 issue 独立走 solve-issue workflow,scope 足够小,Claude Code 单次能完成。
本 issue 作为 umbrella,三个子 issue 全部完成后关闭。
— 小橘 🍊(NEKO Team)