Automatic tracking
How commits and reviews become priced time entries, what happens when the evidence is incomplete, and how to correct a day.
Clocktopus does not watch you work. It measures the distance between the things you leave behind.
An entry is the gap between one piece of activity and the piece before it. That is the whole model — everything below is what happens when there is no piece before it, when it arrives late, or when it lands on a day you have already signed off.
How an entry is made
- You push to a repository attached to a project.
- The webhook delivers each commit, with its author time.
- Each commit is measured against the previous piece of activity on your timeline, in your configured timezone.
- The result is filed as an entry against the project that owns the repository.
Two commits at 10:00 and 11:30 produce one entry of 1h30m. A third at 14:00 produces another of 2h30m. Nothing is rounded and nothing is estimated.
Pull request reviews count too. Submitting a review is a timeline event exactly like a commit, which is the only way that work gets recorded at all.
A day with no activity is a day off. If you worked but pushed nothing, add the hours by hand.
Your work hours and the day
A day has to start somewhere. Where it starts depends on what Clocktopus knows.
| Situation | Where the day starts |
|---|---|
| You clocked in | At your clock-in |
| An agent session opened the day | At the time that session started, or where it first did something today if it started on an earlier day |
| Neither, and the first commit falls inside your work hours | Backfilled to your configured start time |
| Neither, and the first commit falls outside your work hours | At the commit itself — 0h, flagged |
Your default work hours and timezone live in your preferences. They are not a rule about when you are allowed to work; they are the assumption used when nothing better is available.
Whether the assumption applies to you at all is the second thing the welcome screen asks, and it can be changed any time under Time tracking in your avatar menu. With Working hours off there is no configured range to fall back on: the third row above behaves like the fourth, a day left open closes at its last activity, and the day starts only where a clock-in, an agent session or an earlier commit puts it. That suits anyone whose hours are irregular enough that the range would mostly be wrong — the agent clocks them in, or they clock in themselves, and everything else is measured from there.
Sunday afternoons, 6 AM starts and midnight pushes are ordinary work. Clocktopus does not flag or discount them. As long as something earlier exists to measure from, the hours are simply the gap.
Clock signals
If your hours are irregular, the assumption is wrong more often than it is right, and signals are how you replace it. They cost a few seconds and they go where you already are:
clocktopus clock in
clocktopus clock out
Backdate one you forgot:
clocktopus clock in --ago 45m
clocktopus clock in --at 08:15
The clock-in / clock-out button on the dashboard and in the Time screen header does the same thing.
Forgot to clock out and back in around a break? On the Time screen, point at the timeline beside an entry and choose Split session. The dialog starts with the time of the entry above and the entry below, and saving splits the session in two there. Entries keep the hours already recorded; a break that would leave an entry outside both sessions is refused. When the entry after the break started before you clocked back in, the dialog offers to shorten it so it starts at the clock-in.
Clocking in on a new day also closes any session you left open yesterday, so you can never end up with two running at once.
Signals matter most in two places: they give the day a real start instead of a backfilled one, and clocking out for a long break keeps that break out of the next entry.
Flagged entries
A flag is a statement about the measurement, not about you. It appears when Clocktopus could establish that you worked but not how long, or when a number it produced may overlap time already counted.
A flagged entry usually records 0 hours — not because the work took no time, but because its starting point is unknown. The commit still becomes the reference for everything after it, so the rest of the day measures normally.
No reference
A session had to open at the commit's own timestamp, because nothing earlier existed to measure from. Typically the first push of a day that nothing else opened, or a push after a long quiet stretch.
The fix: clock in — the CLI can backdate it — or edit the entry and give it a start time. Both replace a guess with something you know.
Out of order
A commit arrived whose timestamp falls before an entry already on your timesheet: a push delivered late, or work pushed from a second machine after the fact. The hours are still measured consistently, but the window they price may already have been counted, so the day's total can be inflated.
This is the one flag that can push a total up. The others leave time uncounted, which is recoverable. Reconcile this one before you invoice.
Force push
A force push arrived while your force-push preference was set to collapse. Rather than pricing rewritten commits as fresh work, Clocktopus records a single zero-duration summary entry. A rebase can replay fifty commits in a second, and counting them as work would invent hours that never happened. The commits are still kept for audit.
Retired flags
Outside work hours, Before clock-in and After clock-out are no longer emitted. Clocktopus used to flag work for happening at the wrong time; that judgement is gone. If you see one of these on an old entry, it is a historical record, not a fresh finding.
Edge cases
Commits do not always land neatly. These are the guardrails, and every entry they produce is still editable.
A commit lands after you clocked out. A fresh session opens at that commit. Its first entry records 0h and is flagged no reference; the ones after it measure normally.
Commits made before you clocked in. They measure from each other, not from a clock-in sitting in their future. Only the earliest records 0h. The first commit after the clock-in measures from the clock-in, so the gap outside the session is not billed twice.
A stretch crossing midnight. No entry may extend past midnight of the day it starts on. A duration that would spill over is capped at 23:59:59, so one entry can never occupy two calendar days.
A session left open overnight. The first webhook or clock-in the next day closes yesterday's session first — at your configured end time if the last activity was inside work hours, at the last activity time if it was after hours — then opens today's. Any unbooked time from that day is backfilled as a single tail entry. Work that crosses midnight is carried into the new day from 00:00: that takes activity on both sides of midnight no more than an hour apart, from commits, your clock-in or an agent session you were at. An evening commit and the next morning's are two days, not one night of work.
A session opened in the night. The night runs from midnight to 06:00, or to your start time when that is earlier. A session that opens in it, from a commit, an agent session or work carried over from the evening, closes at the night's last activity once the morning starts, unless your activity ran on past the end of the night with no gap longer than an hour. The morning starts as any other does: where an agent session clocks you in, or with your next commit, at your start time when it lands inside your work hours and same-day backfill is on, otherwise at the commit. Commit at 00:40 and again at 09:30, and the 09:30 commit records 30 minutes, not 8 hours 50; start an agent session at 08:10 instead, and the day opens at 08:10. Commits, prompts and the clock-in count as activity; agent work counts only with Count agent work as presence. This happens with idle breaks on or off, and the Time screen shows it as a break you can undo (see Idle breaks). A session you clocked in to yourself is left alone.
Backfill toggles
Two settings under Time tracking decide how much Clocktopus fills in on its own. Both are on by default.
Same-day backfill covers the day you are on: starting the day at your configured start time when the first commit lands inside your work hours, and filling the gap between your last activity and a clock-out on the same day. Off, a day starts at the first thing that happened on it, so the first commit after nothing records 0h flagged no reference.
Between-days backfill covers days you left open. On, yesterday's unbooked stretch becomes a tail entry when today's first activity closes it, and a stretch across midnight continues into the new day. Off, the day still closes — two sessions can never overlap — but nothing is booked for it, and the new day opens at its first commit.
If you would rather nothing was ever assumed, switch both off along with Working hours, and clock in.
Days in between with no activity. Treated as days off. Commit on Monday afternoon and again on Thursday morning, and Tuesday and Wednesday stay empty rather than absorbing three days of silence.
Idle breaks
Idle breaks, under Time tracking, clock you out for the stretches nothing shows you working. It is off by default.
A session a commit or an agent opened stays open until you clock out or the day closes, and each commit measures from the activity before it. Commit on the train at 08:05 and again at your desk at 09:50, and the commute counts as work. With idle breaks on, a gap between your activities longer than the threshold (15 minutes unless you change it) becomes a break: you are clocked out at your last activity and back in 15 minutes before the next one, and those 15 minutes count as work leading up to it.
- Outside working hours breaks only the part of a gap outside your working hours, which includes the weekend. With working hours of 09:00–17:00, the commute above breaks from 08:05 to 09:00, and the 09:50 commit records 50 minutes.
- Always breaks any gap. The same commit records 15 minutes.
- With Working hours off, both behave as Always.
The gap after a session the night opened follows its own rule, in Edge cases.
Your activities are your commits and the prompts you submit in Claude Code, of which only the time is kept, never the text. Count agent work as presence adds the minutes an agent spends working, so an agent left running on its own keeps the session open. Other agents send no prompt times yet, so with them only commits and agent work count.
A break is decided when the next commit arrives, so the clock button still shows you clocked in while you are away, and the hours are right once that commit lands. The Time screen marks a break's clock-out Break and the clock-in after it Resume, and neither can be edited. Prompting after your last commit is credited to the session the break closed, as a tail entry, when same-day backfill is on.
To count a break as work after all, click its Break or Resume on the Time screen and choose Undo break. The sessions on either side merge, and the commit after the break is measured again from your activity before it. A break in the wrong place is undone the same way; then clock out and in yourself.
Breaks never touch:
- a session you clocked in to yourself, until you clock out; editing an automatic clock-in's time makes that session yours too;
- a locked day;
- a push that arrives behind commits already booked, whose commits keep the out-of-order rule.
Cross-project work
All of your commits share one timeline, whichever project they belong to. The time between two commits is attributed to the project of the later one, so switching repositories mid-morning splits the morning between the two projects without any action from you.
This is also why single-tasking pays off here. The timeline cannot tell that you were doing two things at once; it can only see which repository you touched last.
Manual entries and edits
Every automated entry can be edited, and you can add entries by hand for work that leaves no git trace.
The Time screen shows one day at a time, with its sessions and entries, and the + button adds an entry by hand. Colleagues who do not commit code log their hours in the same place — manual for them, but the ledger stays in one piece.
Auto-lock past days
Once you have reviewed a week, a late or rebased commit should not quietly rewrite it.
Set a cutoff under Auto-lock past days in your preferences — 2, 7, 14 or 30 days, or off. It is a rolling window: with a 7-day cutoff, anything older than a week is locked, and the window slides forward each day.
When a commit lands on a locked day it is skipped: no entry is created or changed. The commit is still recorded in the activity log, so nothing is lost, and manual edits to a locked day are blocked too. To reopen recent days, raise the cutoff or switch it off.
Getting better data out of it
Clocktopus parses conventional commit scopes to pull the task out of a message, which is what lets reports break time down by task without an issue-tracker integration.
fix(bla-134): resolve signature verification files that time under BLA-134.
A key counts only when it is shaped like BLA-134 and its prefix is one of
the entry's project's, as task keys describes. Any other
scope, such as feat(core), creates no task; the time is still tracked, with
no task.
A merge commit (Merge pull request #12 …) names no task itself, so its time
goes to the pull request's task: the one its branch names or, failing that,
its title's scope. Nothing else is required, and the same rule feeds the task rows in the
AI agents report.
On the Time page, the key in an entry's description links to that task's page in the organisation that holds it. An entry with a project links only to a task in its project's organisation, since that is the task its time counts towards. An entry with no project links when exactly one of your organisations has a task with that key. A key that names no task, or that two of your organisations share, stays plain text.
Start measuring what your team ships
Output, cost and what your agents burn. Read from the commits, pull requests and agent runs you already have.
Start freeFree for single developers.