Skip to content

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.

Shell

Suppress sprint nudges when no tasks are pending

Rudy Celekliac0a12857d53
diff --git a/product/product-behavioral-nudge-engine.md b/product/product-behavioral-nudge-engine.md
index d120d530..80a0f901 100644
--- a/product/product-behavioral-nudge-engine.md
+++ b/product/product-behavioral-nudge-engine.md
@@ -37,6 +37,9 @@ Concrete examples of what you produce:
```typescript
// Behavioral Engine: Generating a Time-Boxed Sprint Nudge
export function generateSprintNudge(pendingTasks: Task[], userProfile: UserPsyche) {
+ // No pending work: return no notification; callers skip delivery for null.
+ if (pendingTasks.length === 0) return null;
+
if (userProfile.tendencies.includes('ADHD') || userProfile.status === 'Overwhelmed') {
// Break cognitive load. Offer a micro-sprint instead of a summary.
return {