KIvanow/sessionly
Local-first ledger for coding-agent spend and the lines that survive PR review
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
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.
You need invoice-grade cost reconciliation, a semantic measure of code quality, or a community self-hosted dashboard with built-in multi-user authentication.
Quick Start & Installation
cargo install sessionlyComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| sessionly ★ | 189 | +1 | TypeScript | Apache-2.0 | Local-first ledger for coding-agent spend and the lines that survive PR review |
| herdr | 54.1k | +871 | Rust | Apache-2.0 | Rust terminal multiplexer for persistent, multi-machine coding-agent workspaces |
| cc-switch | 159.1k | +1.7k | Rust | MIT | Tauri desktop manager for AI coding providers, local routing, and MCP config |
| claude-code-router | 38.5k | +101 | TypeScript | MIT | Local model gateway for routing coding agents across providers |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/KIvanow/sessionly.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about sessionly
How does Sessionly connect agents and pull requests without MCP or commit metadata?
Does Sessionly need a GPU, and how should I size it?
Can a company self-host it, and where are the licensing and access-control boundaries?
When is it worth adding Sessionly instead of relying on native logs, billing, or PR analytics?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy