How tongchen2010/llm-agent-visualizer works
LLM Agent Visualizer is a static browser app for replaying recorded ReAct traces. A user selects a task, then runs the replay or advances it one step at a time; the app renders thoughts, tool actions, observations, and a final answer while updating the phase tracker. The four scenarios cover search, calculator, code, and Wikipedia. Tool calls are displayed as recorded steps, not executed live. Relationships are grounded in app.js and README; the HTML structure was not sampled.
Main entry points: app.js Replay Engine
Components 8
Trace Replay
- Recorded Traces
app.js - Replay Engine
app.js - Tool Labels
app.js
Replay Presentation
- Step Timeline
app.js - Phase Tracker
app.js
User Controls
- Replay Controls
app.js - Task Selector
app.js
Other components
- User
Connections 9
- User → Task Selector: chooses task
README.md - User → Replay Controls: starts replay
README.md - Task Selector → Recorded Traces: selects scenario
app.js - Replay Controls → Replay Engine: dispatches controls
app.js - Replay Engine → Recorded Traces: reads steps
app.js - Replay Engine → Step Timeline: renders steps
app.js - Replay Engine → Phase Tracker: updates phase
app.js - Replay Engine → Tool Labels: looks up labels
app.js - Tool Labels → Step Timeline: labels actions
app.js