Skip to content

A lightweight CLI tool for tracking deep work sessions and distraction impulses. Built in Go, runs locally, no external services.

Notifications You must be signed in to change notification settings

nmashchenko/aegis-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aegis-cli

Screenshot 2026-02-24 at 5 21 27 PM

A lightweight CLI tool for tracking deep work sessions and distraction impulses. Built in Go, runs locally, no external services.

Install

Quick install (macOS / Linux)

curl -sL https://raw.githubusercontent.com/nmashchenko/aegis-cli/master/install.sh | sh

Auto-detects your OS and architecture, downloads the latest release, and installs to /usr/local/bin.

With Go

go install github.com/nmashchenko/aegis-cli@latest

From source

git clone https://github.com/nmashchenko/aegis-cli.git
cd aegis-cli
go build -o aegis .
sudo mv aegis /usr/local/bin/

Usage

Start a focus task

# Live TUI mode (default) — shows timer, urge counter, keybindings
aegis start "coding"

# With a time limit — adds a progress bar + overtime tracking
aegis start "coding" --limit 25m

# Detached mode — logs to DB and returns to shell
aegis start -d "coding"

Track distractions

# Log a distraction urge (linked to active task if one is running)
aegis urge

In live TUI mode, press u to log an urge without leaving the session. At 3, 5, and 10 urges, a research paper highlight about dopamine and addiction is shown to help you stay focused.

Pause and resume

# Detached mode
aegis pause
aegis resume

In live TUI mode, press p to toggle pause/resume. While paused, the timer freezes, the UI dims, and urge logging is disabled. Paused time is excluded from your final duration.

Stop a task

aegis stop

In live TUI mode, press q to stop and exit. A styled session summary card is shown with your duration and urge count.

Check status

aegis status

View stats

aegis stats          # last 7 days (default)
aegis stats day      # today
aegis stats week     # last 7 days with daily breakdown
aegis stats month    # current calendar month summary
aegis stats year     # current year with monthly breakdown

View recent tasks

aegis history

Shows the 5 most recent completed tasks with duration, urge count, and timestamps in styled cards.

Storage

All data is stored locally in ~/.aegis/aegis.db (SQLite). No cloud, no accounts, no telemetry.

Requirements

  • macOS or Linux
  • Go 1.24+ (only if installing with go install)

About

A lightweight CLI tool for tracking deep work sessions and distraction impulses. Built in Go, runs locally, no external services.

Resources

Stars

Watchers

Forks

Packages