Description
Detects fragmented coding flow with long pauses between prompts, indicating frequent context switches, interruptions, or multitasking.
When Triggered
{{count}}/{{extra.totalDays}} days ({{pct}}) show fragmented flow -- long pauses between prompts, short scattered work blocks. Average flow score: {{extra.avgScore}}/100. This anti-pattern indicates frequent context switches, interruptions, or multitasking that prevent deep coding flow.
How to Improve
Block 2+ hour uninterrupted time slots for AI-assisted coding. Close Slack / email / notifications during coding sessions. Pre-plan your next prompt while the agent works on the current one. Batch meetings to protect contiguous coding blocks. Use the Flow State page to find your most productive hours.
Examples
{{extra.date}}: avg flow score {{extra.flowScore}}/100
Detection Logic
scan: sessions
match: requestCount >= thresholds.sessionMinReqs
aggregate: count
flow: flowScoreStats(allSessions, thresholds.sessionMinReqs, thresholds.rapidFollowupSec * 1000)
emitCount: flow.fragmentedDays
emitTotal: flow.totalDays
totalDays: flow.totalDays
avgScore: flow.avgScore
check: flow.lowScoreRate > thresholds.lowScoreRate AND flow.totalDays >= thresholds.minDays
severity: flow.lowScoreRate > 0.8
examples: {{workspaceName}}: flow disruption detected