How a day becomes data you can actually trust
LogAgent doesn't hand you a magic score. It turns raw activity into an explainable timeline through a transparent pipeline, and every number can be traced back to the signals and rules behind it. This page goes under the hood: what is measured, how it's classified, and how it becomes projects, billing and insight.
From raw events to work sessions
Captured window and input events are merged into canonical work sessions, the single source of truth for every duration in the app.
Capture
Active window, title, input activity, AFK and IDE/browser metadata are recorded locally as timestamped events.
Merge
Consecutive events of the same app and window are joined when the gap between them is under 30 seconds.
De-duplicate
Totals are the union of intervals, not their span, so overlapping sources never inflate your time. Events shorter than 1.5 s are dropped as noise.
Resolve
Each session gets a final category and project; work you did not confirm keeps its confidence, so unsure time stays visible.
Persist
The merged timeline is rebuilt atomically and becomes the only surface reports and billing read, so nothing is counted twice.
Bill
Approved segments roll up into projects, rates and invoice lines, each one traceable back to the sessions it came from.
Three buckets, one honest formula
Every activity carries a productivity score from −1 to 1. Instead of a single opaque percentage, time falls into three buckets you can see and re-tune yourself.
Productive
Focused, value-adding work: your IDE, design tool, deep research.
Neutral
Supporting or uncertain work, such as browsers and system tools. It counts partly (0.65 of its time), so a neutral-only day never looks fully productive.
Distracting
Off-task time. AFK and idle are tracked separately, so they never silently pad the day.
score = (productive + neutral × 0.65) ÷ active timeScores are weighted by real duration, so two overlapping windows can't double-count toward your day. Work with AI assistants counts as productive, including AI websites.
Classification with a paper trail
Every event is categorized by a transparent, ordered chain of rules, not a black box. The first matching rule wins, and you can always see which one fired.
- Domain overrides for canonical app and site mappings.
- Your feedback overrides: per-app and per-domain scores you've corrected.
- An active AI-coding session: work alongside a running AI assistant counts as productive.
- Category rules matching app, title, process or URL, highest priority first.
- Browser pinning, then name-based fallbacks for apps and domains.
- Category defaults, and finally a neutral 0.40 default for the truly unknown.
It learns from your corrections
Fix a classification and it becomes a reusable per-app or per-domain override, or stays as one-off review evidence, your choice. Low-confidence segments are surfaced for review, ranked by how uncertain, long and recurring they are, and every prompt explains why it asked.
The units that make a day legible
Beyond raw time, LogAgent works with meaningful units you can review, confirm and bill against.
Attribution with a confidence score
Work is attached to projects and clients by a ranked chain of signals, each with its own confidence, so you always know how sure the agent is.
It reads context straight from window titles
The AI-coding blind spot, finally measured
Time spent with AI coding agents usually collapses into "a terminal window". LogAgent reads the agents' own local logs and turns that into real sessions, tokens and cost.
Real sessions, not "terminal.exe"
Local agent logs become AI sessions with turns, tool, the real model and, for Codex and Claude Code, the reasoning level. The session's working folder attributes the work to the right project at about 0.99 confidence.
Tokens, context and cost
Each turn's input, output and cache tokens are priced per model from a public price list. Context use shows as a share of a 200K window, with one-shot and cache-hit rates.
Cost, not revenue
AI spend is treated as cost of work and shown separately from what you bill. In invoices it counts by tokens, as a share of your AI subscriptions, or not at all.
Detected agents
Stored locally: tokens, cost, model, working folder, a short session title and previews of up to 200 characters per turn. Full prompts and responses are not stored.
What actually landed in the repo
A read-only scan of your local git repositories adds an output signal next to attention time, so "hours on a project" can be checked against real commits.
Commits & churn
Commits, insertions, deletions and files touched per project and day, scanned every 30 minutes from local .git only.
Attention vs output
When time-on-project and code output diverge, it's a hint of mislabeling or heavy context-switching to look into.
AI-assisted commits
A commit in the same project within 10 minutes of an AI session is linked to it as AI-assisted. A session is marked "No commit" only when a commit could exist.
Stays on device
Stored: the first 80 characters of the message, a hash of the full message, the author and the line counts. No diffs, no file contents, nothing leaves your machine.
Money that follows the real day
Approved work segments roll up into projects, clients and tasks, and into invoices where each line keeps the segments it came from.
Billable by project
Each segment inherits its project's billable flag and rate; work with no project stays non-billable until you assign it.
Projects, tasks, clients
Group work into projects and tasks, attach clients, and assign or split segments by day or custom range.
Reports & invoices
Period reports with top projects and tasks, exported as PDF, CSV or JSON; invoices as PDF or CSV. Rounding is 15 minutes by default, up or to the nearest.
AI cost line
AI spend rolls into project and report views as cost, kept separate from revenue: by tokens, as a share of your AI subscriptions, or not counted.
Plan the day, then measure adherence
Planned sessions, your own calendars and the Kanban board connect intention to what actually happened.
- Planned and repeating sessionsPlan focus sessions for a task, optionally blocking distractions, and repeat them weekly. Time inside a planned session goes to its task.
- Your calendarsSubscribe to Google, Outlook or iCloud by the secret iCal link, or import an .ics file. Subscriptions refresh every 30 minutes and show their last refresh and errors; removing one removes its events.
- Kanban with estimatesEach card carries an estimate and the actual time against it. A work-in-progress limit keeps the "in progress" column short, and focus starts right from a card.
- Task suggestionsA new git branch, a task number in a title or the outcome of an AI session lands in the suggestions inbox. Accept it and the task is created with its time already tracked.
Your day, in plain numbers
Everything above surfaces as readable insight cards and gentle momentum, never a leaderboard.
Numbered insights
"How your day went, in numbers": cards grouped as positive, warning and info, including AI-agent time and deep-work notes.
Honest by design
Deep-work cards appear only when there's a real focus session; zero-length segments are never shown as work.
Streaks & XP
Daily and focus streaks with XP and freeze tokens keep momentum without turning work into a competition.