---
title: "With AI, manual time tracking stops working"
lang: "en"
slug: "invotrack-invoicing-ai-work"
date: "2026-11-19"
category: "projects"
featured_image: "/assets/img/invotrack-timer-og-ai.png"
featured_image_alt: "InvoTrack's Timer og AI page with fictional figures: hours and AI usage in kroner, per project and per month"
description: "When AI works while you do something else, nobody can say when a job started and ended, or how much time you and the AI spent on it. InvoTrack now measures the work in Claude Code instead of guessing: your time as hours, the AI's work as its own line on the invoice."
tech:
  - "InvoTrack"
  - "Claude Code"
  - "AI"
  - "C#"
  - "Blazor"
---

Time tracking has always rested on a simple assumption: you work on one thing at a time, and you know when you started and stopped.

It never quite held. The phone rang, a colleague asked a question, and one job was interrupted by another. With AI it becomes untenable. You set Claude Code going on a job, and while it works you answer an email, look at another customer or take a phone call. When you come back, you read the result, adjust the direction and send it on. When did the job actually end? How much of the time was yours, and how much was the AI's?

It does not get easier when several sessions run side by side, each for its own customer. The hour from 9 to 10 then holds a little for one customer, a bit more for another and a few minutes for a third.

*What was I doing from 9 to 10?* no longer has an answer, so the hours get guessed. Guessed hours are poor on an invoice and worthless later, when you need to judge what a similar job will take.

## Several things happen in parallel

When you work with AI, several things happen in parallel. They fall into two kinds of work, and both have value to the customer:

- **Your attention:** writing to Claude, reading the replies, making decisions and testing. That is the time billed as hours.
- **The AI's work:** what the agent produces, including when it runs with nobody writing to it. The customer received that too, so it is billed, but as its own line. It is never converted into hours nobody spent.

Both can be measured instead of guessed, because Claude Code already knows when you wrote to it and how much AI each session used.

## How it works

[InvoTrack](https://invotrack.dk), our free time-tracking and invoicing system for Danish consultants, is one of the first systems to register AI work so it can be invoiced. It does so through a plugin for Claude Code:

1. **Claude asks which job the work belongs to** when a session starts. The answer is remembered in the folder, so next time a right guess takes only a yes. If the work changes along the way, Claude suggests the right job and waits for your yes.
2. **InvoTrack measures your attention** from when you write to Claude. The time the AI works alone, while you do something else, does not count as your hours. When several sessions run at the same time, the minutes are shared between them, so the same time is never billed twice.
3. **AI usage is measured per session** and placed on the same job.
4. **Claude writes a short description of the work,** which becomes the text on the time entry.
5. **With one click** it becomes ordinary time entries and an AI line on the job, ready to invoice.

If you spent time on the job that Claude does not know about, such as a meeting or a phone call, you add it yourself as an ordinary time entry.

You set the price of the AI line yourself, as with any other product. If the job is at a fixed price, the AI is included in it.

Afterwards, the **Timer og AI** (Hours and AI) page shows what the hours and the AI usage are worth, side by side in kroner, per project and per month. The image at the top shows the page with fictional figures.

## Only metadata leaves your computer

A tool that follows your AI work has to stand up to the question: *what does it send?*

InvoTrack receives timestamps, a session id, how much AI was used, and the short description Claude writes in its own words. Never what you write to Claude, Claude's replies, your files or the names of your folders. The server reads only the fields it needs and skips the rest.

And if you do not want a session registered, because it is private or not work, you say so when Claude asks. Then InvoTrack keeps nothing about it.

## We use it ourselves

Allegro IT registers its own AI work this way. This text was written in a Claude Code session that started by asking which job it belonged to.

## Getting started

AI registration works with **Claude Code**. Other AI tools, such as GitHub Copilot, are not supported.

1. An administrator in your organisation switches on AI registration in InvoTrack.
2. Under **Mine AI-enheder → Tilføj enhed** (My AI devices → Add device), follow the guide, which installs the plugin in Claude Code.
3. The next time you start a session, Claude asks which job it belongs to.

The plugin is open source on [GitHub](https://github.com/jackwjensen/invotrack-claude-plugin), and the full guide is on [invotrack.dk](https://invotrack.dk/dokumentation/ai-registrering).

New to InvoTrack? Read [our first post about the system](/en/posts/projects/invotrack-time-tracking-invoicing-for-danish-consultants/), or create an account at [invotrack.dk](https://invotrack.dk).
