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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "find_loops"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |