Prototype: Swimlane Flow view for dynamic agent workflows#92
Draft
lis186 wants to merge 1 commit into
Draft
Conversation
Prototype for visualizing dynamic agent workflows (subagent fan-out / parallel lanes / fan-in) that the linear timeline flattens away. - public/workflow-graph.js: isomorphic buildWorkflowGraph() + renderWorkflowSVG(). Infers spawn edges from Agent/Task tool_use calls matched to inferred subagent sessions within a 60s window (mirrors server/store.js inferParentSession), plus sequence + fan-in edges. - prototype/gen-mockup.js: drives it with a realistic synthetic session and asserts the inference recovers the intended graph; emits SVG + HTML. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013SyRHEvmrA2SSnTvbq5Qj8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft / exploration — not for merge as-is. Tracks the design + prototype for #91.
摘要(正體中文)
線性 timeline 無法表達 dynamic workflow 的子代理 fan-out / 平行 / fan-in 結構。這個 PR 放的是探索用 prototype(不接 UI、不動既有檔案),用來在合併產品化前先驗證隱喻:
public/workflow-graph.js— 可接真實資料的buildWorkflowGraph()+renderWorkflowSVG()(isomorphic、zero-dependency)。prototype/gen-mockup.js— 用合成但結構真實的 session 跑,並斷言 spawn/fan-in 推斷能還原預期的圖;產出 SVG/HTML。完整設計、視覺預覽、後續步驟都在 #91。
What's here (English)
public/workflow-graph.jsbuildWorkflowGraph(entries)(lanes/nodes/edges with spawn + fan-in inference, mirrorsinferParentSession) andrenderWorkflowSVG(). Isomorphic, zero-dependency.prototype/gen-mockup.jsworkflow-swimlane.svg+.html.prototype/workflow-swimlane.{svg,html}node prototype/gen-mockup.js # prints ✓ when spawn/fan-in inference matchesThis touches no existing files — it's purely additive exploration.
Why draft
~/.ccxray/logs/); the metaphor still needs validating against a real session with subagents — step 1 in Session timeline can't express dynamic agent workflows — add a Swimlane Flow view (subagent fan-out / parallel lanes / fan-in) #91.Timeline | Flowtoggle, no clickable nodes). Productionizing is step 2 in Session timeline can't express dynamic agent workflows — add a Swimlane Flow view (subagent fan-out / parallel lanes / fan-in) #91, pending the validation.entry.spawnedBy) — see Session timeline can't express dynamic agent workflows — add a Swimlane Flow view (subagent fan-out / parallel lanes / fan-in) #91 "Known limitations".Next steps
See #91 → "Recommended path forward": (1) validate with real data → (2) decide on productionizing. Keep as draft until (1) is done.
Closes #91 only once productionized — leaving open for now.
🤖 Generated with Claude Code
https://claude.ai/code/session_013SyRHEvmrA2SSnTvbq5Qj8
Generated by Claude Code