---
title: Editors and agents
description: Which tools Hindsight works with, what each one tells it, and how they get connected without you doing anything.
sidebar:
  order: 1
---

Hindsight works with Claude Code, Codex, Cursor, Antigravity, OpenCode, VS Code and Zed. You don't install anything
for them. The desktop app finds the ones on your computer and hooks the daemon into each, the first time you run it and
again every time it starts. Install a new tool later and it gets picked up the next time Hindsight opens.

**[Claude Code](/docs/tools/claude-code)**

Hooks in `~/.claude/settings.json`.

**[Codex](/docs/tools/codex)**

Hooks in Codex's `hooks.json`. You trust them once, inside Codex.

**[Cursor](/docs/tools/cursor)**

Agent hooks, Tab completions, and the extension for your typing.

**[Antigravity](/docs/tools/antigravity)**

One hooks entry for the app, the IDE and the CLI, plus the IDE extension.

**[OpenCode](/docs/tools/opencode)**

A small plugin in OpenCode's plugins folder.

**[T3 Code](/docs/tools/t3-code)**

Runs Codex and Claude through their own hooks, here or from another computer.

**[VS Code](/docs/tools/vscode)**

The extension that counts your typing and your diff reviews.

**[Zed](/docs/tools/zed)**

Zed's own agent works on its own. Typing needs Zed's Hindsight extension.

**[Other editors](/docs/tools/other-editors)**

WakaTime plugins, and what an editor with no plugin gets.

## What each tool tells Hindsight

Two kinds of tools: agents, which report their own work (prompts, runs, tool calls), and editors, which report what
you type and read. Cursor and Antigravity are both, so they're two connections each.

| Tool | Your typing | Diffs and files you read | Your prompts | Agent runs and tool calls | Tokens and model |
| --- | --- | --- | --- | --- | --- |
| Claude Code | No | No | Yes | Yes | Yes |
| Codex | No | No | Yes | Yes | Yes |
| Cursor | Yes, with the extension | Yes, with the extension | Yes | Yes | Yes |
| Antigravity | Yes, in the IDE, with the extension | Yes, in the IDE | Yes | Yes | Yes |
| OpenCode | No | No | Yes | Yes | Yes |
| VS Code | Yes | Yes | No | No | No |
| Zed | Yes, with Zed's extension | No | Yes, Zed's own agent | Yes, Zed's own agent | Yes, Zed's own agent |

Everything is a count, a length or a keyed hash. Prompt text, your code, file paths and tool output are read on your
computer to work out a length or a line count, and then dropped. [What is recorded](/docs/privacy/what-is-recorded) has
the whole list.

Typing, prompts and diff reviews are what you did, so they start and extend your hands-on time. Runs and tool calls are
what the agent did, so they're what [watching](/docs/counting/watching) and
[unattended](/docs/counting/unattended) time are measured against. If you want the rules for how those turn into minutes,
start at [How time counts](/docs/counting).

### Commits

Commits are a separate hook. The first time one of the agent hooks above fires inside a git repo, the daemon adds a
`post-commit` hook to that repo. A commit made from an agent's shell is recorded as the agent's. Hindsight knows it's
the agent from an environment variable the agent sets: `CLAUDECODE`, `CODEX_TOOL_CALL_ID`, `CURSOR_AGENT`,
`ANTIGRAVITY_CONVERSATION_ID` or `OPENCODE_SESSION_ID`. Anything else is yours.

Set `HINDSIGHT_GIT_HOOK=off` in the environment the agent runs in and the daemon stops adding the hook on its own.

## How tools get connected

The daemon does it with one command, `hindsight-daemon connect`. The installer runs it after installing, and the
desktop app runs it in the background at every start.

It only touches tools it finds on your computer, and it writes nothing when a tool is already connected. Every hook
points at the daemon's full path, so nothing has to be on your `PATH`. Where each tool's files live is on that tool's
page. On Windows `~` means your user folder, like `C:\Users\you`.

| Tool | What gets written |
| --- | --- |
| Claude Code | Hooks in `~/.claude/settings.json` |
| Codex | Hooks in `~/.codex/hooks.json` |
| Cursor agent | Hooks in `~/.cursor/hooks.json` |
| Antigravity agent | A `hindsight` entry in `~/.gemini/config/hooks.json` |
| OpenCode | A plugin folder at `~/.config/opencode/plugins/hindsight` |
| VS Code, Cursor, Antigravity IDE | The Hindsight extension, installed with each editor's own command line |
| Zed | A `daemon-path` file for Zed's extension to read |

Run by hand, `connect` prints one line per tool:

```text
Claude Code       already connected
Codex             connected: hooks added to C:\Users\you\.codex\hooks.json; trust them in Codex (Settings > Hooks, or /hooks)
OpenCode          not installed
VS Code           already connected
Cursor            already connected
Antigravity       not installed
Cursor agent      already connected
Antigravity agent not installed
Zed               not installed
```

`not installed` means Hindsight didn't find the tool. `skipped` comes with a reason, and `failed` with an error. The
same output goes to `connect.log` in Hindsight's data folder every time the app runs it.

## Check that it's working

The quickest check is to use the tool. Send a prompt to your agent, or type in your editor, and look at the timeline
on your [Today page](/docs/dashboard/today).

Two other places say more:

- **The tools step of setup.** Settings, then the Setup tab, then **Run setup again**. The "Here's what I found" step
  runs `connect` and shows a tick next to each tool it connected. Tools it didn't find are listed as "Not installed on
  this computer". A tool that failed is tried three times, two seconds apart, before it's marked as needing a hand.
- **The daemon.** `hindsight-daemon status` prints how many events it has stored. Run it, send a prompt, run it again.
  The number should go up. The installer doesn't put the daemon on your `PATH`, so use its full path. On Windows
  that's `%LOCALAPPDATA%\Hindsight\hindsight-daemon.exe`.

If a hook runs but something goes wrong inside it, the error goes to `emit.log` in the data folder. A hook never prints
anything into your agent's output and never fails a prompt.

The data folder is `%LOCALAPPDATA%\hackclub\hindsight\data` on Windows,
`~/Library/Application Support/org.hackclub.hindsight` on macOS and `~/.local/share/hindsight` on Linux.

## Reconnect

If a tool shows up as not connected, try these in order.

1. **Restart Hindsight**

    Quit it from the tray ("Quit Hindsight"), then open it again. It runs `connect` on the way up. The daemon keeps
    running while the app is closed, so quitting doesn't stop counting.

2. **Run setup again**

    Settings, Setup tab, **Run setup again**. This runs `connect` right away and shows what happened to each tool.

3. **Run it yourself**

    From a terminal, with the daemon's full path:

    ```powershell
    hindsight-daemon connect --vscode-extension "C:\path\to\hindsight-vscode.vsix"
    ```

    Leave out `--vscode-extension` and the editors come back as `skipped`, because that flag is how the extension
    package reaches them. The installer keeps `hindsight-vscode.vsix` next to the daemon.

Codex is the one tool with a step of its own: it won't run hooks until you trust them. See [Codex](/docs/tools/codex).

## Disconnect a tool

`hindsight-daemon disconnect` takes out everything `connect` added. Your own hooks, settings and other plugins stay.
The Windows uninstaller runs it for you, but not when it's only updating.

There's no switch for leaving one tool out. The next time Hindsight starts, `connect` puts the hooks back, so a
tool you remove by hand comes back too. The way to stop for good is to uninstall Hindsight.

Disconnecting doesn't touch the commit hooks in your repos. They do nothing once the daemon is gone.
