Usage Guide
agentsview serves a full-featured web application for browsing, searching, and analyzing your AI agent sessions. This page walks through every part of the interface.
Dashboard
When you open agentsview with no session selected, you see the analytics dashboard. It provides a high-level overview of your agent activity across all projects.

The dashboard header includes:
- Project filter — typeahead to scope everything to a single project. Type to filter by name; each entry shows its session count. Navigate with arrow keys, select with Enter, and close with Escape.
- Search bar — opens the command palette (
Cmd+K) - Sync button — triggers a manual sync of session files
- Theme toggle — switch between light and dark mode
- Shortcuts button (
?) — shows all keyboard shortcuts
The status bar at the bottom shows session count, message count, project count, last sync time, and the build version.
Summary Cards
Six cards at the top of the dashboard show key metrics for the selected date range:

| Card | Description |
|---|---|
| Sessions | Total session count |
| Messages | Total message count |
| Projects | Number of active projects |
| Active Days | Days with at least one session |
| Messages/Session | Average with median and p90 |
| Concentration | Most active project and its share |
Date Range Picker
Quick presets for 7 days, 30 days, 90 days, 1 year, and All, plus custom start/end date inputs. The All preset shows every session regardless of age. All charts update when the range changes.

Activity Heatmap
A GitHub-style contribution graph showing daily activity. Toggle between message count and session count.

Click-to-Filter
Click any heatmap cell to filter all charts and the session list to that single day. The selected cell gets a highlighted border, and an active filter chip appears in the toolbar. Click the same cell again (or dismiss the filter chip) to deselect.

Hour of Week Heatmap
A 7x24 grid showing when you use agents most. Rows are days of the week, columns are hours. Color intensity represents message volume.

Activity Timeline
A stacked chart showing messages, sessions, tool calls, and thinking blocks over time. Toggle between daily, weekly, and monthly granularity. Includes breakdown by agent.

Top Sessions
A ranked list of your longest sessions by message count or duration. Click any session to jump directly to it in the session viewer.

Project Breakdown
Bar chart of all projects sorted by session or message count. Shows average and median messages per session for each project. Click any project bar to filter the dashboard and session list to that project.

Session Shape Distribution
Three histograms showing the distribution of:
- Session length — number of messages per session
- Session duration — time in minutes
- Session autonomy — ratio of tool calls to conversation turns

Tool Usage
Total tool call count with breakdowns by category (Read, Edit, Write, Bash, Search, Web, Task) and by agent. Includes a trend chart showing tool usage over time.

Velocity Metrics
Performance metrics including:
- Turn cycle time (p50, p90)
- First response time (p50, p90)
- Messages, characters, and tool calls per active minute
- Breakdown by agent and by session complexity

Agent Comparison
Side-by-side metrics across agents: session count, total messages, average response time, tool usage patterns, and concentration metrics.

CSV Export
Click Export CSV in the dashboard toolbar to download all analytics data as a CSV file. Includes summary, activity, projects, tools, and velocity sections.
Session Insights
agentsview can generate AI-powered summaries and analysis of your coding sessions using Claude, Codex, or Gemini. Click Insights in the header navigation bar to open the Insights page, where you can generate daily activity digests, multi-day summaries, and deeper analyses of your agent workflow patterns — scoped by project or across everything.
See the Session Insights page for full documentation.
Session Browser
The left sidebar lists all sessions with virtual scrolling for smooth performance even with thousands of sessions.

Each session item shows:
- Agent indicator — color-coded dot and agent name label in the agent’s accent color. Recently active sessions show a glowing animation.
- Session name — first message text, truncated to 50 characters
- Project name — abbreviated, right-aligned
- Relative time — “2h ago”, “Mon”, “Dec 1”
- User prompt count — number of user messages in the session
Forks and Subagent Sessions
agentsview automatically detects conversation forks in Claude Code sessions — for example, when you use “retry from here” to branch a conversation. Large forks (more than 3 user turns) appear as separate session entries grouped with their parent. Small retries fold into the main session.
Subagent sessions spawned by the Task tool are hidden from the top-level session list and are accessible only through their parent session’s tool blocks (see Subagent Linking below).
Session Filters
Click the filter icon next to the session count to open a dropdown with three filter categories that can be combined:

- Recently Active — toggle to show only sessions updated within the last 24 hours
- Agent — select a single agent (Claude, Copilot, Codex, Cursor, Gemini, OpenCode) to isolate its sessions. Click again to deselect.
- Min Prompts — filter to sessions with at least 2, 3, 5, or 10 user messages
- Hide unknown — toggle to hide sessions whose project could not be determined
When any filter is active, a green dot appears on the filter button. Click Clear filters at the bottom of the dropdown to reset all filters at once.
Filter state syncs between the session sidebar and the analytics dashboard — applying a filter in one updates the other.
URL Filters
URL parameters are supported for direct linking:
#/sessions?project=myapp&agent=claude&date_from=2025-01-01Available URL filters: project, agent, date, date_from,
date_to, min_messages, max_messages,
min_user_messages, active_since, exclude_project.
Navigation
Use ] and [ to move between sessions in the list. The
selected session is highlighted with a left border accent.
Message Viewer
Selecting a session opens the message viewer in the main content area. Messages display in a scrollable list with virtual rendering for large sessions.

Message Display
Each message has a colored left border indicating role:
- Blue — user messages
- Purple — assistant messages
The header shows the role label and timestamp. Message content renders with full Markdown support: headings, code blocks, lists, tables, links, and images.
Thinking Blocks
Assistant thinking blocks appear as collapsible sections with a
purple left border. Toggle visibility for all thinking blocks
with the t key or the thinking button in the header.
Tool Blocks
Tool invocations display as collapsible amber-bordered sections showing the tool name, arguments, and output. When collapsed, a preview of the first 80 characters is shown.

When expanded, tool blocks display structured metadata tags extracted from the tool call input. For task management tools (TaskCreate, TaskUpdate, TaskGet), these tags show the task subject, status, and ID at a glance. Bash tool blocks show the full command text, including multi-line commands like heredocs that would otherwise be truncated.
Subagent Linking
When a Task tool block is linked to a subagent session, it shows an expandable toggle. Click it to view the subagent’s full conversation inline without leaving the parent session. Messages load on demand when the section is expanded.
Tool Call Groups
Consecutive tool-only assistant messages are grouped into compact “N tool calls” sections with a gear icon and timestamp. Click to expand individual tool blocks within the group.

Code Blocks
Fenced code blocks render with language labels, monospace formatting, and horizontal scrolling for long lines.
Sorting
Toggle between newest-first and oldest-first with the o key
or the sort button in the header. The arrow icon indicates the
current direction.
Message Navigation
jor↓— next messagekor↑— previous message- Click a message to select it (blue outline)
Progressive Loading
Sessions with more than 20,000 messages load the most recent 1,000 messages first. Older messages load automatically as you scroll up. Smaller sessions load all messages at once.
Live Updates
When viewing an active session, agentsview uses Server-Sent Events to stream new messages in real time. The message list updates automatically as the agent works.
Command Palette
Press Cmd+K (or Ctrl+K) to open the command palette — a
full-screen search overlay.

Recent Sessions
With an empty or short query (under 3 characters), the palette shows your 10 most recent sessions. Type to filter by project name or first message.
Full-Text Search
Type 3 or more characters to search across all message content. Results appear in real time with 300ms debounce.

Each result shows:
- Role badge — U (user) or A (assistant) in a colored box
- Snippet — matching text with highlighted search terms
- Project name — right-aligned
Select a result to jump to that session and scroll directly to the matching message.
Keyboard Navigation
↑/↓— navigate resultsEnter— select current resultEsc— close palette
Session Export
Press e or click the export button to download the current
session as a standalone HTML file. The exported file includes
styled message rendering and works offline.
Publish to Gist
Press p or click the publish button to share a session via
GitHub Gist.

On first use, you’ll be prompted to enter a GitHub personal
access token with the gist scope. The token is saved to your
config file and reused for future publishes.
After publishing, the modal shows two URLs:
- View URL — rendered view of the gist
- Gist URL — direct GitHub link
Both have copy buttons and an “Open in Browser” action.
Session Upload
Upload session JSONL files from other machines via the API:
"http://127.0.0.1:8080/api/v1/sessions/upload?project=myapp"Uploaded files are stored in ~/.agentsview/uploads/ and
synced into the database.
Keyboard Shortcuts
Press ? to see all shortcuts in a modal overlay.
| Key | Action |
|---|---|
Cmd+K | Open command palette |
Esc | Close modal / deselect session |
j / ↓ | Next message |
k / ↑ | Previous message |
] | Next session |
[ | Previous session |
o | Toggle sort order |
t | Toggle thinking blocks |
r | Trigger sync |
e | Export session |
p | Publish to Gist |
? | Show shortcuts |
Shortcuts are disabled when typing in an input field. Esc
always works.
Theme
Click the theme toggle in the header to switch between light and dark mode. The preference is saved to localStorage and persists across sessions.


Iframe Embedding
When embedding agentsview in an iframe, the parent page can
control the theme via postMessage:
iframe.contentWindow.postMessage( { type: "theme:set", theme: "dark" }, "*");Accepted values for theme are "light" and "dark".
Sync
agentsview automatically syncs session files on startup and watches for changes in real time. The sync status is shown in the status bar:
- Syncing indicator — green text showing progress percentage and phase (“Scanning [project]…” or parse progress)
- Last sync time — relative timestamp (“synced 2h ago”)
Press r to trigger a manual sync. The sync button in the
header shows a spinning animation while syncing.
The status bar also shows a version mismatch warning (red) if the frontend and backend versions differ. Click it to reload.
Full Resync

Click the gear icon in the header to open the Full Resync modal. This re-parses all session files from scratch without deleting the database — sessions are updated in place. This is useful after upgrading agentsview or when sessions appear to be parsed incorrectly.
The modal shows live progress as sessions are processed:
- Confirm — describes what the resync does, with Start and Cancel buttons
- Progress — live counter and progress bar (“Syncing X / Y sessions…”). The modal stays open until the resync finishes.
- Done — shows synced, skipped, and total session counts
- Error — if the resync fails, shows the error with Retry and Close buttons