☰ Menu
CLI Open source 2 installs/mo

harsh for Mac

harsh

A minimalist, command-line tool for tracking, understanding, and forging habits. Simple text files, informative graphs, zero friction. Habit tracking for geeks.

harsh — overview

Harsh Taskmaster

A minimalist, command-line tool for tracking, understanding, and forging habits. Simple text files, informative graphs, zero friction. Habit tracking for geeks.

Track habits with just 3 commands: ask, log, todo.

Your data stays in human-readable text files you can edit, back up, and own forever.

Harsh lets you see your habits in a consistency graph (aka Seinfeld chart) based on your logging of the habit over time.

My hope is that it helps you get done what you're trying to get done in your life and live a better one.

More info in the launch post and the better habit tracking post.

Quick Start

Run harsh ask to create your config files, then edit ~/.config/harsh/habits:

Commands

Filtering

All commands accept optional filters:

Recording Habits

When prompted [y/n/s/⏎]: y = Yes, did it n = No, missed it (breaks streak) s = Skip (life happened, doesn't break streak) ⏎ = Leave unanswered for now

Adding Notes and Amounts

Track quantities and comments with @ and # in harsh ask:

The @ amount and # comment are optional. Use @ before # if using both.

Reading the Graph

Symbol Legend

The sparkline at the top shows daily completion percentage. The score excludes skipped habits.

Todo with Urgency

Habits File Format

Location: ~/.config/harsh/habits (or %APPDATA%harsh on Windows, override with HARSHPATH)

Frequency formats: 1 - Daily 7 or 1w - Weekly 3/7 - 3 times per 7 days (rolling window) 2/30 - Twice per month 0 - Track only (no warnings, doesn't affect score)

Optional end date:

Retire a habit by adding an end date (format: YYYY-MM-DD):

After the end date: Habit is excluded from scoring and sparklines Graph shows blank after end date Habit no longer appears in ask or todo Habit name, graph, and end marker muted Use harsh -H log to hide ended habits from log output

NB: Do not use : in habit names (it is used as delimiter in the habit files).

Log File Format

Location: ~/.config/harsh/log

Entries are appended automatically. Edit manually if needed.

Installation

Package Managers (recommended)

One-Line Install (macOS/Linux)

Distro Packages

Download from releases: DEB: sudo apt install ./harsh_.deb RPM: sudo dnf install ./harsh-.rpm APK: sudo apk add --allow-untrusted harsh-*.apk

Go Install

Shell Completion

Options

Global options:

Suppress colors for logging or piping: harsh --color never log stats

Hide ended habits from all output: harsh -H log or harsh -H log stats

JSON Output (Agents & Scripts)

Use harsh log --json for machine-readable output, suitable for AI agents (OpenClaw, Claude Code, etc.), scripts, and dashboards. The full visual consistency graph is represented as structured JSON, including 100 days of daily entry history per habit, allowing agents to detect patterns in habit performance, identify streaks and breaks, and surface insights that may not be obvious from the graph alone.

Output Structure

Key Fields

streak_status — current state of the habit's streak:

Details

极客的习惯追踪

How to install harsh

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-06-04; current version v0.14.5, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v0.14.52026-06-04Stable1.2 MBDownloadDownloadDownload
v0.14.42026-05-22Stable1.2 MBDownloadDownloadDownload
v0.14.32026-05-08Stable1.2 MBDownloadDownloadDownload
v0.14.22026-04-08Stable1.2 MBDownloadDownloadDownload
v0.14.12026-03-26Stable1.2 MBDownloadDownloadDownload
v0.14.02026-03-01Stable1.2 MBDownloadDownloadDownload
v0.13.32026-02-22Stable1.1 MBDownloadDownloadDownload
v0.13.22026-02-14Stable1.1 MBDownloadDownloadDownload
v0.13.12026-01-09Stable1.1 MBDownloadDownloadDownload
v0.13.02026-01-03Stable1.1 MBDownloadDownloadDownload

Data from GitHub Releases; stable releases first, each group sorted newest first.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • Apple silicon · latest macOS
  • Apple silicon · macOS 26 Tahoe
  • Apple silicon · macOS 15 Sequoia
  • Apple silicon · macOS 14 Sonoma
  • Intel · macOS 14 Sonoma
  • Linux · ARM64
  • Linux · x86_64

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
harshv0.14.5MITCLI2
libnetfilter_conntrack1.1.1GPL-2.0-or-laterCLI3
agedu20260410MITCLI4
klogv7.2MITCLI23

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…