find_loops
Extract repeated commands or edits from a session transcript that exceed a threshold, excluding read-only actions to identify wasteful loops.
Instructions
Return only the repeated stateful actions in a session.
A loop is the same command or edit issued at least threshold times. Reads and
other read-only tools are excluded, because re-reading a file is navigation
rather than thrash.
Args: path: Path to a .jsonl session transcript. threshold: Repeats of one action that count as a loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |