Skip to content

[Feature] Session comparison view — side-by-side metrics for two sessions #1

@anaypaul

Description

@anaypaul

What

Add a "Compare" tab that lets you select two sessions and see their metrics side by side: total tokens, cache efficiency, tool call count, error rate, duration, agent count.

Why

Power users iterate on their workflows and need to answer "did my new CLAUDE.md reduce token usage?" or "was the agentic approach faster?"

How

  • New src/components/SessionCompare.tsx component
  • Two session picker dropdowns (reuse SessionList data)
  • Paired Recharts BarChart with delta badges ("+23% tokens", "-40% errors")
  • Fetch each session independently via existing /api/sessions/:id endpoint
  • See Adding a New View in the README

Complexity

Medium — 6-8 hours. No backend changes needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions