Projects and languages
How your counted time is split by project, language and tool, and how Hindsight works out which project you're in.
Once a second is counted, Hindsight files it under a project, and your dashboard also says which language and which tool it went to. None of this changes your total. It only decides where the time shows up.
How a project is found
A project is a name, and it usually comes from git. The daemon looks at the folder you’re working in and walks up (at most 40 levels) until it finds a .git. The name of that folder is the project. If there’s no git repo, it uses the name of the working folder itself.
Where the folder comes from depends on what you were doing:
| What you did | Where the project comes from |
|---|---|
| Prompted or ran an agent | The agent’s working directory |
| Typed in an editor with the Hindsight extension | The file’s git repo, else the editor’s workspace folder, else the folder the file is in |
| Made a commit | The repo’s root folder |
| Answered Byte, wrote a note, or took a snapshot | The project of your most recent activity in the last 30 minutes |
| Keyboard or mouse input in your agent’s app | The same: the most recent project in the last 30 minutes |
For those last two, the desktop app has no idea what a project is, so Hindsight borrows the one you were just in. Presence doesn’t keep an old project alive: only real activity counts when it looks back. An untitled editor buffer, or a file outside any folder, borrows the same way.
If nothing in the last 30 minutes has a project, the time has none. The dashboard shows it as “No project”.
A project’s name is trimmed and cut to 100 characters. Two raw names that come out the same are one project. The path itself never leaves your computer, only the folder’s name.
Who gets the time
- Hands-on time goes to the project of the later of the two signs it sits between. Switch from one repo to another and the seconds between your last edit in the first and your first in the second go to the second.
- Watching time goes to the project of the agent run. Where two runs overlap, it goes to the one you prompted most recently, as explained in watching time.
- Unattended time goes to the project of its run too.
Time is stored by the minute, per project, and no project gets more than 60 seconds in a minute. If hands-on and watching both land in the same minute, watching only gets what’s left.
Languages
For every minute of counted time, Hindsight looks for the language you were working in. It takes the most recent event in that project with a known language, looking back up to 15 minutes. The time goes to that language.
A language comes from a file’s extension. Rust, Python, JavaScript, TypeScript, Svelte, Go, HTML, CSS, Markdown, Shell and a long list of others are known. A file with an extension Hindsight doesn’t know has no language, and the minute isn’t given to any. Edits, diff reviews and an agent’s file edits all carry a language. Prompts and presence don’t, so a minute spent only prompting takes its language from whatever you touched last.
Which extension maps to which language is in the daemon’s language_from_path, if you need the exact list.
Tools
Each minute also goes to a tool:
- Hands-on time goes to the app you were in, such as VS Code, Cursor, Zed or Terminal. In a terminal, or where the app wasn’t recorded, it goes to the agent you were working with there if there was one within 15 minutes, such as Claude Code or Codex. Your own commits and edits in an editor go to that editor.
- Watching time goes to the agent that was working: Claude Code, Codex, Cursor agent, Antigravity agent, OpenCode or Zed agent. When several agents ran, guessing one by name would be wrong, so Hindsight uses the nearest agent signal before that minute, and “Agents” when it can’t tell.
An answer to Byte goes to the agent you were working with if one ran within 15 minutes of it, and shows as “Byte” otherwise.
Where you see it
Today, Projects and the other dashboard pages show the split by project, language and tool. See projects and today.
The server counts everything, across all your computers, so a project’s totals include time from your laptop and your desktop together.