find_missed_spawns
Identify decomposed assistant responses answered without spawning child tasks, revealing weak spawn hints. Helps calibrate thresholds for triggering parallel task decomposition.
Instructions
Find assistant responses that decomposed into independent blocks but were answered linearly (no spawn() call nearby).
Algorithm:
Pull recent assistant messages (last
window_daysdays, length ≥min_response_len, excluding subagent jsonls).For each, count top-level numbered items and H2/H3 headers.
Mark as
decomposableif numbered ≥min_numberedOR headers ≥min_headers.For each decomposable response, check whether any tasks row with parent_cid = response's session_id has started_at within ±10 min of the response. If none → missed_spawn.
Return top
top_nby score (numbered + headers).
Use this to calibrate the spawn_hint: a high missed-spawn count means the hint isn't strong enough, or thresholds need tuning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| min_headers | No | ||
| window_days | No | ||
| max_messages | No | ||
| min_numbered | No | ||
| min_response_len | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |