Skip to content
Hindsight
Esc
↑↓navigate↵open⌘Jpreview
On this page

What is uploaded

What the daemon sends to the server, when, how it's chained and receipted, and what the server keeps.

The daemon sends the events from what is recorded to the server, and a little more. The server works out your time from them. Your computer never reports a total.

When it uploads

Once a minute, while you’re signed in. Sync now in the app’s Settings, under Setup, does it right away, and signing out does one last upload first.

Signed out, nothing is uploaded. Events pile up in your local database and go up after the next sign in.

Each time, the daemon does the same few things:

Seal the new events into a batch

Pending events are grouped into a batch and chained to the one before it (see below).

Ask the server where it is

The daemon asks for the newest batch the server holds from this computer. If the server’s copy doesn’t match yours, the daemon stops and says so rather than guessing.

Send what's missing

Missing batches go up in chunks of about 2,000 events. A request can hold at most 500 batches or 50,000 events.

Record the receipt

If the server hands back a receipt, the daemon records it as an event (see below).

Every request carries this computer’s sign-in key as a bearer token. The key is made when you sign in, and the server keeps only a hash of it.

The hash chain

A batch is a list of events plus two hashes. Its hash is blake3(previous batch's hash + the events as canonical JSON), where canonical means keys sorted and no extra spaces. The first batch chains onto 32 zero bytes.

The server stores a batch only if it links onto the newest one it already has and its hash matches its events. So nothing you’ve uploaded can be quietly rewritten, dropped or reordered later, by you or anyone else. A resent batch is accepted if it’s identical to the one stored, and refused with a conflict if it differs.

This is a chain, not a signature. It proves the history wasn’t edited after the fact. Who sent it comes from the sign-in key.

It also means the app can’t take an uploaded event back. If you wrote something to Byte you’d rather not have kept, your account says what you can and can’t do.

Receipts

A hash chain alone can’t say when an event was made. A modified client could upload today a batch dated last week.

So when an upload stores new events, the server may hand back a receipt, at most one every 5 minutes: the time on the server’s clock and a keyed hash over that time and your computer’s id. Only the server can make one, and it only works for that computer. The daemon records it at once as a receipt event, which carries nothing else, so it’s sealed into the chain after everything recorded before it.

From then on, an event sealed after a receipt can’t be dated more than 20 minutes before that receipt. The 20 minutes leave room for a slow clock and for the daemon finding an interrupt in a transcript a few minutes late. An event that claims otherwise is set aside.

What the server checks

The server doesn’t trust what it’s sent.

  • Shape. An upload with the wrong schema version, text where text doesn’t belong, or a malformed hash is refused. Every genuine client checks the same rules before storing an event, so a refusal means something was tampered with.
  • Odd events are set aside. An event no genuine client makes can’t be refused, because the chain has no gaps. The upload is accepted, and the event goes into a separate table that nothing counts. The reasons are future (dated over a day ahead), before_hindsight (before 2026-01-01), numbers (out-of-range counts), oversized (a field far longer than a real one), repeated_id, before_receipt and receipt_invalid.
  • Time is the server’s. Every batch is stamped with the server’s clock when it arrives, and credited time is recomputed from the events each upload.

What else goes up

After the events, the daemon sends the other things the dashboard shows. It only does this when they changed.

Kept agent code

Per project and hour: how many lines the agent wrote, and how many were still in the repo a week later. Counts only. The line hashes and where your repos live stay home.

Day summaries

A one-line summary of each finished day, 400 characters at most. Your own agent writes it on your computer (Claude Code, Codex, Cursor’s agent, OpenCode or Gemini CLI, whichever you use most unless you pick one). It reads project names, hours, languages, counts, and your notes and answers to Byte from that day, so those go to whichever agent writes the summary and its provider. Only days with at least 10 minutes of effort get one, back 14 days. It’s on by default. In the app, Settings, Tracking, Day summaries turns it off.

Settings

Your monthly AI plan price, whether day summaries are on, and whether snapshot pictures upload.

Snapshot pictures

The snapshot’s event only carries evidence_hash, a salted hash. The picture is separate.

With Upload snapshot pictures on, which is the default, each sync uploads up to 10 pictures the server doesn’t have yet, newest first. The thumbnail goes first. The full picture goes with its salt, and the server checks the pair against the hash it already holds from the event. A match marks the picture verified: it’s the one that existed when the snapshot was recorded. The server keeps your newest 500 pictures. Delete a picture in the app and the next sync removes it from the server too.

With it off, only the hash leaves. The picture stays on your computer until you open it in the app’s Snapshots page and press Verify picture, which uploads that one. The salt keeps the hash from confirming a guess: without it, nobody holding a candidate screenshot could check it against your event.

Pictures are only readable by you. Not by the public stats, and not through the Review API.

How hashing works

Prompts, session ids and file paths turn into hashes with BLAKE3 in keyed mode. The key is 32 random bytes made on your computer the first time it’s needed, and it never leaves.

The same text on the same computer always gives the same hash. That’s how the server can tell you sent the same prompt again within the hour, and count the repeat for about a minute instead of the full stretch. A different computer has a different key, so its hashes don’t match yours. And nobody can try guesses against a hash: a short prompt or a common file path is as safe as a long one, because without your key there’s nothing to test it with.

What the server stores

  • Your account. From Hack Club sign-in: your Hack Club id, Slack id, email, verification status. Your username, display name, picture, country and time zone, which you can change. Whether your stats are public.
  • Your computers. Name, platform, last seen, a hash of the sign-in key, and the receipt bookkeeping.
  • Every batch’s hashes, and every event as uploaded. That includes project, the hashes, your words to Byte and the branch names on commits. Odd events sit in their own table with the reason they were set aside.
  • Credited time. Hands-on, Watching and Unattended seconds and check-in counts, per minute and project, worked out from the events.
  • The extras. Kept-code counts, day summaries and settings.
  • Snapshot pictures, if you left uploads on.
  • API keys and connected apps. Hashes of the keys and tokens, never the keys themselves, plus what each may do and when it was last used.
  • A log of reads by other people. Who read your data with a promoted key or an app, which endpoint, and for which window. See reviews.

Nothing here deletes old events on a schedule.

Was this page helpful?