Skip to content

feat(web): add Inspect API tab with carousel trace viewer#99

Open
indie-rok wants to merge 1 commit intoshareAI-lab:mainfrom
indie-rok:feat/inspect-api-tab
Open

feat(web): add Inspect API tab with carousel trace viewer#99
indie-rok wants to merge 1 commit intoshareAI-lab:mainfrom
indie-rok:feat/inspect-api-tab

Conversation

@indie-rok
Copy link

@indie-rok indie-rok commented Mar 18, 2026

Hello! Thank you for this amazing tutorial, it's the best I've found so far.

While learning agents, I've found it very productive to see the actual API request and response with all the context (tools, skills) and all the responses with a clear separation of what everything is doing. I am not sure if this is helpful for the project, but for me, it works great!

Screenshot 2026-03-18 at 19 15 25

If this does not align with your vision of the project, please feel free to close this PR or suggest edits on the architecture of my solution!

@vercel
Copy link

vercel bot commented Mar 18, 2026

Someone is attempting to deploy a commit to the crazyboym's projects Team on Vercel.

A member of the Team first needs to authorize it.

Add an interactive API Inspector tab to each session page that lets
learners step through captured API traces one cycle at a time.

- Carousel layout: one cycle per slide with animated transitions
- Collapsible sections: Request/Response/Tool Execution collapsed
  by default with one-line summaries, click to expand
- Structured tool display: parameters as key-value tables, output
  in terminal-style blocks (not raw JSON dumps)
- Subagent detection: purple badges/dots for s04 subagent cycles
  by checking system prompt for 'subagent'
- Teammate detection: pink badges with name/role for s09 team
  cycles (alice/coder, bob/tester) from system prompt parsing
- Skill catalog: collapsible grid showing skills parsed from the
  system prompt (s05+)
- Tool catalog: collapsible grid of available tools from request
- micro_compact visualization: shows per-tool before/after with
  character savings and token estimates (s06+)
- Dynamic trace loading: webpack context import auto-discovers
  trace JSON files, no hardcoded map to maintain
- Pre-captured traces for s01-s09 via capture_trace.py
- i18n labels for en/ja/zh
@indie-rok indie-rok force-pushed the feat/inspect-api-tab branch from 879db2a to 650a8fc Compare March 18, 2026 18:12
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