Hands-on time
What keeps the clock going while you type, prompt and review, how long each thing counts, and what the time in between does.
Hands-on time is you working. Typing code, writing a prompt, reviewing what the agent did, committing. Every sign that you’re there keeps the clock going for 35 seconds.
What counts as a sign you’re there
These all count:
- Sending a prompt to your agent.
- Typing in an editor that has the Hindsight extension.
- Reviewing a diff, or reading a file your agent changed.
- Answering Byte, or writing a note.
- Making a git commit yourself.
- Keyboard or mouse input while an app where you work with your agent is in front.
The last one is called presence, and it’s different from the rest. The others are things you did to the work. Presence only shows you’re at the computer. Hindsight needs both (more on that below).
The 35-second rule
Two signs less than 35 seconds apart make the time between them hands-on time. Exactly 35 seconds still counts. A longer gap doesn’t.
There’s no trailing credit. A single keypress with nothing after it earns nothing, because the time is counted between signs, not after them.
The daemon records presence at most every 15 seconds (it checks every 5), so a steady stretch of typing or scrolling has no holes in it.
Leaving the app ends the stretch right there. Switch to your browser 20 seconds after your last keypress and don’t come back, and the clock stops when you left, not 35 seconds after your last keypress. A quick look is fine: if you’re back in your agent’s app within 15 seconds, Hindsight treats it as a glance and carries on. That’s why checking a message doesn’t cost you anything.
Where presence is recorded
Presence counts in terminals, editors and the desktop apps for Claude, Codex and OpenCode. That covers Windows Terminal, iTerm2, GNOME Terminal and the rest, VS Code, Cursor, Zed, Windsurf, Antigravity, Sublime Text and the JetBrains IDEs. Hindsight’s own windows count too, so answering Byte isn’t leaving.
Input in any other app is ignored, and the name of that app is thrown away. Hindsight never records which keys you pressed or what’s on your screen, only that there was input, and which of those known apps it was in.
If you work somewhere that isn’t on the list, set HINDSIGHT_AGENT_APPS to a comma-separated list of executable or app names. It replaces the default list.
Each check only looks at input from the last 20 seconds. Older input isn’t recorded.
Presence alone doesn’t last
A second only counts if it’s within 5 minutes of something you actually did, before or after. A prompt, an edit, a diff review, a commit and an answer to Byte all qualify. Scrolling and mouse movement don’t.
The reason is simple. Someone scrolling while an agent builds their whole project is there, but isn’t contributing. Without this rule, one prompt and a jiggling mouse would pay out all night.
How far each thing reaches
Not every contribution is worth the same 5 minutes.
| What you did | How far it reaches |
|---|---|
| A prompt, an answer or a note with 20 or more characters | 5 minutes after. Before, as long as writing it took (see below). |
| An edit with 20 or more typed characters | 5 minutes, before and after |
| A diff review, a file review, your own commit, a snapshot | 5 minutes, before and after |
| A quick reply: fewer than 20 characters, like “ok” or “continue” | 1 minute, before and after |
| A prompt you already sent in the last hour (same text) | 1 minute, before and after |
| Stopping the agent mid-run | 1 minute, before and after |
If you type “continue” every few minutes you’d otherwise keep the clock going forever, so a short reply only buys a minute. Sending the same prompt again shows no new thought, so it’s treated the same way. Stopping the agent (Esc in Claude Code) is a single key, so it’s a quick reply too, but it also shows you were watching closely enough to see it go wrong.
For edits, only the characters you typed count. If you pasted most of what changed, or a completion or the agent wrote it, those characters don’t add up to 20. Prompts are judged by their whole length, since Hindsight can’t tell typed from pasted in a terminal.
The 5 minutes is also a default that the server sets.
Writing a prompt counts
Writing a long prompt takes time, and that time is hands-on even if another agent is busy while you write. Hindsight assumes you write 3 characters a second, so a 300-character prompt gives you the 100 seconds before you sent it. It reaches back at least a minute and at most 5.
A prompt only counts if the computer saw keyboard or mouse input in your agent’s app within 25 seconds of it, before or after. A script that types into your agent’s session while nobody’s at the computer earns nothing, and it doesn’t open a window of its own either.
The input can be on another of your computers. If you drive an agent on your desktop from your laptop (over SSH, or with T3 Code), the desktop records the prompt and the laptop records your typing, and the prompt counts as typed on the laptop. Both computers need Hindsight, signed in to the same account.
Reviewing diffs
With the Hindsight extension in VS Code or one of its forks, a diff counts as reviewed when it’s been on screen with the window focused for 15 seconds in one go, and you scrolled or clicked in it. The same diff doesn’t count twice, but if the agent changes the file, it’s a new diff.
Many agents show changes somewhere an extension can’t see a diff, like Cursor’s inline Keep and Undo. So reading a file for a while (scrolling or clicking in it, 15 seconds) counts as a review too, but only if an agent edited that file since you last reviewed it. A hook remembers each agent edit for 24 hours. Reading a file the agent never touched records nothing.
Commits
A git post-commit hook records each commit. Your own commits count as a contribution. A commit your agent makes doesn’t, whichever agent it is (Claude Code, Codex, Cursor, Antigravity or OpenCode). Hindsight tells by the environment the commit ran in, and an agent making a commit says nothing about you being there.
Commits replayed by a rebase don’t count either. Each one was recorded when it was first made.
Editors without the extension
An editor with a WakaTime-compatible plugin can point at the daemon too. A save, or lines you changed, counts as an edit. Opening a file or moving the cursor is presence only, so clicking through files doesn’t earn anything. Heartbeats for AI-written code are dropped. These plugins can’t say how much you typed, so an edit from one reaches the full 5 minutes.
A browser plugin that sends heartbeats for browsing, researching or learning counts as research, which is a contribution.
What about the time between?
While no agent is working, the time between two signs under 35 seconds apart is hands-on. While an agent is working, it depends. If both signs are only presence (you’re scrolling its output), that stretch is watching time, not hands-on. You were following the agent, not working alongside it. If either sign is something you did, it’s hands-on. And the time you spent writing your next prompt always is.
Your total adds both kinds together, so the split only changes the labels on your dashboard. It’s there to show where your time went.