WEBVTT

1
00:00:00.000 --> 00:00:01.680
Your agent is still working.

2
00:00:01.840 --> 00:00:03.840
The terminal keeps moving.

3
00:00:04.140 --> 00:00:08.320
But it has just asked for the same thing for the

4
00:00:08.413 --> 00:00:10.640
fifth time.

5
00:00:10.747 --> 00:00:14.880
Activity can look reassuring, even when the session is stuck in a

6
00:00:14.960 --> 00:00:15.360
loop.

7
00:00:15.886 --> 00:00:19.726
Picture a coding task where the agent keeps checking Git status.

8
00:00:19.918 --> 00:00:21.327
Once is useful.

9
00:00:21.566 --> 00:00:25.966
Five identical calls in a row may mean it has lost its

10
00:00:26.014 --> 00:00:27.206
next step.

11
00:00:27.292 --> 00:00:31.486
Across several sessions, that pattern is easy to miss until you come

12
00:00:31.534 --> 00:00:33.646
back to the same unfinished task.

13
00:00:34.178 --> 00:00:38.338
ClawMetry looks for repeated tool calls with the same arguments,

14
00:00:38.378 --> 00:00:41.138
and short repeating cycles of tool names.

15
00:00:41.218 --> 00:00:45.298
When the repetition crosses the applicable threshold, it raises a

16
00:00:45.378 --> 00:00:46.818
stuck loop warning.

17
00:00:47.018 --> 00:00:51.298
The finding tells you the pattern, the tool and the repeat count.

18
00:00:51.844 --> 00:00:56.324
In the checked example, five identical Git status calls produce

19
00:00:56.404 --> 00:00:57.044
a warning.

20
00:00:57.204 --> 00:01:01.204
Eight calls with different file arguments stay quiet for this

21
00:01:01.266 --> 00:01:01.844
detector.

22
00:01:02.104 --> 00:01:05.444
The important difference is the repeated action.

23
00:01:05.548 --> 00:01:09.924
Thresholds can reflect the runtime and its learned baseline, so

24
00:01:10.020 --> 00:01:13.204
five is an example, not a universal rule.

25
00:01:13.739 --> 00:01:16.619
Inspect the repeated step and its results.

26
00:01:16.886 --> 00:01:20.299
Is the agent waiting for something that cannot change?

27
00:01:20.459 --> 00:01:24.699
Does it need a missing dependency or a clearer next action?

28
00:01:24.979 --> 00:01:29.259
Use the finding to break the cycle yourself, then check whether

29
00:01:29.316 --> 00:01:30.779
useful work resumes.

30
00:01:31.323 --> 00:01:34.283
Make stuck loop visible in your agent workflow.

31
00:01:34.503 --> 00:01:38.843
See the finding, understand the reason, and review what happened

32
00:01:38.955 --> 00:01:40.163
next.

33
00:01:40.258 --> 00:01:43.963
Explore this detector at ClawMetry dot com.
