Focus Session Tracker

A sample week, shown as terminal commands and their output. Everything below was produced by the real command line tool running on sample data with a simulated clock. Data stays local; there are no streaks or scores.

Mon 26 Oct 2026, 09:00

$ focus start "Write project report"
Started session #1: Write project report at 09:00
$ focus distract "email notification"
Logged distraction at 09:18 (session #1): email notification
$ focus pause
Paused session #1 at 09:25 (focused 25m so far)
$ focus resume
Resumed session #1 after a 10m pause
$ focus status
Focusing: Write project report (session #1)
  Started 09:00, focused 40m
  Paused 10m in total
  1 distraction logged
$ focus stop
Stopped session #1: Write project report
  Focused 1h 00m, paused 10m, 1 distraction

A few minutes later

$ focus distract --last "remembered a call to make"
Logged distraction at 10:13 (session #1): remembered a call to make

The rest of the week: six more sessions on Monday, Tuesday, Wednesday and Friday. Thursday and the weekend have none.

Sun 1 Nov 2026, evening

$ focus history
   #  Date        Start  Task                          Focused  Distractions
   1  Mon 26 Oct  09:00  Write project report           1h 00m  2
   2  Mon 26 Oct  14:00  Code review                       25m  1
   3  Tue 27 Oct  09:30  Write project report              55m  1
   4  Wed 28 Oct  08:45  Study Spanish                     30m  0
   5  Wed 28 Oct  16:00  Code review                       40m  2
   6  Fri 30 Oct  10:00  Write project report           1h 10m  1
   7  Fri 30 Oct  19:30  Reading                           35m  1
Total focused: 5h 15m across 7 sessions.
$ focus history --task report --details
   #  Date        Start  Task                          Focused  Distractions
   1  Mon 26 Oct  09:00  Write project report           1h 00m  2
      paused 10m
      09:18  email notification
      10:13  remembered a call to make
   3  Tue 27 Oct  09:30  Write project report              55m  1
      09:57  email notification
   6  Fri 30 Oct  10:00  Write project report           1h 10m  1
      10:35  email notification
Total focused: 3h 05m across 3 sessions.
$ focus week
Week of Mon 26 Oct - Sun 1 Nov 2026

Focused time    5h 15m across 7 sessions
Average session 45m
Distractions    8

By day
  Mon 26 Oct   1h 25m  2 sessions   3 distractions
  Tue 27 Oct      55m  1 session    1 distraction
  Wed 28 Oct   1h 10m  2 sessions   2 distractions
  Thu 29 Oct        -
  Fri 30 Oct   1h 45m  2 sessions   2 distractions
  Sat 31 Oct        -
  Sun 1 Nov         -

Most common distractions
    3  email notification
    3  phone
    1  chat message
    1  remembered a call to make

Time of day (by session start)
  Morning   05-12   3h 35m  4 sessions   avg     53m  1.1 distractions/hr
  Afternoon 12-17   1h 05m  2 sessions   avg     32m  2.8 distractions/hr
  Evening   17-22      35m  1 session    avg     35m  1.7 distractions/hr

Patterns
  Most focused time this week was in the morning.
  Longest sessions on average: morning (53m).
  Fewest distractions per focused hour: morning.
  Most focused day: Fri 30 Oct (1h 45m).