VS Code
The Hindsight extension counts what you type and the diffs you review. It also runs in Cursor and the Antigravity IDE.
The Hindsight extension is how Hindsight knows you wrote code by hand. It runs in VS Code, and Hindsight installs the same extension into Cursor and the Antigravity IDE. It reports what you do, never what you wrote, with one exception covered below.
What gets installed
The installer ships the extension as hindsight-vscode.vsix next to the daemon. connect runs the editor’s own
command line to install it:
code --install-extension hindsight-vscode.vsix --force
For Cursor the command is cursor, and for the Antigravity IDE it’s antigravity-ide. Hindsight finds each command on
your PATH or in the editor’s usual install folder. The extension is hackclub.hindsight, and it needs VS Code 1.85 or
newer. If the version installed already matches, nothing happens.
An editor counts as installed once its data folder exists (~/.vscode, ~/.cursor, ~/.antigravity-ide) or its
command is found. If the command can’t be found, the connect line says so and the extension isn’t installed.
What Hindsight sees
The extension sends the daemon on your computer four kinds of report, and nothing else. No cursor moves, no file opens, no scrolling.
Edits: what you typed. Every change to the file you’re looking at, while the window is focused, is sorted into
typed or other. A change that adds two visible characters or fewer counts as a keystroke: a letter, an auto-closed (),
Enter with its indentation. Pastes, completions, snippets, formatting, undo and redo, and the agent rewriting a file
you have open count as other. A key held down is mostly ignored: the same keystroke less than 150 ms after the last
counts only three times in a row. The daemon gets the totals, and how many of the keystrokes only deleted. If nothing
in a file was typed, the report is dropped. A paste alone isn’t proof you were there.
Edits go out every 15 seconds while you type, when you save, and when the window loses focus. That keeps them inside the 35 second attention window. A few typed characters only earn a minute of reach, so tapping a key now and then won’t keep the clock going. See hands-on time.
Diff reviews. A diff on screen, in a focused window, for 15 seconds, that you scrolled or clicked in, and hadn’t reviewed before. A diff is identified by its content, so reopening the same one doesn’t count again, but the agent changing the file does.
Reads. The same, for a plain file: 15 seconds on screen, focused, scrolled or clicked. A read counts as a review only if an agent edited that file since you last reviewed it. Otherwise nothing is recorded. That’s how reading what Cursor or Claude Code just changed counts, wherever it showed you the change.
Lines you typed. The text of lines you mostly typed (at least half their visible characters) goes to the daemon on your computer. It key-hashes each line, keeps only the hash, and drops the text. At commit time that’s how Hindsight counts which committed lines are yours and which the agent wrote. Lines under 12 characters and over 2,000 are skipped. Only the counts are uploaded.
Each report carries the file’s path, the editor’s name, and the workspace folder. The daemon hashes the path and drops the rest.
The status bar
An eye icon with today’s effort on the current project appears at the right of the status bar, like 1h 05m or 12m.
Hover over it for the project’s ring, the same one the dashboard draws. If the daemon can’t be reached it shows a
closed eye and the word Hindsight, and the tooltip says why: no daemon token at a given path, the daemon refused the
token, or nothing is answering at the address. Clicking it reconnects.
Settings and commands
| Setting | Default | What it does |
|---|---|---|
hindsight.enabled |
on | Send your edits and diff reviews to the local daemon |
hindsight.statusBar |
on | Show the effort on the current project today in the status bar |
hindsight.dataDir |
empty | The daemon’s data folder (where local-token is). Empty means HINDSIGHT_DATA_DIR, or the default |
hindsight.port |
0 | The daemon’s local port. 0 means HINDSIGHT_PORT, or 5292 |
The command palette has two commands: Hindsight: Show Log opens the Hindsight output channel, and Hindsight: Reconnect to the Daemon re-reads the token and tries again.
You’ll only need dataDir or port if you moved the daemon. The extension reads local-token from the data folder to
authenticate with the daemon.
Things to know
- The extension runs in the UI side. It works in untrusted workspaces and with remote files (
vscode-remote), and reports the remote path. - If the daemon is off, reports queue in memory, up to 500. Reports older than 9 minutes are dropped, because the daemon won’t take them.
- Commits. A commit records how many of its added lines you typed and how many you didn’t. Without the extension (or the Zed one) in the editor you wrote them in, none of them count as typed by you.
Check that it’s working
Type in a file, wait up to 15 seconds, then look at the status bar: the effort should have moved. If you see the closed
eye, hover for the reason. Hindsight: Show Log says which daemon address and token path it’s using and whether it
connected. In the setup step and the connections list, the editor shows as connected when its extensions folder holds
hackclub.hindsight.
Disconnect
Uninstall the extension in the editor as usual, or run:
hindsight-daemon disconnect
That runs --uninstall-extension hackclub.hindsight in each editor that has it. Hindsight installs it again at its next
start unless you uninstall Hindsight. To pause it without removing it, set hindsight.enabled to off.