The Time Trakkr plugin now records Cursor's agent, in the editor's agent chat
and in the Cursor CLI, cursor-agent, interactive and with -p, in any
repository an admin has mapped to a project. Restart the editor after
installing, so it loads the plugin.
Install it once: cursor-agent plugin marketplace add https://github.com/Time-Trakkr/agent-plugins, then /plugins in
cursor-agent, Marketplace, timetrakkr, Install for you. Then run
npx @timetrakkr/cli cursor setup once: it shows the two entries it adds to
~/.cursor/hooks.json and asks first, and with them whole turns are counted.
What it will not do:
- Count whole turns without
cursor setup. Without it, the Cursor CLI tells the plugin when the agent uses a tool, but not when you send a prompt or when the agent stops, so a turn counts from its first tool call to its last. That is lower than the time the agent worked, never higher. - Record Cursor cloud agents. The plugin is not on that machine.
- Send token counts. Token cost for Cursor sessions shows "not captured".
- Leave out permission waits. Cursor does not report them, so they are counted.