Product deep-dive

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.

Aggregation pipeline

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.

01

Capture

Active window, title, input activity, AFK and IDE/browser metadata are recorded locally as timestamped events.

02

Merge

Consecutive events of the same app and window are joined when the gap between them is under 30 seconds.

03

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.

04

Resolve

Each session gets a final category and project; work you did not confirm keeps its confidence, so unsure time stays visible.

05

Persist

The merged timeline is rebuilt atomically and becomes the only surface reports and billing read, so nothing is counted twice.

06

Bill

Approved segments roll up into projects, rates and invoice lines, each one traceable back to the sessions it came from.

Productivity, transparently

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.

score ≥ 0.70

Productive

Focused, value-adding work: your IDE, design tool, deep research.

0.40 – 0.70

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.

score < 0.40

Distracting

Off-task time. AFK and idle are tracked separately, so they never silently pad the day.

Day scorescore = (productive + neutral × 0.65) ÷ active time

Scores 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.

Categories you can audit

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.

  1. Domain overrides for canonical app and site mappings.
  2. Your feedback overrides: per-app and per-domain scores you've corrected.
  3. An active AI-coding session: work alongside a running AI assistant counts as productive.
  4. Category rules matching app, title, process or URL, highest priority first.
  5. Browser pinning, then name-based fallbacks for apps and domains.
  6. 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.

Sessions, segments & focus

The units that make a day legible

Beyond raw time, LogAgent works with meaningful units you can review, confirm and bill against.

Work sessionA merged run of activity in one app and project, with a duration-weighted score and a context-switch count.
Work segmentThe review-and-billing view of attributed work, carrying confidence and a billable flag inherited from its project.
Focus sessionA run of at least 15 minutes with at most 10 context switches per hour across no more than 5 contexts: real focused work, not a timer.
Context switchesCounted between distinct app and title pairs, ignoring flickers shorter than 2.5 s, and reported per active hour.
Projects & clients

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.

Active context / focus sessionWork inside a session you started or confirmed yourself.0.58–1.0
IDE metadataProject path read from the editor or ActivityWatch metadata.0.95
Rule matchYour own app, title, domain or URL-path rules.0.75–0.80
Temporal carry-overAmbient apps (chat, browser, terminal) inherit the last confident project for up to 10 minutes; confidence decays with the gap.0.40–0.70

It reads context straight from window titles

GitHub org/repoGitLab org/repoJira keySlack channelTelegram chatTeams chatDiscord
AI agents & IDE

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

Claude CodeCodexCursorCopilotGeminiClineRooKiloKimiKiroOpenCodeWarp
Privacy

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.

Objective output

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.

Billing, projects & clients

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.

Planning and tasks

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.
Insights & momentum

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.