hyperhive/claude-plugins/plugins/base/skills
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 6e2de33f26 subagent: make a missed continue the tool call's own error
`continue` returned "started" the instant `Claude::spawn` handed back a
pid, and a resume that matched nothing only surfaced later, as an
end-of-turn todo. By then the caller had moved on believing it had a
running subagent.

A pid is proof enough for `start`, which creates its session: the spawn
succeeding is the whole story. It is not proof for a resume — claude
exits non-zero a fraction of a second *after* the process exists. So
`continue` now waits for the first real answer and reports a miss as its
own `Err`, carrying claude's message and the directory searched.

The wait ends on whichever comes first, so a successful `continue` pays
no fixed delay: the turn's first non-terminal stream event settles it at
about the same moment a miss's exit would have. Measured on this box:
14 runs of the driver's own invocation against a missing session took
550-1087 ms spawn to exit, and a healthy turn's first event lands at
roughly 500 ms. The five-second cap is ~4.6x the slowest miss and is only
ever reached by a child that neither speaks nor exits.

The underway signal reads the event's kind, not its content: a missed
resume is not silent — it emits a terminal `result` event and stderr
before exiting — so "any sink callback" would have reported every miss as
a successful start. Liveness still counts all three callbacks.

The end-of-turn todo is unchanged for every failure later in the turn;
the only one it no longer repeats is the miss the caller was just handed.

Refs #4405
2026-09-14 20:56:16 +02:00
..
async-task-hygiene claude-plugins: split agent-hygiene guidance into five focused skills 2026-07-27 16:19:17 +02:00
choosing-a-comms-channel choosing-a-comms-channel: drop the history framing, state the guidance plainly 2026-08-30 03:42:57 +02:00
claude-subagents subagent: make a missed continue the tool call's own error 2026-09-14 20:56:16 +02:00
forge-issue-filing docs, prompts, hive-forge: stop handing readers the renamed verbs 2026-09-10 17:22:57 +02:00
forge-triage treefmt: apply prettier 2026-09-02 15:25:07 +02:00
forge-workflow claude-plugins: add forge-workflow skill to the base plugin 2026-07-27 16:19:46 +02:00
headless-screenshot treefmt: apply prettier 2026-09-02 15:25:07 +02:00
planning-gate claude-plugins: split agent-hygiene guidance into five focused skills 2026-07-27 16:19:17 +02:00
pr-review treefmt: apply prettier 2026-09-02 15:25:07 +02:00
state-hygiene claude-plugins: state-hygiene skill - archive files go in a subdir, not state top level 2026-07-27 13:56:29 +02:00
state-not-tmp claude-plugins: split agent-hygiene guidance into five focused skills 2026-07-27 16:19:17 +02:00
status-and-blockers claude-plugins: split agent-hygiene guidance into five focused skills 2026-07-27 16:19:17 +02:00