agents/recent-patterns: adaptive lookback window + weekly cycle detection #116
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Make
RecentPatternsAgent'''s lookback window adapt to activity volume, and surface day-of-week / time-of-day cyclical patterns as structured tags on its snippet.Why
A fixed 24h lookback misses weekly cycles for casual users and overwhelms the snippet for active ones. The agent should look back as far as it needs to find a clear signal, no further.
Inferred parameters
lookbackDaysweeklyCycle{ dow: 0–6, strength: 0–1, sample: 'completes most Tuesdays' }[]dailyCycle{ hour: 0–23, strength: 0–1 }[]Method (sketch)
Done when
strength > 0.5.Depends on