# Repository Briefing: kenn-io/agentsview
> Source: https://repoforai.com/repo/kenn-io/agentsview (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/kenn-io/agentsview
- **Official Docs / Website**: https://agentsview.io
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Go
- **License**: MIT
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.49.1 (2026-12-01) — https://github.com/kenn-io/agentsview/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI, API
- **Momentum**: 6,604 ★ total (+8 24h / +63 7d) · 692 forks
- **When to Use**: Best for: Developers and platform teams that use multiple coding agents and need to find past decisions, investigate costly sessions, or automate usage reports from accessible logs. Skip if: You only need a single agent's native history, need invoice-grade reconciliation, or expect complete coverage from agents whose transcripts you cannot access.

## Overview
```text
### Architecture & Core Mechanics
AgentsView is a Go session archive and analytics application, not an agent runtime. On startup it discovers supported session sources, syncs them into local SQLite, and serves the browser UI and API. The web UI, API, sync, and file watchers share one server process, launched with `agentsview serve` in the foreground or `agentsview daemon start` in the background. The desktop app and ordinary session CLI commands can share a detached daemon, while daily reports can read saved archive data without one.

The Docker build compiles the `frontend/` assets with Node 24.22.1 before the Go 1.27.4 build. The SQLite vector bindings use cgo, adding a native build dependency rather than requiring a separate vector server for the local path. `openapi.yaml` defines an integration surface alongside the CLI, and `go.mod` includes Huma v2 and `fsnotify`. Supported S3 sources and PostgreSQL-backed serving are optional paths, not prerequisites for the local archive.

### Key Capabilities & Differentiators
SQLite FTS5 searches message content across agents, with project and date filters and optional CJK search, including Chinese segmentation through `simple`/cppjieba. Semantic search is opt-in, uses local embeddings by default, and falls back to keyword search while indexing is incomplete. Optional OCR makes tool-result images searchable. Chrome Sync imports supported ChatGPT, Gemini Apps, and Grok web history alongside coding-agent sessions.

Usage reports handle cache creation and read tokens, offer per-model breakdowns and timezone-aware date buckets, and use LiteLLM and OpenRouter rates with an offline fallback. Per-session usage exposes output tokens, peak context, pricing availability, and unpriced models; diagnosis adds context growth, compactions, large tool results, and retry candidates. `agentsview report stats --format json` emits schema version 1 for session, tool, and cache analytics. For CI, `agentsview capture run` records one non-interactive Claude Code or Codex invocation without a daemon.

### Trade-offs & Limitations
Compared with native agent history, AgentsView trades an extra archive and sync step for cross-agent search and reporting. Compared with provider billing dashboards, it lets you investigate the transcripts and usage behind a cost estimate, but that estimate is not an invoice: coverage depends on the logs and model pricing. Repository attribution in v0.49.1 likewise depends on tool working directories or explicit file paths; without that evidence, a reply falls back to the session repository. Daily reports read saved data, so sync first when freshness matters.

Coverage is bounded by what each agent leaves accessible. Aider needs an explicit history directory, and Amp support is deprecated because newer versions may leave only local stubs. Git-derived outcome metrics are opt-in because large or missing repositories can make collection slow or brittle. Local storage simplifies data custody, but transcripts and mirrors still need access controls and retention rules. Default secret masking on export is useful, not a substitute for reviewing an export before sharing it.

### Hardware & Deployment Guide
For a workstation, use the standalone CLI on macOS, Linux, or Windows, or the desktop app on macOS or Windows. `agentsview serve` starts the local UI at `http://127.0.0.1:8080`. Basic SQLite search and reporting do not require PostgreSQL, an embedding service, or a GPU. Budget disk for the archive and indexes, and measure first-sync and indexing overhead on representative data before rolling out optional semantic search or OCR. Node and Go are source-build dependencies, not separate services needed by the published image.

For Docker, persist `/data` in a named volume and mount each required agent log root read-only; the image runs as root and cannot discover unmounted sources. It listens on `0.0.0.0` inside the container and requires a bearer token by default. Keep host port publication on loopback unless remote access is intentional. For forwarded or proxied access, use `--public-url` for the exact browser origin; it does not set up a listener or proxy. Enable `--require-auth` when exposing the native server beyond loopback. Recent releases added incremental Chrome Sync for ChatGPT in v0.48.0, whole-session JSON Lines export in v0.49.0, and reply-level repository attribution for Claude Code and Codex reports in v0.49.1.
```

## Key Capabilities
```text
- Ingestion: Discovers and syncs local logs from Claude Code, Codex, and dozens of other agents into SQLite.
- Search: SQLite FTS5 supports project and date filters, optional CJK search, and opt-in semantic indexing with keyword fallback.
- Cost accounting: Handles cache creation and read tokens, supports per-model daily breakdowns, and returns per-session costs as integer microdollars.
- Repository attribution: v0.49.1 adds schema 8 with `--by-machine`, using tool working directories and explicit file paths to attribute Claude Code and Codex replies.
- CI integration: `agentsview capture run` preserves child streams and exit outcomes and writes versioned usage data without starting the daemon.
- Portability: v0.49.0 adds whole-session JSON Lines export with default secret masking; the container can also serve from PostgreSQL in `pg-serve` mode.
```

## Quick Start / Clone
```bash
curl -fsSL https://agentsview.io/install.sh | bash
```
