Stream Claude Code subagent activity inline in the transcript

This commit is contained in:
Ian Gulliver
2026-10-15 11:08:53 -07:00
parent 0e43a99115
commit d83212d46b
11 changed files with 325 additions and 35 deletions
+9
View File
@@ -580,6 +580,15 @@ func transcriptLine(ev api.Event, root string) string {
p := ev.Payload
text := func(k string) string { return fmt.Sprint(p[k]) }
rel := func(s string) string { return strings.ReplaceAll(s, root+"/", "") }
if p["parent_tool_use_id"] != nil {
switch ev.Kind {
case "agent.message":
return "subagent: " + text("text")
case "agent.tool_call":
return "subagent tool " + text("name")
}
return ""
}
switch ev.Kind {
case "user.message":
if ev.Actor == "byre" {