Blog · November 5, 2026 · 7 min read · by Vilva Athiban P B

Hip Flexor and Lower Back Stretches for Developers: A Two-Minute Standing Routine Between Agent Runs

The wrist routine and the neck and shoulder routine in this series could both be done from the chair. This one cannot. A seated developer has the hips bent at roughly ninety degrees for hours, which holds the hip flexors in a shortened position while the glutes do nothing and the lower back takes whatever load the chair does not. Stand up after a long run of agent work and you feel it: a stiff fold at the front of the hips and a lower back that takes a second to straighten. The fix is two minutes on your feet beside the desk, which is about what a Claude Code or Codex run gives you.

Where the moves come from, and what we changed

The source is a single public leaflet: Cambridge University Hospitals' Stretches for the hip (cuh.nhs.uk/patient-information/stretches-for-the-hip, approved July 2024). It describes a hip extensor stretch (lying on your back, pulling one knee toward your stomach while pushing the other leg down), a gluteal stretch (sitting, one leg crossed over the other, knee toward the opposite shoulder), a piriformis stretch (a crossed-leg knee hug), hamstring, ITB and adductor stretches, and a quadriceps stretch. Two honest caveats. First, most of those are floor or chair exercises; what follows are standing adaptations for the desk, flagged as such. Second, the leaflet leaves hold times and repetitions blank for a physiotherapist to fill in, so the numbers below are the generic guidance most physio leaflets use (hold fifteen to thirty seconds), not CUH's. Its safety advice we keep as written: keep the spine neutral and gently tighten the lower abdominals, treat the handout as a guide only, and if an exercise is painful, seek advice from a physiotherapist or GP.

The two-minute standing routine

Hold the desk edge or the chair back with one hand throughout; balance is not the exercise. Breathe normally, go to a comfortable pull and never to pain, and keep the lower abdominals gently tight so the lower back does not arch to do the hip's work.

  1. Standing hip-flexor stretch, half-lunge (20 seconds each side). Step one foot back about a stride, front knee over the ankle, back knee soft rather than locked. Tuck the tailbone slightly, tighten the lower abdominals, and shift your weight forward until you feel a pull across the front of the back hip. If balance or knees object, rest the back knee on the edge of the chair seat and lean forward from there. The CUH leaflet does not describe this move by name; it is the standing cousin of its quadriceps stretch, aimed at the hip rather than the thigh.
  2. Standing figure-four glute stretch at the desk (20 seconds each side). Holding the desk with both hands, cross one ankle over the opposite knee so the legs make a four, then sit back as if into a chair that is not there, spine neutral. The pull is in the outside of the crossed hip. This is the standing adaptation of the leaflet's gluteal and piriformis stretches; if balance is a problem, do it the leaflet's way: sit, cross one leg over the other, and draw the knee toward the opposite shoulder.
  3. Standing knee hug (15 seconds each side). One hand on the desk, lift one knee and pull it toward your stomach with the other hand, standing tall. The leaflet shows this hip extensor stretch lying down, pushing the other leg into the floor; standing, the planted leg does that job by staying long.
  4. Gentle standing back extension and pelvic tilts (15 seconds). Hands on the hips, lean back a few degrees, just enough to reverse the slump, and return to upright; three or four times. Then rock the pelvis slowly forward and back a handful of times. Small movements, not a backbend; this is generic mobility advice, not a CUH stretch.
  5. Walk (whatever is left). To the kettle, the window and back. Walking is what lets the hip use the range it just got; the post on sitting too long makes the longer argument for the walk.

The holds come to a hundred and ten seconds before the walk, which is why this is one set. On a long run, repeat the hip-flexor and figure-four holds; those are the two the chair undoes fastest.

What we left out, and why

No bouncing. Every move here is a slow, held stretch; ballistic stretching is what general advice tells you to avoid. No deep forward folds first thing in the morning, either: most generic back-care advice says to leave full lumbar flexion until you have been moving for a while, so if the first agent run of the day is at 8:05, skip the toe-touches. And no hamstring, ITB or adductor stretches, though the leaflet describes them, because they do not fit in two minutes beside a desk; four things done properly beat seven done badly.

When not to stretch

If you have acute lower back pain, pain or tingling running down a leg (the pattern people call sciatica), or a recent injury to the hip, back or knee, see a physiotherapist or GP before stretching anything. The leaflet's own rule applies: it is a guide only, and if an exercise is painful, stop and seek advice. Mild stiffness that eases as you move is normal after sitting; sharp pain, pain that worsens as you hold, or symptoms below the knee are not. This is not medical advice.

Where NotchFit fits

NotchFit is the $20 one-time macOS app (macOS 14 or later, Apple Silicon and Intel, sold on Whop) for developers who use Claude Code or OpenAI Codex CLI. When your agent starts a task, the MacBook notch expands into a panel with an animated exercise on the left and the AI's live progress on the right. The rep and time countdown ring with Done, Skip and Pause matters here: a twenty-second hold is easy to cut short while watching a terminal. Every set starts only when you tap Start set, and the rest timer between sets is where the walk goes.

The weekly plan is written by your own agent: /notchfit:plan in Claude Code or $notchfit-plan in Codex asks about your goal, equipment, days per week, minutes per day and injuries, then writes a plan using only exercises the notch can animate out of its library of 239. Tell it about a back problem and it can plan around it; there is also an offline quick-plan generator. We have not checked whether the library contains a move under the exact name “standing hip-flexor stretch,” so treat this routine as a manual add-on for the rest timer. What the app does guarantee is that “Claude is done” and “needs permission” alerts arriving mid-set wait until the set ends, so the lunge is not abandoned at second nine. The Hide workout toggle turns the notch into a pure status panel; Macs without a notch get a top-centre pill. It runs locally and is a workout guide, not medical advice.

Try it on the next run

Next time the terminal says Claude has started, stand up before you read the first tool call. Hand on the desk, one foot back, soften the knee, tuck the tailbone and hold. Cross the ankle, sit back, hold. Hug a knee, lean back a few degrees, rock the pelvis, walk to the window. The run will still be going when you sit down, on hips that have been somewhere other than ninety degrees for the first time in an hour.

Keep reading

Desk Exercises for Programmers: 15 Moves to Do While Your AI Agent Codes

7 min read

Exercise While Coding: Turn Claude Code Wait Time Into Micro-Workouts

7 min read

Claude Code Notch Notifications on Mac: See When Claude Is Done Without Watching the Terminal

7 min read

Claude Code Tips and Tricks: 12 Ways to Use Claude Code Effectively

8 min read

Claude Code Multiple Sessions: How to Run Agents in Parallel Without Losing Track

6 min read

A Claude Code Workflow That Doesn't Involve Watching the Terminal

5 min read

Claude Code Hooks: A Practical Guide to Automating Your Agent Workflow

7 min read

Claude Code Auto Mode: Fewer Permission Prompts Without Living Dangerously

7 min read

Claude Code Subagents: How to Delegate Work to Specialized Agents

7 min read

Claude Code Context Management: Treat the Context Window Like a Budget

6 min read

Per-Subagent Model Selection: Route the Grunt Work Down, Keep the Judgment Up Top

7 min read

Skills and Plugins: How to Teach Claude Code Your Way of Working

7 min read

Claude Code Background Tasks: Run Long Commands Without Blocking Your Session

6 min read

Codex CLI Notifications: How to Get a Ding When Codex Is Done or Needs Input

7 min read

Cursor Notification When Done: Every Way to Get Notified When Cursor Finishes

6 min read

Claude Code Notifications: How to Get Notified When Claude Code Finishes or Needs Your Input

6 min read

Want to Be Notified When Claude Responds? How Claude Notifications Work on Web, Desktop, and Mobile

5 min read

Claude Code Notification Scripts: Copy-Paste Recipes for Every Platform

6 min read

Get a Ding the Moment Codex Needs Your Response

6 min read

Get Notified the Moment Claude Code Is Waiting for Your Input

6 min read

“Notifications Are Turned Off for Claude” — Here Is the Fix

6 min read

Codex Sound When Done: Make Codex CLI Play a Sound When It Finishes

6 min read

terminal-notifier + Claude Code: Native macOS Alerts When Your Agent Finishes

6 min read

Gemini CLI Notifications: How to Get a Sound or Alert When Gemini Finishes

6 min read

Get Claude Code Notifications on Your Phone

6 min read

Claude Code Remote Control, Explained

7 min read

preferredNotifChannel: Claude Code's Built-In Notification Setting

6 min read

Claude Code Notifications in tmux and Over SSH

7 min read

Claude Code Effort Levels: Why Your Setting Keeps Getting Ignored

8 min read

Codex vs Claude Code Notifications: How Each One Tells You It Is Done

8 min read

Claude Code Notifications Not Working: A Diagnostic Checklist

10 min read

Claude Code Notifications Inside Your Editor's Terminal

7 min read

CLAUDE_CODE_DISABLE_BACKGROUND_TASKS Explained

7 min read

CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP Explained

8 min read

Cursor Alerts Explained: Every Alert Cursor Raises, and How to Control Them

7 min read

Claude Code Environment Variables: The Groups That Actually Matter

10 min read

Claude Code Notifications on WSL and Windows

9 min read

Claude Code Checkpoints and /rewind

8 min read

Claude Remote Control: How It Works, Turning It Off, and Auto Mode

7 min read

Claude Code /loop: Poll a Deploy, Babysit a PR, and Get Told When It's Done

8 min read

Setting Up NotchFit With OpenAI Codex CLI: Hooks, $notchfit-plan, and the Daily Flow

7 min read

Claude Mods Explained: What the New Plugin Layer Can Do, and How to Turn On 'You Should Know'

9 min read

NotchFit vs Mac Break Reminder Apps: A Clock or a Signal From Your Coding Agent?

8 min read

Claude Code Headless Mode: Running claude -p in Scripts and CI, and the Three Signals That It Finished

10 min read

Building a Movement Habit at a Desk: Use the Agent Run as the Cue, One Set as the Unit, and Streaks Carefully

8 min read

Claude Code MCP Servers Explained: Adding Servers, Choosing a Scope, Handling Secrets, and Why Long Tool Calls Go to the Background

10 min read

/notchfit:plan Explained: How Claude Code or Codex Writes a Weekly Workout Plan the Notch Can Actually Run

8 min read

Claude Code Spinner Verbs Explained: What “Pondering” and “Brewing” Mean, How to Change Them, and Why You Should Stop Watching the Spinner

7 min read

Why NotchFit's Done and Permission Alerts Wait Until Your Set Ends, When That Costs You, and How to Turn the Workout Off

7 min read

How to Resume a Claude Code Session: --continue vs --resume, Naming Sessions, the Session Picker, Branching, and What Comes Back

9 min read

NotchFit on a Mac Without a Notch: How Pill Mode Works on Mac mini, iMac, Mac Studio and a MacBook With the Lid Closed

6 min read

How to Run a Claude Code Session in the Background: /background, claude --bg, Agent View, and Getting Back to It

9 min read

What a Notch App Can See: NotchFit's Local-First Design, What the Claude Code and Codex Hooks Send, and What Stays on Your Mac

7 min read

Why Codex CLI Asks for Permission Every Time, and How to Tune the Sandbox and Approval Policy Without Going Full Access

8 min read

What to Do While Claude Code or Codex Works: A Simple Protocol for the Two-to-Twenty-Minute Gap in Every Agent Run

7 min read

Is It Possible to Get a Notification When Claude Code or Codex Hits a Reset? Yes for Claude Code: the quota_auto_resume Hooks, Explained

8 min read

What a MacBook Notch App Can Actually Do: The Five Kinds of Notch Utility, Their Trade-offs, and Where NotchFit Fits

7 min read

How to Make MCP Servers Not Take Up as Much Context in Claude Code: Tool Search, alwaysLoad, Scopes and Output Caps

8 min read

The notchfit Command Line: Drive Your Workout, Read Status as JSON, Validate Plans and Test the Notch Without Leaving the Terminal

7 min read

How to Audit MCP Tool Calls Made by Claude Code: A Five-Minute Hook Audit Log, OpenTelemetry Tool Events, and the Transcript for Investigations

9 min read

Exercise Snacks: What the Research Actually Says About One-Minute Vigorous Breaks, What It Does Not, and How NotchFit's Agent-Run Sets Compare

8 min read

How Long Until a Claude Code MCP Tool Call Times Out? The Four Timers (Startup, Two-Minute Backgrounding, Idle, Wall-Clock), Their Defaults, and Which One to Change

8 min read

Sitting Too Long as a Developer: The Posture Problems Coding Agents Made Worse, What the Research Says About Breaking Up Sitting, and How NotchFit Turns an Agent Run Into the Break

8 min read

Claude Code .mcp.json Explained: Where Project-Scoped MCP Servers Are Read From, What Happens in Subfolders and Monorepos, and Why a Committed Server Shows Pending Approval

8 min read

Standing Desk Exercises for Developers: Why Standing Still Is Not the Goal, Eight Movements That Fit a Thirty-Second Agent Run, and How NotchFit Cues Them From the Notch

8 min read

The claude mcp Command Reference: add Syntax by Transport, What --scope local, project and user Actually Mean, add-json and add-from-claude-desktop, list, get, remove, login and serve

9 min read

Your First Week With NotchFit: Install and Simulate, Run Real Tasks, Write a Smaller Plan Than You Want, Tune the Alerts, Survive the First Skipped Day, and Decide What Stays

8 min read

How to Stop a Running Claude Code Task: Esc vs Ctrl+C, Background Tasks, Subagents, and Disconnecting Remote Control

8 min read

Pomodoro vs Agent-Driven Breaks: Timing Movement to Claude Code and Codex Runs Instead of a Timer

7 min read

Claude Desktop MCP Configuration: claude_desktop_config.json, Logs, Extensions, and the Difference From Claude Code

9 min read

The 20-20-20 Rule for Developers: Eye Strain, the Evidence, and Agent Runs as the Cue

8 min read

Claude Agent SDK + MCP Servers: mcpServers, allowedTools, Status Checks and Auth

9 min read

Discreet Desk Exercises for an Open-Plan Office While Claude Code Runs

7 min read

claude remote-control Server Mode: Run Claude Code as a Session Server

9 min read

Wrist and Forearm Stretches for Developers: A 60-Second Routine for Every Claude Code Run

7 min read

Claude Remote Control vs Claude Code on the Web: Which to Use and How They Differ

9 min read

Neck and Shoulder Stretches for Developers: A 90-Second Routine Between Agent Runs

7 min read

What Happens When You Step Away From a Claude Code Session: Prompt Cache Expiry, Idle Compaction, and When to Come Back

8 min read