A lab-neutral, local-first ledger for Claude Code, Codex, Cursor and Grok sessions.
Try the live demo · Install · Docs · Website
c5d32a2d-c992-409e-9275-b0cf5dfa4faf.mp4
Sessionly keeps a ledger of your Claude Code, Codex, Cursor and Grok sessions, on your own machine: which tools ran, which files changed and what it cost. Then it counts how many of the agent's lines are still in the file later, and still in the pull request after review.
You decide whether anything is shared. Nothing leaves your machine until you connect it to a server, and source code never does.
The demo is Sessionly's own repository, built with the agents it measures. Sign in with Google or GitHub to open it; it is read-only. As of 22 Nov 2026:
| Agent | Sessions | Cost | Lines still there |
|---|---|---|---|
| Claude Code | 16 | $888.06 | 73% |
| Grok | 8 | $40.65 | 17% |
| Codex | 2 | no cost | 89% |
| Cursor | 1 | no cost | 100% |
| Total | 27 | $928.71 | 63% |
27 sessions, 37h 12m active, 688 files changed. 5 of the 27 costs are estimates, and 4 sessions have no cost figure: the Codex ones were imported before Sessionly estimated Codex costs from their tokens, and the Cursor session and one Grok session reported none. One repository and one developer over nine days: a record of this work, not a benchmark of the agents. The demo is brought up to date every day, so its figures have moved on since.
- Four agents, one record. Claude Code, Codex, Cursor and Grok, on a machine or in the cloud, mapped to the same tool names and the same session record. A row means the same thing whichever agent produced it.
- Survival, not volume. Lines written is easy to inflate. Sessionly counts how many of an agent's lines are still there later, and still in the pull request after review.
- Lab-neutral. Sessionly is not any agent maker's tool. It reads every agent's sessions the same way and says where one records less, so a comparison isn't scored by one of the players.
- A ledger, not marks in your repo. Nothing is written into your commits: no notes, no trailers. Pull requests are matched to sessions by hashes of the lines, on your server.
- Private by default. Capture, parsing and redaction happen locally. Uploads are opt-in, the default upload has no text from prompts, commands or files, and source code is never sent.
Each release has a binary for Linux and macOS.
Unpack it and put sessionly on your PATH, or install it from crates.io with Rust 1.89 or
later:
cargo install sessionlyThen:
sessionly install # adds the capture hooks for Claude Code, Codex, Cursor and Grok
sessionly status # hooks installed? how many sessions captured?
sessionly import # bring in sessions from before the hooks were installedsessionly update moves to a newer release. More: Install.
sessionly list # sessions, newest first, with filters and text search
sessionly summary # totals per user, repo, model, tool or day
sessionly show <session> # one session: cost, prompts, files changed, tools, subagents$ sessionly list
ID TOOL STARTED (UTC) ACTIVE COST FILES LINES REWRITTEN REPO PROMPT
2b02c8f5 Claude Code 2026-11-13 18:29 14s $0.17 2 +24 -0 1/2 e2e2 Do these steps in order, one tool call each: 1. Write a …
6c6a61b0 Claude Code 2026-11-13 18:10 15s $0.29 1 +1 -0 0/1 e2e2 Do these steps in order, one tool call each, and keep go…
More: Command line, the rewrite rate, and what is known of each agent's sessions.
A small local program does the work. A server is optional.
- Capture. A hook appends each agent event to a local file in 2–4 ms. It only observes: it can't block or change a session.
- Read. Tokens, models and cost come from the transcripts and session files the agents keep themselves.
- Normalize. Both become one record per session in a local SQLite ledger at
~/.sessionly: prompts, tool calls, files, subagents, cost. - Measure. On every sync, the lines each session added are counted again in the files as they are now.
- Upload. Only if you connect a server. Paths are made relative and the content level you chose is applied first.
Claude Code, Codex ──hooks───────┐
Cursor, Grok ──────their files───┼──▶ sessionly (local Rust binary) ──▶ ~/.sessionly/ledger.db
cloud agents ──────repo hooks────┘ │
└── upload, if connected ──▶ Sessionly server ──▶ team dashboard
The ledger is derived data: delete it and sessionly sync --force rebuilds it.
Claude Code's cloud sessions, Cursor's cloud agents and Codex's cloud tasks are captured through hooks the repository carries:
sessionly install --repo # in the repository's root
git add .sessionly .claude/settings.json .cursor/hooks.json AGENTS.md
git commit -m "Capture cloud agent sessions"More: Cloud sessions.
A GitHub Action reports each pull request to the server, which works out how much of it coding agents wrote, with which models, and how those lines fared in review. Both sides send hashes, never source code. More: Pull requests.
The server receives uploads and serves the team dashboard. Use the hosted one at app.sessionly.dev (free during early access), or run your own:
docker compose up -d
# open http://127.0.0.1:8080, make a token on the Connect page, then:
sessionly connect http://127.0.0.1:8080 --token sly_…
sessionly uploadA server of your own has no sign-in: whoever can reach it is its admin, so keep it on a network you trust. Signing in with Google or GitHub, with people who see only their own sessions, is the hosted service's.
Owners can export everything as JSONL or delete the organisation at any time. More: Server, Uploading, Data and privacy and the API reference.
Everything is at docs.sessionly.dev, built from
docs-site/, where each page also reads well on GitHub:
Install ·
Command line ·
Commands ·
Agents ·
Cloud sessions ·
Data and privacy ·
Uploading ·
Server ·
Configuration ·
API ·
Pull requests ·
Editions
Everything outside ee/ is Apache-2.0 (LICENSE): the sessionly binary, the server
and the dashboard. It never needs a license key. ee/ (LICENSE-EE) holds the
Business and Enterprise features, and what runs Sessionly as a service for many organisations
(signing up, signing in with Google or GitHub). More: Editions and license.
Issues and pull requests are welcome. Contributions use DCO sign-off (git commit -s); see
CONTRIBUTING.md.
cargo test
cargo clippy --all-targets
pnpm typecheck && pnpm test # the TypeScript side and the GitHub Action
scripts/dummy-session.sh # runs a short real Claude Code session that exercises most hooksThe website (sessionly.dev) is the static pages in website/,
with no build step and one analytics script; python3 -m http.server -d website previews it. The docs are
the Jekyll site in docs-site/; its README says how to
preview them.
If Sessionly is useful to you, a ⭐ helps other people find it.
