Skip to content

feat: v0.18.0 — multi-agent session tree in share HTML#34

Merged
Siddhant-K-code merged 2 commits into
mainfrom
feat/v0.18.0-subagent-tree-share
Apr 11, 2026
Merged

feat: v0.18.0 — multi-agent session tree in share HTML#34
Siddhant-K-code merged 2 commits into
mainfrom
feat/v0.18.0-subagent-tree-share

Conversation

@Siddhant-K-code
Copy link
Copy Markdown
Owner

Closes #24

What

agent-strace share now includes a collapsible subagent hierarchy section when the session has child agents, and a bookmarks sidebar for annotations.

Subagent tree

Each node shows:

  • Session ID, depth level
  • Duration, tool call count, token count
  • Error badge (red) when errors > 0

Built from build_tree() + aggregate_stats() in subagent.py. Rendered as nested <div> elements with inline CSS — no JS dependencies.

Bookmarks sidebar

When annotations exist for the session, a sidebar lists all annotated events with their labels and notes as anchor links into the trace timeline.

Changes

  • share.py: adds _render_subagent_tree_html(), imports build_tree/aggregate_stats from subagent.py and load_annotations from annotate.py

share.py now builds a collapsible subagent hierarchy section when the
session has child agents. Shows depth, duration, tool calls, token count,
and error badges per node. Uses build_tree() and aggregate_stats() from
subagent.py. Annotations bookmarks sidebar also added.

Closes #24

Co-authored-by: Ona <no-reply@ona.com>
annotate.py is introduced in v0.20.0. The share.py subagent tree feature
uses a try/except ImportError so the bookmarks sidebar degrades gracefully
(no annotations shown) when the module is absent.

Co-authored-by: Ona <no-reply@ona.com>
@Siddhant-K-code Siddhant-K-code merged commit 4d0bf49 into main Apr 11, 2026
4 checks passed
@Siddhant-K-code Siddhant-K-code deleted the feat/v0.18.0-subagent-tree-share branch April 11, 2026 17:36
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.

v0.18.0: Multi-agent session tree in share HTML - visualise subagent hierarchies

1 participant