A lightweight CLI tool for tracking deep work sessions and distraction impulses. Built in Go, runs locally, no external services.
curl -sL https://raw.githubusercontent.com/nmashchenko/aegis-cli/master/install.sh | shAuto-detects your OS and architecture, downloads the latest release, and installs to /usr/local/bin.
go install github.com/nmashchenko/aegis-cli@latestgit clone https://github.com/nmashchenko/aegis-cli.git
cd aegis-cli
go build -o aegis .
sudo mv aegis /usr/local/bin/# 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"# Log a distraction urge (linked to active task if one is running)
aegis urgeIn 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.
# Detached mode
aegis pause
aegis resumeIn 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.
aegis stopIn live TUI mode, press q to stop and exit. A styled session summary card is shown with your duration and urge count.
aegis statusaegis 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 breakdownaegis historyShows the 5 most recent completed tasks with duration, urge count, and timestamps in styled cards.
All data is stored locally in ~/.aegis/aegis.db (SQLite). No cloud, no accounts, no telemetry.
- macOS or Linux
- Go 1.24+ (only if installing with
go install)