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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "detect_patterns"
}
}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. |