Files
wehub-resource-sync f99010fae1
Desktop Artifacts / Desktop Build (Linux) (push) Waiting to run
Desktop Artifacts / Desktop Build (Windows) (push) Waiting to run
Desktop Artifacts / Desktop Build (Linux (arm64)) (push) Waiting to run
Desktop Artifacts (macOS) / Desktop Build (macOS (aarch64)) (push) Waiting to run
Desktop Artifacts (macOS) / Desktop Build (macOS (x86_64)) (push) Waiting to run
CI / lint (push) Failing after 1s
CI / frontend (push) Failing after 1s
CI / scripts (push) Failing after 1s
CI / Go Test (ubuntu-latest) (push) Failing after 0s
CI / frontend-node-25 (push) Failing after 1s
CI / docs (push) Failing after 0s
CI / coverage (push) Failing after 0s
CI / e2e (push) Failing after 0s
Docker / build-and-push (push) Failing after 1s
CI / integration (push) Failing after 4m43s
CI / Go Test (windows-latest) (push) Has been cancelled
CI / Desktop Unit Tests (Windows) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:30:36 +08:00

6.1 KiB

title, description
title description
Session Insights AI-powered analysis of your agent coding sessions

AgentsView can generate AI-powered summaries and analysis of your coding sessions using Claude, Codex, Copilot, or Gemini. Insights run locally — your session data is sent to the AI agent running on your machine, and the generated markdown is stored in your local database.

Navigate to the Insights page by clicking More → Insights in the header navigation bar. Insights, Pinned, and Trash all live under the More dropdown as of 0.21.0, which leaves Sessions and Usage as the top-level nav buttons.

Insights page

Insight Types

There are three generation modes, selected from the dropdown at the top of the sidebar:

Mode What It Generates
Daily Activity A concise summary of what was accomplished on a single day
Date Range Activity A summary covering a span of days, with presets for 7 and 30 days
Agent Analysis A deeper analysis of patterns, effectiveness, and suggestions for improving your agent workflows. From a session page, this mode can also analyze one selected session.

Daily Activity and Date Range Activity both produce daily_activity type insights. Agent Analysis produces agent_analysis type insights with more detailed recommendations.

Single-session analysis is also an agent_analysis insight. It is started from the active session header and sends session_id to the generation API, which builds the prompt from that session's messages, timing, token usage, and cost instead of a date-window session list. session_id is only accepted for agent_analysis; daily activity and canned insight modes reject it.

Single-session insight action

Generating an Insight

The sidebar panel contains all the controls for generating insights.

1. Select a Mode

Choose Daily Activity, Date Range Activity, or Agent Analysis from the mode dropdown.

  • Daily Activity shows a single date picker.
  • Date Range Activity shows start and end date pickers with "Last 7 days" and "Last 30 days" preset buttons.
  • Agent Analysis shows a single date picker for the analysis target.

2. Set Filters

  • Project — scope the insight to a specific project, or leave on "All Projects" for a global view.
  • Agent — choose which AI agent generates the insight: Claude, Codex, Copilot, or Gemini. Defaults to Claude.

3. Add Context (Optional)

Click Prompt to expand a text area where you can provide additional context to guide the generation. For example:

  • "Focus on test coverage improvements"
  • "Summarize the refactoring work"
  • "What patterns should I change?"

4. Generate

Click the Generate button (or the + icon). The insight streams in via the agent CLI running on your machine.

While generating, a task appears in the sidebar with a spinner and phase indicator. You can queue multiple insights at once — each runs as a separate task. Use Stop all to cancel everything, or dismiss individual tasks.

When generation completes, the insight moves to the completed list and is automatically selected for viewing.

If generation fails — for example, due to an API error or timeout — the task shows an error status with the error message directly in the sidebar. This replaces the previous behavior where failures were silent.

Viewing Insights

Select any completed insight from the sidebar list. The content panel displays:

  • Type badge — blue for daily activity, purple for agent analysis
  • Date or date range — the time period covered
  • Metadata — project scope, agent name, model used, and when the insight was created
  • Rendered markdown — the full insight content with headings, lists, code blocks, tables, and blockquotes

Insight content

Managing Insights

  • Delete — click the trash icon in the insight header to remove it permanently.
  • Filter by project — changing the project dropdown filters the completed list to show only insights for that project (or global insights when set to "All Projects").
  • Insights are stored in your local SQLite database and persist across server restarts.

How It Works

When you click Generate:

  1. AgentsView queries your session database for sessions matching the date range and optional project filter (up to 50 sessions).
  2. It builds a markdown prompt containing session metadata: IDs, projects, agents, timestamps, message counts, and first message previews.
  3. The prompt is sent to the selected agent CLI (claude -p, codex exec, copilot -p, gemini, or kiro-cli chat --no-interactive) running locally on your machine.
  4. The response streams back via Server-Sent Events, showing progress in the sidebar task list.
  5. The completed insight is saved to the database and displayed in the content panel.

The generation has a 10-minute timeout. Your API keys and subscription credentials are handled by the agent CLIs themselves — AgentsView does not manage or store them.

Configuring Agent Binaries

By default, AgentsView resolves each agent's CLI through your PATHclaude, codex, copilot, gemini, kiro-cli. If you keep multiple builds side by side, want to pin a known-good version, or your CLI isn't on PATH (a sandboxed install, a Homebrew keg-only formula, a custom build directory), add an [agent.<name>] table to ~/.agentsview/config.toml and point binary at the executable you want used for insight generation:

[agent.claude]
binary = "/opt/assets/static/agents/claude-1.7.4/bin/claude"

[agent.gemini]
binary = "/usr/local/bin/gemini"

Each known agent (claude, codex, copilot, gemini, kiro) has its own table; agents without a binary override fall back to PATH resolution. The setting only affects insight generation — it does not retarget session discovery, which always reads the on-disk session directories listed in the Session Discovery table.