detect_patterns
Analyze captured hook events to surface recurring shell commands and error signatures, then receive automation suggestions for repeated behaviors.
Instructions
Analyze captured runtime hook events and surface recurring behaviors across sessions. Detects repeated shell commands and recurring error signatures using frequency analysis. Patterns are stored with frequency, last_seen, and suggested_automation fields. Returns an array of pattern objects with type, description, occurrence count, and an actionable automation suggestion. Call after several sessions of work to identify tasks worth automating or formalizing as a hook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window_days | No | Number of past days to analyze. Defaults to 7. | |
| min_occurrences | No | Minimum times a pattern must appear to be reported. Defaults to 3. |