{"id":51318686,"url":"https://github.com/netdata/ai-viewer","last_synced_at":"2026-07-01T10:31:46.276Z","repository":{"id":360444277,"uuid":"1250122517","full_name":"netdata/ai-viewer","owner":"netdata","description":"Read-only real-time explorer for AI coding-agent session snapshots (ai-agent v2/v3, claude-code, codex, opencode). Workstation-only, single static binary.","archived":false,"fork":false,"pushed_at":"2026-06-29T06:22:37.000Z","size":14732,"stargazers_count":2,"open_issues_count":8,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-29T08:13:09.274Z","etag":null,"topics":["ai-agent","go","observability","react","sqlite","tracing","typescript"],"latest_commit_sha":null,"homepage":null,"language":"PureBasic","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-26T10:24:59.000Z","updated_at":"2026-06-28T23:22:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/netdata/ai-viewer","commit_stats":null,"previous_names":["netdata/ai-viewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/netdata/ai-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netdata%2Fai-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netdata%2Fai-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netdata%2Fai-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netdata%2Fai-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netdata","download_url":"https://codeload.github.com/netdata/ai-viewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netdata%2Fai-viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35003452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","go","observability","react","sqlite","tracing","typescript"],"created_at":"2026-07-01T10:31:45.217Z","updated_at":"2026-07-01T10:31:46.261Z","avatar_url":"https://github.com/netdata.png","language":"PureBasic","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ai-viewer\n\n[![CI](https://github.com/netdata/ai-viewer/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/netdata/ai-viewer/actions/workflows/ci.yml)\n[![CodeQL](https://github.com/netdata/ai-viewer/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/netdata/ai-viewer/actions/workflows/codeql.yml)\n\nA read-only, real-time explorer for AI coding-agent session snapshots.\n\nWatches your local session storage for `ai-agent`, `claude-code`, `codex`, and `opencode`, normalizes everything into a canonical model, and serves a modern web UI with tracing, topology, timeline, and statistics views.\n\n## Status\n\n**v0.1 — Phase 1 complete.** The single binary serves a live web UI (sessions\nlist, session detail with Overview + Logs, sources/health) for the ai-agent\nv2/v3 adapters, with deep-linking, light/dark theme, and end-to-end +\naccessibility tests in CI. The **Trace, Topology, and Timeline** views — plus a\ncross-session `/topology` page — are delivered (SOW-0006); cross-session\nstatistics/analytics and the payload byte-preview are still to come. See\n`.agents/sow/` for the SOWs.\n\n## Why\n\nWhen you run AI coding agents, every session leaves a trail on disk — turn boundaries, LLM requests, tool calls, sub-agent invocations, payloads, costs. The trail is rich but format-specific and unreadable by hand. `ai-viewer` reads those trails in real time, presents them as APM-style spans, and lets you understand what your agents are doing — across vendors, across time, across sub-agents.\n\n## Supported Source Formats\n\n| Source | Default location | Mechanism |\n|---|---|---|\n| ai-agent v3 (split) | `~/.ai-agent/sessions/{session,payloads}/` | JSONL ledger + gz payload artifacts |\n| ai-agent v2 (legacy) | `~/.ai-agent/sessions/\u003coriginId\u003e.json.gz` | full gzipped opTree per snapshot |\n| claude-code | `~/.claude/projects/\u003cencoded-cwd\u003e/\u003csessionId\u003e.jsonl` | JSONL per session, sharded by cwd |\n| codex | `~/.codex/sessions/YYYY/MM/DD/rollout-*.json` | date-sharded rollout JSON |\n| opencode | `~/.local/share/opencode/opencode.db` | SQLite |\n\nNew formats are added as Go adapters implementing one interface. See `.agents/sow/specs/adapter-contract.md`. **Phase 1 wires the ai-agent v2 + v3 adapters** (auto-discovered under `~/.ai-agent/sessions`); the claude-code, codex, and opencode adapters are planned for a later phase.\n\n## Install\n\n`ai-viewer-serve` is a single binary with the web UI embedded; `ai-viewer-ingest`\npopulates its database. Both are localhost-only and read-only on your source\nfiles.\n\n```bash\ngit clone https://github.com/netdata/ai-viewer ~/src/ai-viewer.git\ncd ~/src/ai-viewer.git\n./scripts/build.sh            # builds the UI + both binaries into bin/\nbin/ai-viewer-ingest \u0026        # ingest your sessions (auto-discovers sources)\nbin/ai-viewer-serve           # serve the UI + API at http://127.0.0.1:7710\n```\n\nTo run it persistently on login (systemd USER units, no root):\n\n```bash\nscripts/install-systemd-user.sh\nsystemctl --user enable --now ai-viewer-ingest.service ai-viewer-serve.service\n```\n\nSee [docs/runbook.md](docs/runbook.md) for full operating instructions and\n[SECURITY.md](SECURITY.md) for the security posture.\n\n## Architecture\n\nTwo binaries:\n\n- `ai-viewer-ingest` — daemon. Watches source directories, parses snapshots, writes canonical rows to SQLite.\n- `ai-viewer-serve` — HTTP server. Serves embedded frontend + REST + SSE.\n\nSee `.agents/sow/specs/architecture.md` for the full mental model.\n\n## License\n\nMIT (see `LICENSE`).\n\n## Contributing\n\nThis repository operates under a delegated-ownership contract documented in `AGENTS.md`. The project maintainer drives product; the assistant drives the technical implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetdata%2Fai-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetdata%2Fai-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetdata%2Fai-viewer/lists"}