BodyCommit
Move while your agent codes.
BodyCommit turns natural pauses in your coding workflow into purposeful movement, helping you sit less, move better, and build healthier workday habits.
Your agent commits code. You commit your body.
Moves selected and reviewed by a fitness coach.
BodyCommit provides general movement and wellbeing suggestions, not medical advice. If you have an injury, medical condition or concerns about exercising, seek advice from a qualified healthcare professional before starting or modifying an exercise routine.
Features
- Active coding clock. Time counts while the window is focused and a text editor is focused, for a short while after the last keystroke, cursor move, or focus return. Silence pauses the clock. A longer idle resets the session, so a lunch break does not count toward the next reminder.
- Default reminder around 50 active minutes. The interval is a setting.
- Agent-wait heuristic. When the workspace looks like an AI agent, a build, or a long terminal command is busy, that moment is a preferred break slot. It can also offer an earlier nudge. A stricter check, on by default, offers a break when you have not typed for a few seconds and either a known agent CLI or a run of non-user edits has lasted about 35 seconds. It is a best-effort guess. See docs/agent-wait-detection.md.
- Flow respect. A due reminder waits while you are typing, and it also waits through a heavy-typing stretch (about 400 keys in 10 minutes, with a key in the last 25 seconds) until a natural pause. It shows up after a save, when a task or terminal command ends, after about 30 seconds of quiet, or during an agent window. If none of those arrive, it shows after 2 minutes anyway, unless you are mid-keystroke or in that heavy-typing hold.
- Soft by default. The status bar changes to “break ready” and one notification offers Start a break, Snooze 15m, and Skip. Status-bar-only mode skips the popup. Quiet hours and a rest-of-today do-not-disturb hold reminders. The status bar still shows time since your last break, and clicking it starts one.
- 25 moves in five purposes: Move, Strengthen, Mobilise, Recover, and opt-in Energise. 14 curated sequences of 1 to 5 minutes. Jumping and loud moves are opt-in under Energise. Quiet mode leaves them out even then. Effort is shown in words (Very easy, Easy, Moderate), never as a number. Add moves in
media/routines.json and sequences in media/sequences.json.
- Workspace setup. The first launch asks quiet or home, seated and floor constraints, whether you have a stable chair without wheels, and whether you have a low stable step. Sit-to-stand stays off until the chair is confirmed. Step-ups stay off until the step is confirmed. Optional Energise, extra mobility, breathing techniques, and Lunch Walk start off.
- Optional Lunch Walk. One offer inside a window you set (default 12:00–14:00), on a natural pause, for a few easy minutes on your feet. It never turns itself on.
- Local stats. Breaks offered, started, and finished, active minutes split into Move, Strengthen, Mobilise, and Energise, and Recover minutes on their own. Stored on this machine. Skipping a break is not counted and does not change what is offered next.
- End-of-day summary. One notification at 18:00 local, or after an hour of quiet past 16:00, with today's finished breaks, active minutes, Recover minutes, and one of eight tips. See stats opens the panel. Once per day. Quiet hours and do-not-disturb hold it.
- Free and Pro scaffold. Free includes desk marching, sit-to-stand or its squat alternative, calf raises, easy walking, basic shoulder and spinal mobility, relaxed breathing, the short Move and Mobilise sequences, the free strength snacks, Seated Long Reset, and Agent-Wait Energiser (once Energise is on). Desk Strength 5 and a few single moves are Pro. There is no checkout and no monthly price. Pro preview, or the local stub key
BC-PRO-LOCAL, unlocks them on this machine only.
Install and try it
The package is a normal VSIX, so it installs in VS Code, Cursor, and any editor that accepts Open VSX packages. It uses the public VS Code API only (engines.vscode ^1.93.0) and runs as a UI extension, so prompts stay on your machine when you are attached to a remote workspace.
From a terminal, after npm run package:
code --install-extension bodycommit-0.4.0.vsix
cursor --install-extension bodycommit-0.4.0.vsix
Or use Extensions: Install from VSIX… in the command palette.
Then:
- Look for BodyCommit in the status bar (
ready, then a time since your last break).
- Run BodyCommit: Start a break or click the status item. The break panel shows the step, a dose, an effort word, a large timer, and the figure. Steps and keyboard hints sit in a small disclosure. Space pauses. Right arrow advances. Don't suggest this again hides that move.
- Run BodyCommit: Show stats for offered, started, and finished breaks, active minutes, and Recover minutes.
- Run BodyCommit: Set up your workspace to answer the chair and step questions.
- To see a reminder without waiting 50 minutes, set BodyCommit: Interval Minutes to
1. Keep typing and it will wait. Save a file, let a task finish, or sit still for about 30 seconds. With no pause at all, the notification appears after about 2 minutes as long as you are not typing and not in a heavy-typing hold.
- To try the Pro routines, run BodyCommit: Enable Pro preview or set
bodycommit.licenseKey to BC-PRO-LOCAL. The essential moves stay free.
Develop against the extension host with Run BodyCommit in the debugger (F5). That compiles first.




How agent detection works
Nothing here talks to an agent, and nothing is inferred from prompt text. The extension only watches editor and workspace events already available to any VS Code extension, keeps a few seconds of them in memory, and throws them away. Turn the whole thing off with BodyCommit › Agent Detection: Enabled.
A signal is active when any one of these is true. Two at once raises confidence. Thresholds are settings.
- External edit burst. In the burst window (default 8 seconds), document edits that are not keystrokes outnumber edits that are. A keystroke is a small insertion (default 8 characters or fewer) in the focused editor while the window is focused. Edits in other files, edits while the window is unfocused, and larger insertions count as external. One paste is not enough. Ordinary typing is not enough.
- Files changing on disk while you are idle. At least 3 create, change, or delete events across at least 2 files, during the lookback (default 20 seconds), and only if you have been idle at least 20 seconds. A single save does not count.
node_modules, .git, dist, out, build, .next, coverage, and vendor are ignored.
- Long-running task or terminal command. A VS Code task, or an integrated terminal command reported by shell integration, that is still running after 20 seconds. When it ends, that ending is also one of the natural pauses above, even if the command was short.
If a break is already due, an active signal is the preferred moment to show it, including the wording (“Your agent is busy writing code…” versus a plain long-session note). If Early Prompt Minutes is above 0 (default 25), an active signal can offer a break before the full interval. Set it to 0 to keep reminders on the interval only. Early prompts still wait until you are not typing. A heavy-typing hold waits for a natural pause even during an agent window.
This will sometimes be wrong. Formatters, watch scripts, and multi-file refactors can look like an agent. A terminal command only shows up when shell integration is enabled. The cost of a miss is a later reminder, not a popup on top of your typing. If the nudges feel early, turn detection off or raise the thresholds.
bodycommit.agentWait.enabled (default on) is a separate, stricter offer. It fires only when you have not typed for 8 seconds and a known agent CLI (claude, codex, aider, gemini, cursor-agent, goose, opencode, copilot) has been running in the integrated terminal for at least 35 seconds, or non-user edits have spanned at least 35 seconds with one still fresh. It still waits out the reminder interval or 15 minutes, whichever is shorter, and quiet hours, snooze, and do-not-disturb still win. A long npm test does not count. Copilot agent mode and Cursor Composer have no public “agent is running” event, so those are inferred from edits only, and a silent thinking stretch is invisible. The full limits are in docs/agent-wait-detection.md.
Agent-wait decisions are written to the BodyCommit output channel whenever they change. The older burst heuristic, and the reasons for a picked break, are logged there only when bodycommit.debug is on. The log stays on your machine.
Settings
| Setting |
Default |
What it does |
bodycommit.intervalMinutes |
50 |
Active minutes between reminders. |
bodycommit.notificationStyle |
soft |
soft is the status bar plus one notification. statusBar never pops up. |
bodycommit.snoozeMinutes |
15 |
How long Snooze holds the next reminder. |
bodycommit.purposes |
Move, Strengthen, Mobilise, Recover on |
Which purposes can be suggested. Energise follows its opt-in. If this was never set, the old category switches are read once. |
bodycommit.categories |
all on |
Legacy switches. Used only when purposes has never been set. |
bodycommit.optIn.energise |
false |
Brisk walks, jumping jacks, high knees, and the Agent-Wait Energiser. |
bodycommit.optIn.extraMobility |
false |
Neck reset and back wave. |
bodycommit.optIn.breathTechniques |
false |
Physiological sigh, box breathing, and 4-7-8. Relaxed breathing stays available. |
bodycommit.equipment.stableChair |
false |
Confirmed stable chair without wheels. Required for sit-to-stand. |
bodycommit.equipment.stableStep |
false |
Confirmed stable step, about 10–15 cm, with something to hold. Required for step-ups. |
bodycommit.excludedMoves |
[] |
Move ids hidden from suggestions. Restore them with BodyCommit: Manage excluded moves. |
bodycommit.lunchWalk.enabled |
false |
One Lunch Walk inside the window. |
bodycommit.lunchWalk.start / end |
12:00 / 14:00 |
Local window. Nothing is offered after the end. |
bodycommit.lunchWalk.minutes |
5 |
Length, from 2 to 5 minutes. |
bodycommit.heavyTyping.keystrokes |
400 |
Keys in a rolling 10 minutes. Clamped from 100 to 2000. |
bodycommit.heavyTyping.recentSeconds |
25 |
A key must also fall inside this window. Clamped from 20 to 30. |
bodycommit.quietHours.enabled |
false |
Hold reminders between start and end. Overnight ranges work. |
bodycommit.quietHours.start / end |
22:00 / 08:00 |
Local 24-hour HH:MM. |
bodycommit.agentWait.enabled |
true |
Offer a break during a longer agent wait (known CLI or sustained non-user edits, and you are not typing). |
bodycommit.space.environment |
home |
quiet or home. Quiet drops loud and high-impact moves. |
bodycommit.space.seatedOnly |
false |
Seated moves only. |
bodycommit.space.standingOk |
true |
Allow standing moves. Off keeps suggestions seated. |
bodycommit.space.noFloor |
false |
Skip moves that use the floor. |
bodycommit.space.limitedMobility |
false |
Skip full-mobility moves. |
bodycommit.breakLength |
auto |
60, 180, 300, or auto (60 seconds, or about 3 minutes after a 3-minute agent wait). Auto never picks 5 minutes on its own. |
bodycommit.agentDetection.enabled |
true |
Master switch for the shorter burst heuristic. |
bodycommit.agentDetection.earlyPromptMinutes |
25 |
Early offer during an agent window. 0 disables it. |
bodycommit.agentDetection.burstWindowSeconds |
8 |
Width of an edit burst. |
bodycommit.agentDetection.minExternalChanges |
4 |
External edits required in that window. |
bodycommit.agentDetection.userKeystrokeMaxChars |
8 |
Insertions this size or smaller count as yours. |
bodycommit.agentDetection.diskIdleSeconds |
20 |
How long you must be idle before disk changes count. |
bodycommit.agentDetection.minDiskChanges |
3 |
Disk events required, across at least two files. |
bodycommit.agentDetection.minTaskSeconds |
20 |
How long a task or terminal command must run. |
bodycommit.agentDetection.lookbackSeconds |
20 |
How far back disk events are considered. |
bodycommit.idlePauseSeconds |
90 |
Stop adding active time after this much silence. The total is kept. |
bodycommit.idleResetMinutes |
10 |
Silence past this zeroes the session. Must be longer than the pause. |
bodycommit.typingLockSeconds |
2 |
No reminder within this many seconds of a keystroke. |
bodycommit.naturalPauseSeconds |
30 |
Idle this long counts as a pause. |
bodycommit.saveGraceSeconds |
20 |
A save this fresh counts as a pause. |
bodycommit.taskEndGraceSeconds |
20 |
A finished task or command this fresh counts as a pause. |
bodycommit.maxDeferralSeconds |
120 |
Show a due reminder after this long even with no detected pause. 0 disables it. Typing, including heavy typing, still holds it. |
bodycommit.proPreview |
false |
Local Pro unlock. No network. |
bodycommit.licenseKey |
empty |
BC-PRO-LOCAL also unlocks Pro locally. It is never sent anywhere. |
bodycommit.daySummary.enabled |
true |
One end-of-day notification. Off skips it. |
bodycommit.daySummary.time |
18:00 |
Local HH:MM for that summary. An hour of quiet after 16:00 can show it sooner. |
bodycommit.debug |
false |
Log heuristic signals and pick reasons to the output channel. |
Skip asks again only after another full interval of active time, or after the session resets. Snooze asks again at the next natural pause once the timer is up. Finishing a break starts the active clock over. A panel that runs at least 10 seconds counts as started. Reaching the last step counts as finished.
How a break is chosen
The timing gate runs first. Heavy typing or the short typing lock holds every suggestion, including an agent-wait offer, until a natural pause. Nothing is selected while that hold is on.
When a suggestion is allowed, sequences and single moves are filtered by tier, then by purpose, opt-in, exclusions, chair, step, posture, quiet space, mobility, and floor. A move that fails is replaced by the first suitable substitute, at most two hops, and never by something harder. If a sequence step cannot be replaced, the whole sequence is dropped. Lunch Walk uses its own short list, and only when that offer is running.
Scores prefer a sequence, a Move block during a long daytime session, and Mobilise or Recover from 20:00 or after a long day. Equal scores stay in id order, and the random roll only breaks that tie. Skipping, snoozing, or finishing does not change the next score. If nothing fits, the screen break is used. If that is hidden too, you get “Nothing fits your current settings” and a button to open settings.
Routines
Edit media/routines.json and media/sequences.json. The shape is checked by media/routines.schema.json. Each move has a purpose, a dose, one or two cues, a safety line, an RPE range from 1 to 6, equipment, a chair requirement, and substitutions. A step names the exercise it plays. Sequences set sequence to true.
Keep the instructions literal. The reminder copy can carry one light git joke. The steps should not. The unit tests fail if claim words show up in the library, the sequences, or the panels. The safety message, the professional-guidance statement, and the back-wave line “Never push through pain.” are the only allowed exceptions.
Privacy
- Stats, snooze, do-not-disturb, custom programs, excluded moves, and the license stub live in local extension state. Recent routine ids are remembered only so the next break can vary. Skipping is not stored as a score.
- Keystroke times used for the heavy-typing hold stay in memory and are not written out, shown, or described as anything other than a timing hold.
- Document edits and file events used by the heuristic are held in memory for a few seconds and are not written out.
- There is no telemetry, no account, and no network call. Fonts are bundled. The webview does not load remote assets.
- Pro preview and
BC-PRO-LOCAL are local flags so the paid surface can be built later. They are not a purchase.
Development
npm install
npm test
npm run lint
npm run compile
npm run package # writes bodycommit-0.4.0.vsix
npm test covers the activity clock, the agent heuristic, the flow gate, selection, Lunch Walk, local stats, the license stub, and the shipped library. It does not launch VS Code.
The UI fonts are Space Grotesk, Inter, and JetBrains Mono, shipped as WOFF2 under media/fonts/ with their SIL Open Font License texts. If a font fails to load, the panels fall back to the system UI fonts.
License
MIT. See LICENSE.
| |