Skip to content
Edith

Use case

Track Time Spent by AI Coding Agents on a Mac

Time trackers measure you. This setup also measures the agents: how long they worked, how long they sat waiting for you, and what it used.

Updated by

The problem

When coding agents do a share of the work, your own screen time stops telling the whole story. An hour in the terminal might have been an hour of you typing, or ten minutes of you and fifty of an agent. And the costly hours are often the ones nobody sees: an agent blocked on a permission prompt while you were in a meeting, waiting for an answer that took two hours to arrive.

Time trackers do not cover this. Apple's Screen Time, RescueTime, Timing and the free, open source ActivityWatch all measure what is in front of you. They are good at that, and ActivityWatch and Screen Time cost nothing. None of them knows when a coding agent is working or waiting. Edith can answer that because it is also where your agents run.

What you get

  • Agent working time and waiting time, per machine, per agent and per project, including time that agents worked while your screen was locked.
  • How long you watched them: the time you spent in Edith looking at a session on that machine, with that agent or in that project.
  • Peak concurrency, the most agents working at once, and a chart of how many were working through the day.
  • Your own time next to it: apps, websites, focus sessions and deep work blocks.
  • Tokens and estimated cost for the same projects from Usage.

The setup

  1. 1

    Run your agents from the Agents board

    Open Library in Edith, install Agents, then press New Agent and choose an agent, a machine and a space. Agents starts Claude Code, Codex, OpenCode, Gemini and other agents in panes of Herdr, a terminal workspace Edith installs for you, on this Mac or on an SSH machine. Agent time covers the agents Edith runs this way; an agent you start in some other terminal app is not counted.

  2. 2

    Turn on Attention and agent recording

    Install Attention from Library and pick a Detail level: Applications only, Domains or Detailed. In Attention settings, under Sources, turn on Record agent activity on every machine. Remote machines are checked about every two minutes.

  3. 3

    Read the Agents section

    Open the Agents section of the Attention page. Agent work and Waiting on you show how long agents worked and how long they were blocked for input or approval, Peak at once shows the most agents working together, and Leverage shows agent time per minute you watched. Below that, Agents working over time charts concurrency, and the Machines, Agents and Projects tables split it all up. The Range filter at the top picks the period.

  4. 4

    Put your own time beside it

    The Overview section covers your active time, focus and deep work for the same range, and its card for time in Edith groups by page, machine, agent or project. The Breakdown section regroups your own time by app, site or title. Start a named timer from the Focus section with Start when you want a clean block to compare against.

  5. 5

    Add tokens and cost

    Usage totals tokens and estimated cost at public API rates for the same repositories in its By project card, so an hour of agent time has a size attached.

What to look for

Long waiting stretches. If Waiting on you is larger than Agent work, the bottleneck is you, not the model. Answer Claude Code and Codex permission prompts from Edith, queue the next task so a finished agent picks it up, or give clearer instructions before a meeting. The Agents board puts blocked agents first.

Working time against cost. A project with many agent hours and little cost is cheap to delegate. One with few hours and high cost may be using a heavier model than it needs; check the Models card in Usage.

Peak concurrency against limits. If the day's peak was five agents and your weekly window jumped, the two are related. Read how to pace the Claude Code weekly limit.

From the terminal

For a weekly review script, the same reports print JSON with --json, and ed agents send with --when-finished queues the next message for an agent:

Terminal
ed attention agents --range 7ded attention breakdown --by agent --range 7ded usage projects list --range week

What this does not do

  • It does not track agents run outside Edith's Agents board, or AI features inside other apps such as an editor's chat panel.
  • It is not a timesheet or invoicing tool. Timing and RescueTime have billing and team reports; Attention gives you totals you can copy.
  • It covers Macs and the SSH machines you add, not your phone. Screen Time and RescueTime cover mobile.

Common questions

Does agent time count when my screen is locked?

Yes. Sampling continues while the screen is locked, so agents working unattended overnight are counted. To keep a MacBook running with the lid closed, see the lid closed guide.

Is waiting time the same as idle time?

No. Waiting means an agent is blocked on you, for example on a question or a permission prompt. An agent that finished and has nothing to do adds neither working nor waiting time.

Does Attention read my prompts?

No. It records whether each agent was working or blocked, with its machine, agent kind and project.

Get started

Attention, Agents and Usage are all included with Edith, a Mac app for macOS 14 or later on Apple silicon, sold as a one-time purchase. Add Machines to bring agents on your servers into the same report, and see how to track coding agent token usage for the token side.

One app. Every tool your Mac is missing.

Pay once · No account · 30-day refund · macOS 14+ on Apple silicon