Skip to content

feat: hexagonal nodes, bezier edges, thought bubbles & token/cost tracking#13

Merged
Dhwanil25 merged 2 commits intomainfrom
feat/hexagonal-nodes-bezier-edges-token-tracking
Mar 24, 2026
Merged

feat: hexagonal nodes, bezier edges, thought bubbles & token/cost tracking#13
Dhwanil25 merged 2 commits intomainfrom
feat/hexagonal-nodes-bezier-edges-token-tracking

Conversation

@Dhwanil25
Copy link
Copy Markdown
Owner

Summary

  • FlowGraph: Agent nodes are now hexagons; edges use quadratic bezier curves; active agents show live thought bubbles (last ~80 chars of output) with a glassmorphism style; token progress bars appear under nodes as agents generate output
  • multiAgentEngine: Per-agent tokensIn, tokensOut, costUsd fields added to MAAgent; totalCostUsd added to MAState; Anthropic SSE message_start/message_delta events are parsed to capture real token counts; TOKEN_PRICES table + estimateCost() function added; token data flows through streamAnthropicstreamLLMstreamWithFailoverexecuteWorkers
  • UniversePage: Header metrics strip showing total token count and estimated cost (~$X.XXX) when agents have run
  • TimelinePanel: Added to repo (was missing from previous commits)

Test plan

  • Launch a task with an Anthropic key configured — verify token count and cost appear in the header after agents complete
  • Verify agent nodes render as hexagons in the Flow view
  • Verify edges between nodes are curved (bezier), not straight lines
  • Verify thought bubbles appear next to active agents while they are working
  • Verify token progress bars appear under agent hexagons
  • Verify Timeline panel renders below the canvas
  • Check TypeScript compiles cleanly (npx tsc --noEmit)

🤖 Generated with Claude Code

…king

- FlowGraph: hexagonal agent nodes, quadratic bezier curved edges,
  live thought bubbles on active agents, token progress bars under nodes
- Engine: per-agent tokensIn/tokensOut/costUsd via Anthropic SSE usage
  events, TOKEN_PRICES table, totalCostUsd on MAState
- UniversePage: header metrics strip showing total tokens + estimated cost
- TimelinePanel: added to repo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Dhwanil25 Dhwanil25 merged commit cac6841 into main Mar 24, 2026
1 check failed
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