Skip to content

feat: show Workflow tool agents as subagents - #80

Open
tcsenpai wants to merge 3 commits into
patoles:mainfrom
tcsenpai:feat/workflow-subagents
Open

tcsenpai wants to merge 3 commits into
patoles:mainfrom
tcsenpai:feat/workflow-subagents

Conversation

@tcsenpai

@tcsenpai tcsenpai commented Sep 9, 2026

Copy link
Copy Markdown

Claude Code's Workflow tool writes its agents' transcripts one level deeper than regular subagents (subagents/workflows/<run-id>/agent-*.jsonl) and spawns them via a Workflow tool_use rather than Agent/Task, so they never appeared on the canvas.

  • scanSubagentsDir also scans each workflows/<run> directory; names come from the .meta.json description as usual.
  • A subagent whose transcript was written in the last 60s counts as active on attach (previously only ones with a pending tool call), so agents attached mid-run show up immediately instead of at their next tool call.
  • File-tailed subagents go to agent_complete after 2 minutes without writes: Workflow agents (and killed runs) never get a tool_result in the parent transcript and stayed 'working' forever.

https://claude.ai/code/session_01AGs5TZo6yxv7NHARHawyJf

Claude Code's Workflow tool writes its agents' transcripts one level deeper
than regular subagents (subagents/workflows/<run-id>/agent-*.jsonl) and
spawns them via a Workflow tool_use rather than Agent/Task, so they never
appeared on the canvas. scanSubagentsDir now also scans each workflows/<run>
directory; names come from the .meta.json description as usual.

Claude-Session: https://claude.ai/code/session_01AGs5TZo6yxv7NHARHawyJf
Workflow tool agents (and any subagent whose run was killed) never get a
tool_result in the parent transcript, so they stayed 'working' forever.

Claude-Session: https://claude.ai/code/session_01AGs5TZo6yxv7NHARHawyJf
@cla-assistant

cla-assistant Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant