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

- **GitHub URL**: https://github.com/KIvanow/sessionly
- **Official Docs / Website**: https://sessionly.dev
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: A (80/100 · Maintenance 35/35 · Adoption 5/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.10.2 (2026-12-01) — https://github.com/KIvanow/sessionly/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI
- **Momentum**: 189 ★ total (+0 24h / +1 7d) · 6 forks
- **Topics**: `ai-agents`, `ai-coding`, `claude-code`, `cli`, `codex`, `coding-agents`, `cost-tracking`, `cursor`, `developer-tools`, `devtools`, `github-actions`, `grok`
- **When to Use**: Best for: Developers and teams using multiple coding agents who need local session inspection and, optionally, PR-level attribution of spend and surviving lines without sending source code. Skip if: You need invoice-grade cost reconciliation, a semantic measure of code quality, or a community self-hosted dashboard with built-in multi-user authentication.

## Overview
```text
### Architecture & Core Mechanics
Sessionly separates local collection from optional team reporting. The Rust binary in `crates/sessionly` reads Claude Code and Codex hook events, Cursor and Grok session files, and the OpenCode database. It also reads agent transcripts and session files for model, token, and cost data, then normalizes observations into a derived SQLite ledger at `~/.sessionly/ledger.db`. The hook takes 2–4 ms to append an event and is observational: it cannot block or change an agent session.

`sessionly install --repo` configures repository-carried capture for supported cloud workflows. On sync, the CLI checks which lines added by a session still exist in current files. If connected, it applies the chosen content level and makes paths relative before upload. For PR attribution, the GitHub Action in `action/` and the session uploader send line hashes rather than source code; the server does the matching without writing commit notes or trailers. The TypeScript workspace declares Node.js ≥22.18, and the optional Compose server pairs the dashboard application with PostgreSQL. Hooks and native session stores, not an MCP protocol endpoint, are the integration surfaces.

### Key Capabilities & Differentiators
The CLI makes five agents—Claude Code, Codex, Cursor, Grok, and OpenCode—queryable through one session model. `sessionly list` supports filtering and text search; `sessionly summary` groups totals by user, repository, model, tool, or day; `sessionly show <session>` drills into cost, prompts, files, tools, and subagents. The two retention views answer different questions: local sync checks whether added lines are still present in the working files, while PR reporting links session contributions and models to what remains in the pull request after review.

A 25 November 2026 snapshot illustrates both the output and the gaps: 39 sessions, 66 h 2 min of active time, 928 files changed, $1,260.80 in total cost, and 63% of lines still present. Nine costs were estimates and three sessions had no cost figure. That is useful for auditing one developer's work in one repository, not ranking agent quality. Team owners can export records as JSONL or delete the organization.

### Trade-offs & Limitations
Sessionly is a better fit than separate agent transcript viewers when the question spans multiple agents and ends at PR review. Compared with provider billing or generic PR analytics, it connects session spend to surviving lines rather than treating those as separate datasets. The trade-off is measurement fidelity: a common schema does not make every adapter equally complete, estimated token costs are not invoices, and line-hash matches measure textual retention rather than semantic equivalence, correctness, or developer productivity.

Local-first does not mean content-free on disk: the local record can contain prompts and other session details even though default uploads omit prompt, command, and file text. The larger deployment constraint is identity. In the community Compose setup, anyone who can reach the dashboard is its admin; machine tokens do not provide human sign-in. Hosted Google or GitHub sign-in and per-user session visibility should not be assumed to exist in that setup. The CLI, server, and dashboard outside `ee/` are Apache-2.0 and require no key; Business and Enterprise code in `ee/` has separate terms.

### Hardware & Deployment Guide
For local evaluation, use a Linux or macOS release binary on `PATH`, or run `cargo install sessionly` with Rust 1.89 or later. Run `sessionly install` to configure capture, `sessionly status` to check it, and `sessionly import` to ingest earlier sessions. Local use needs neither a Sessionly server nor a GPU. For supported cloud workflows, `sessionly install --repo` sets up repository capture for Claude Code cloud sessions, Cursor cloud agents, and Codex cloud tasks; those configuration changes must travel with the repository.

For team reporting, `docker compose up -d` builds the application and starts it with PostgreSQL. Open the dashboard on port 8080 by default, create a token on Connect, and use `sessionly connect <url> --token <token>` followed by `sessionly upload`. The default port mapping is not loopback-only, so bind it explicitly to loopback for a local trial or enforce a trusted network boundary. Add the GitHub Action for PR attribution. The v0.10 release series introduced outcome linking, and v0.10.2 describes cost and surviving agent lines at PR granularity. Size the server around ingest, retained history, and dashboard traffic rather than model compute.
```

## Key Capabilities
```text
- Capture: Claude Code and Codex hooks, Cursor and Grok files, and the OpenCode database feed one session schema.
- Local storage: The Rust CLI writes a derived SQLite ledger at ~/.sessionly/ledger.db, rebuildable with sessionly sync --force from available inputs.
- CLI inspection: list filters and searches sessions, summary groups totals, and show exposes tools, prompts, files, and subagents.
- Outcome attribution: Sync rechecks added lines against current files; the GitHub Action and server use line hashes to link sessions to PRs.
- Upload controls: Capture and redaction run on-device; opt-in uploads make paths relative and omit prompt, command, and file text by default.
- Self-hosting: docker-compose.yml runs the dashboard server and PostgreSQL; machine uploads use tokens, while dashboard access relies on network isolation.
```

## Quick Start / Clone
```bash
cargo install sessionly
```
