You open LinkedIn to answer one message. Twenty-five minutes later you're still in the feed. A blocklist can't fix this, because half your real work happens on those same sites. behaviornudge notices when a visit with a purpose turns into scrolling, and nudges you back to the task you planned.
Task at hand: Write demo script (current Sunsama task)
Options
What you'll see while drifting
Six kinds of nudge, each tied to a moment when drift tends to start. Every one names the task you meant to be doing, taken from your Sunsama timer or timebox, a calendar block, your call, or the project an agent is working on.
On LinkedIn for a reason?
now
Task at hand: Client tests (current Sunsama task)
Options
Arrival Tink
You came to reply, look someone up, or open a link. Do that one thing, then go back.
After 20 s on a drift-prone site while your task is something else.
Scrolling X?
now
Task at hand: Write demo script (current Sunsama task)
Options
Feed landing Tink
You went straight to the feed, with no message or link that brought you there.
After 45 s on a LinkedIn, X or Instagram feed while a task is at hand.
Done on LinkedIn? Back to it.
now
Task at hand: Client tests (current Sunsama task)
Options
Purpose done Glass
The reply is sent and the scrolling has begun. This is the moment to leave.
After 30 s of scrolling right after a visit with a purpose.
8 min on X
now
Task at hand: Deep Work — Client Projects (calendar)
Options
Off-task Sosumi
A longer stretch of scrolling while your calendar says you're doing something else.
After 8 min of scrolling while a task is at hand.
Stay present
now
You're in Weekly team sync.
Options
In a call silent
You're scrolling with a meeting open. No sound, so nobody else on the call hears it.
After 30 s of scrolling while a call app is using your microphone.
Agent's on it. Stay with it?
now
The agent is working on behaviornudge. Review the plan or line up the next step.
Options
Agent working Pop
Claude is busy in your terminal, and the wait has turned into scrolling.
After 2 min of scrolling while a herdr agent pane is working.
These are illustrations drawn with the app's real notification text and buttons. Task and meeting names are examples. All timings, sounds, quiet hours and the daily limit (8 nudges) can be changed in behaviornudge.toml.
Done on LinkedIn? Back to it.
now
Task at hand: Client tests (current Sunsama task)
Options
Back to task
Too soon
Legit task
Snooze 30 min
Close
One click teaches it
Every nudge has four buttons. Your answers change when, and whether, the next one comes.
Back to task
The nudge helped. It counts toward the return-to-work rate.
Too soon
Next time, this kind of nudge waits 1.5× longer in the same context.
Legit task
This activity counts as on-task for this task from now on, both live and in backtests.
Snooze 30 min
Pauses all nudges for half an hour.
How it decides
Rules decide when to nudge. A model sorts your activity into kinds, and another model is being tested on whether it can predict drift.
Watch
It reads the screen-activity history your Mac already records with Retrace, plus the front app, the browser tab, whether a call has the mic, and herdr agent status.
Label
Rules label most activities, and TypeSafe Jev labels the unclear rest, as one of:
creativereactiveconsuming
Compare
It checks what you're doing against what you planned (Sunsama timer, timebox or calendar) and fires at the moments where drift starts, with a cooldown and a daily limit.
Predict
Unbox AI's BehaviorGPT scores each moment in shadow mode. In the backtest it beat a baseline built from your own history in 18 of 28 weeks, though both signals are still weak. How BehaviorGPT is used →
Tune every nudge
Timings, the daily budget, cooldowns, quiet hours, the sound for each nudge, which calendars count and which sites are drift-prone are all lines in one file, behaviornudge.toml.
[nudge]daily_budget = 8cooldown_min = 15# per type and sitequiet_hours = [["21:30", "07:00"]]
feed_arrival_delay_s = 45off_task_threshold_min = 8too_soon_factor = 1.5# after "Too soon"[nudge.sounds]arrival = "Tink"off_task = "Sosumi"in_call = "none"# silent in calls
Built on the history your Mac already keeps
behaviornudge doesn't record your screen. It reads, read-only, what a screen-history app already stores: Retrace.to, where it started, and jhammant's open-source Retrace, which it uses now, with Screen Time, browser history and your calendar.
# macOS on Apple Silicon, with uv and jhammant/retrace
git clone https://github.com/natea/behaviornudge.git && cd behaviornudge
uv sync
uv run behaviornudge nudge test off-task # see a sample nudge
uv run behaviornudge nudge run # start the live engine