Deep Work Session Planner
Designs personalized deep work sessions, break rhythms, and focus protocols to maximize concentration and minimize mental fatigue.
Example run
Generated by Claude Opus 5.5 on November 24, 2026
Inputs used
- Work type
- Backend software engineer (Python/Go microservices) at a 40-person fintech startup
- Main objective
- Finish refactoring the payment-reconciliation microservice and ship the new idempotency-key system with full test coverage before Friday's release
- Energy pattern
- Sharp and alert from 7–11am; steep post-lunch slump 1–3pm; smaller second wind 4–6pm before fading by 7pm
- Hours per day
- About 4 hours of protected deep work on weekdays, usually split into two blocks
- Main distraction source
- Slack pings and teammates dropping by to ask about unrelated bugs — I feel compelled to answer within minutes
- Workspace description
- I work from a small home office — a spare bedroom converted into a desk setup with a 27" monitor, mechanical keyboard, and a laptop docked to the side. The door doesn't fully block sound, so I can hear my partner's video calls from the next room and occasional traffic noise from the street below. My desk faces a window, which is great for daylight but means notifications light up my phone screen in my peripheral vision if I leave it face-up. I use Slack on both my laptop and phone, plus email open in a browser tab, and our team has a culture of expecting replies within 15-30 minutes during work hours. I have a decent pair of noise-cancelling headphones (Sony WH-1000XM5) but rarely use them proactively. There's a separate low desk in the corner I sometimes use for standing/shallow work like reviewing PRs or reading docs, but my main coding happens at the primary desk with two monitors and a split terminal/IDE setup (VS Code + tmux).
Deep Work System: Payment-Reconciliation Refactor and Idempotency Keys
Your context is complete, so I'll go straight to the design. One thing to check first: today is Wednesday, Nov 25. If you're in the US, Thursday is Thanksgiving, which may leave you one or two working days, not three, before Friday's release. The plan below front-loads the riskiest work for that reason.
1. Session Architecture
Structure: Two 90-minute morning blocks (your peak hours) plus one 75-minute block in your 4pm second wind. That's about 4 hours total.
Why 90 minutes, not Pomodoro: Idempotency and reconciliation logic means holding a large mental model: race conditions, retry semantics, ledger state. A 25-minute Pomodoro would force you to rebuild that model every half hour, so a 90-minute ultradian block fits the work better.
| Block | Time | Energy | Work type |
|---|---|---|---|
| A | 7:15–8:45 | Peak | Hardest design and logic |
| B | 9:05–10:35 | High | Refactor and integration |
| C | 4:00–5:15 | Moderate | Tests, which are more structured and lower-ambiguity |
Block A: Idempotency-Key Core
- Objective: Implement the key lifecycle: generation/acceptance, atomic claim (e.g.,
INSERT ... ON CONFLICTor RedisSET NXwith TTL), in-flight locking, and storing the response for replays. - Success Criteria: Duplicate concurrent requests with the same key produce exactly one side effect. A replayed request returns the cached response. Key-reuse with a different payload is rejected (e.g., 422).
- Focus Tactic: Spend the first 10 minutes writing the state machine (
new → in_progress → completed/failed) in a scratch file before coding. This is the hardest part of the week, so it gets your sharpest window.
Block B: Reconciliation Refactor and Wiring
- Objective: Refactor the reconciliation service into clean boundaries (ingest → match → resolve → persist) and route mutation endpoints through the idempotency layer.
- Success Criteria: The existing test suite stays green after each commit. No behavior changes beyond what you intended. You make small commits, each one revertible.
- Focus Tactic: Run a test watcher in a tmux pane (
gotestsum --watch/pytest-watch) so you get constant feedback without context switching. Refactor in small steps with a commit every 15–20 minutes.
Block C: Test Coverage
- Objective: Cover the edge cases: concurrent duplicates, timeouts mid-request, TTL expiry, partial failures, and key collisions across tenants.
- Success Criteria: The coverage target is met on the new packages. Concurrency tests pass under
go test -race -count=50. Every bug you found this week has a regression test. - Focus Tactic: Work from a prewritten checklist of test cases, which you draft at the end of Block B. That makes your lower-energy afternoon execution work, not decision work.
2. Pre-Work Ritual (5 minutes)
- Read yesterday's restart note (
~/notes/restart.md) so you know your exact next step before you touch code. - Broadcast your status: Set Slack to 🎧 "Deep work until 8:45 / 10:35. Prod emergency? Call or page me." Then pause notifications.
- Launch your workspace with one command: Run a tmux script that opens the editor, test watcher, and logs. That repeated action becomes your "deep mode" cue.
- Write the session objective at the top of
session.mdin one sentence, plus its success criterion. - Put on your headphones with ANC on and the same audio every time (brown noise or a single lyric-free playlist). Consistency is what builds the conditioned cue.
Here's a starter script, ~/bin/deep:
#!/usr/bin/env bash
tmux new-session -d -s deep -c ~/code/payment-recon
tmux send-keys -t deep 'code .' C-m
tmux split-window -h -t deep 'gotestsum --watch ./...'
tmux split-window -v -t deep
tmux attach -t deep
3. Environmental Setup
Phone
- Put it face-down on the low corner desk, not the main desk. It should be out of reach and out of your peripheral vision against the window.
- Turn on an OS Focus mode that allows calls only from your manager and on-call, and blocks Slack.
Laptop and monitors
- Quit the Slack app during blocks rather than just muting it. A visible red badge still pulls your attention.
- Close the email tab. Use a separate browser profile for deep work that contains only docs (Go/Python references, Postgres docs, internal API specs).
- Turn on VS Code Zen Mode (
Ctrl+K Z) and set"workbench.startupEditor": "none"so extension pop-ups stay quiet. - Keep the docked laptop screen limited to tmux (tests and logs) so nothing ambient appears there.
Sound
- Wear the XM5s with ANC on by default during every block.
- Ask your partner for their call schedule each morning and put your hardest 30 minutes in their quietest window.
- Hang a simple door sign. It helps both of you.
Team norms (the part that matters most)
Your team expects replies within 15–30 minutes. Don't silently break that norm; renegotiate it. Post something like this in your team channel:
"Shipping idempotency keys Friday. I'm heads-down 7:15–8:45, 9:05–10:35, and 4–5:15. I'll check Slack at 8:45, 10:35, and throughout 11–4. For prod-impacting payment issues, use PagerDuty or call me. That always breaks through."
This caps your worst-case response delay at about 90 minutes and gives real emergencies a reliable escalation path. That should remove most of the guilt that drives your compulsive checking.
4. Distraction Protocol
Internal urges
| If… | Then… |
|---|---|
| You feel the urge to check Slack or email | Write slack? in session.md's Parking Lot and return to the current line. |
| You remember an unrelated bug or task | Add one line to the Parking Lot. Don't open a ticket now. |
| You've been stuck for more than 15 minutes on a bug | Write a failing test that reproduces it, or explain it in writing in session.md. Don't escape to Slack. |
| Your mind wanders 3 times in 10 minutes | Stand, look out the window for 60 seconds, then return. If it happens again, end the block early and log why. |
| You finish the objective early | Pull the next item from that block's list. Don't open Slack as a reward. |
External interruptions
| If… | Then… |
|---|---|
| A DM about an unrelated bug arrives (seen at a break) | Reply with a template: "Heads-down on idempotency until 10:35. Is this blocking prod or a customer? If yes, page me. Otherwise I'll look at 11." |
| A teammate starts a huddle or call during a block | Decline and reply "In a focus block. Can it wait until [next break]?" Accept only if it's prod-impacting. |
| A real P0 hits (payments failing, reconciliation drift) | Spend 60 seconds writing a restart note first (current file, line, next step, open hypothesis), then switch. This reduces attention residue when you come back. |
| Your partner's call gets loud | Turn the brown noise up. Don't leave the desk. |
| Someone asks you to "just take a quick look" | Schedule it in your 1–3pm shallow block. Quick looks at fintech bugs are rarely quick. |
5. Break and Recovery Plan
| Break | When | Activity | Rule |
|---|---|---|---|
| Micro-reset | Around the 45-minute mark of each block | 60 seconds: stand, roll your shoulders, focus your eyes on something far out the window | Stay in your seat's orbit. Keep the mental model loaded. |
| Inter-block | 8:45–9:05 | Water and a snack, a 5-minute walk or stretch, then a 5–10 minute Slack triage | Do the recovery before Slack, not after, or the triage turns into your whole break. |
| Transition | 10:35–11:00 | Slack and email sweep, reply to the Parking Lot, write Block C's test checklist | This is shallow work, so use the standing desk. |
| Lunch | 12:00–12:45 | Eat away from the desk. No code, no Slack. | |
| Slump reset | Around 1:00 | 15–20 minutes of NSDR or a nap, or a brisk outdoor walk | Don't schedule deep work here. This block exists to absorb shallow work. |
| Pre-C primer | 3:45–4:00 | A 10-minute walk outside, daylight if you can get it | This kicks off your second wind. |
Avoid scrolling during breaks. It reloads your working memory with novel input, which is exactly what you're trying to clear.
6. Sample Daily Schedule
| Time | Activity | Location |
|---|---|---|
| 6:45 | Wake up, hydrate, coffee. No Slack. | — |
| 7:10 | Pre-work ritual | Main desk |
| 7:15–8:45 | Block A: Idempotency core | Main desk |
| 8:45–9:05 | Break, then Slack triage | Away, then standing desk |
| 9:05–10:35 | Block B: Refactor and wiring | Main desk |
| 10:35–11:00 | Slack and email sweep, write test checklist | Standing desk |
| 11:00–12:00 | Standups, syncs, answering teammates' bug questions | Either |
| 12:00–12:45 | Lunch, offline | Away |
| 12:45–1:05 | NSDR, nap, or walk | Away |
| 1:05–3:45 | Shallow block: PR reviews, docs, responding, release checklist, answering parked questions | Standing desk |
| 3:45–4:00 | Outdoor walk | Outside |
| 4:00–5:15 | Block C: Test coverage | Main desk |
| 5:15–5:30 | Shutdown ritual: push your branch, write restart.md (next step, open questions, blockers), post a short progress update in Slack |
Main desk |
| 5:30+ | Off. Close the laptop lid. | — |
Pre-release adjustment: On the day before release, swap Block C to the morning. Run your full concurrency and -race test runs while you're sharpest, and use the afternoon for release notes and staging verification.
Focus Metrics (track daily in session.md)
- Deep minutes logged: Actual uninterrupted minutes per block. Target is about 240 per day.
- Interruption count: Split into S (self-initiated urges) and E (external pings you acted on). Aim to drive S down. E tells you whether your team norms are holding.
- Session rating and output: Rate each block 1–5 for depth, and log one concrete result, such as "Concurrent-dupe test passing" or "Coverage 71% → 84%."
Weekly review prompt: "Which block produced my best work, what pulled me out of the others, and what one environmental or norm change would have prevented it?"
If you tell me whether Thursday is a working day for you, I can redistribute the remaining work into an exact hour-by-hour plan for Wednesday through Friday.
Related prompts
Time Blocking Strategist
Builds a detailed, energy-aware time-blocked daily schedule with focus blocks, buffers, and resilience tips.
Habit Architecture Designer
Designs a science-based, personalized 30-day plan to build positive habits and break negative ones.
Procrastination Breakthrough Coach
Behavioral coach that diagnoses your procrastination patterns and builds a personalized, science-based action plan to beat them.
Language Learning Conversation Partner
Native-level tutor runs natural target-language conversations with gentle corrections, new vocabulary, and cultural insights.