Skip to content

Throughput ​

The Throughput tab in Settings → Analytics shows what your sessions' work costs and how fast it gets delivered: API-equivalent cost and how much of it is cache, where the work went, how much context each call carried, how long issues take from opening to close, which tests catch problems, and how much of your weekly usage limit is left.

What it shows ​

Pick a range at the top of the page (24 hours, 7, 30 or 90 days). The tab counts whole days in UTC, so a range starts at midnight UTC.

  • Coverage comes first: which computers' sessions are counted, when each was last synced, and anything missing. Read it before the numbers.
  • Cost and split: the API-equivalent cost of the work, by day and by category (cache reads, cache writes, output, uncached input). It is what the same tokens would cost at API prices, not what your subscription charges.
  • Breakdown: cost per account, per session or per issue.
  • Stages, models and nodes: where the work went.
  • Context per call: how many tokens each request carried, as percentiles, and the context at the start of a session.
  • Waits: after a gap of more than an hour, the cache has to be written again unless something kept it warm. This section shows what started the work again (you, a project-manager session, a scheduled task, a background task), how many of those reopenings rewrote the cache and how many found it still warm, and what the rewrites cost. Below the table, a line compares this computer's keep-alives (below) with the rewrites they avoided.
  • Effort and model: requests by reasoning effort and model.
  • Lead time and Quality: hours from opening an issue to closing it, by stage, plus reopened issues, follow-up bugs, failed CI runs and the hours the main branch was failing. These need GitHub (below).
  • Tests that catch problems: the tests that fail most, in CI and in your sessions' own test runs.
  • Weekly quota: how much of each account's weekly limit is left, how fast it is being used, and when it runs out.
  • Points: delivered work by lane, once issues carry lane labels.
  • Weekly digests: a report written every Monday morning for the week before.

What is estimated ​

  • Cost is API-equivalent and priced from the published rates for each model. Requests whose model is unknown are priced as the default model, and the tab says how much was priced that way.
  • Quota weights, how much each kind of token uses of the weekly limit, are fitted from your own daily usage and labelled estimated (Tier 3). They need at least ten usable account-days: an account's day with about 20 hours of usage samples and no weekly reset. With several accounts that can take only a few days.
  • Starting context is a session's first real request to the model, including its first prompt. It reads higher than Claude Code's own context report before any prompt, which is a different measurement.

What is not counted ​

  • Claude Code sessions run in the cloud, and sessions started outside Hapimatic, are not counted: their transcripts are not on any of your computers.
  • Claude Code deletes transcripts after 30 days. Older work keeps its cost totals but not its finer breakdowns, unless they were collected in time.
  • Messages Claude Code writes itself, such as a usage-limit error, are not model requests: they never count as requests, context or effort, and a session that opened with one is measured from its first real request.
  • Transcripts with no model request, such as the short check Hapimatic runs when a session starts, are not counted.
  • Work with no account recorded is shown as unattributed.

GitHub numbers ​

Lead time, quality, tests caught in CI and merged pull requests come from GitHub. They are collected on one computer, the one that runs the shared jobs, and only for repositories you list:

bash
HAPI_THROUGHPUT_GITHUB_REPOS=owner/repo:test.yml,owner/other-repo

After each repository you can name its CI workflow file (for CI numbers) and, after a second colon, its main branch. Collection uses your GitHub sign-in (gh auth login, or a GH_TOKEN) and stays well inside GitHub's rate limits. Without a sign-in the tab says GitHub is not available on that computer.

Keeping the cache warm ​

A session that waits more than an hour, on you, an approval or a project-manager message, loses its prompt cache, and the next message writes the whole conversation into the cache again. For a large session that one rewrite can cost more than the reply.

Hapimatic keeps the cache warm while a large session waits. About every 50 minutes it sends the session a small background request that reads the cache and so keeps it alive. The request never appears in the chat or the transcript, the session's agent never sees it, and a session waiting at an approval stays where it is. It stops when the next real message arrives, or after 12 hours of waiting.

It runs only for sessions with at least 150,000 tokens of context, on the default launcher, and not while someone is typing in the session's message box, a permission request or queued message is waiting, or the session is rate-limited. Each request costs about what reading the session's context from the cache costs, a small fraction of a rewrite. The Waits section shows what the requests cost on this computer and what they saved.

To turn it off, set "cacheKeepalive": { "enabled": false } in the server's settings.json, which is read every minute, so it needs no restart. Setting HAPI_CACHE_KEEPALIVE=0 in the server's environment also turns it off, but only once the server restarts. The same block takes contextThresholdTokens, intervalMinutes, deadlineMinutes, capHours and typingQuietMinutes.

Turning it off ​

Set HAPI_THROUGHPUT_DISABLED=1 in the server's environment, or "throughput": { "disabled": true } in its settings.json, and restart. Collection stops and the tab says throughput telemetry is not available. Data already collected stays on disk.

The self-hosted core is licensed under AGPL-3.0.