WEBVTT

1
00:00:00.000 --> 00:00:01.040
A build fails.

2
00:00:01.220 --> 00:00:02.960
The agent tries again.

3
00:00:03.253 --> 00:00:05.080
It fails again.

4
00:00:05.184 --> 00:00:09.440
Each retry adds more output, but the underlying problem is still

5
00:00:09.507 --> 00:00:09.920
there.

6
00:00:10.267 --> 00:00:14.240
If you only check whether the session is active, you can miss the

7
00:00:14.300 --> 00:00:16.080
failure that keeps repeating.

8
00:00:16.625 --> 00:00:20.465
Consider an agent preparing a change while its shell tool repeatedly

9
00:00:20.525 --> 00:00:21.585
returns an error.

10
00:00:21.785 --> 00:00:25.905
The cause might be a missing dependency, an invalid command

11
00:00:26.092 --> 00:00:27.905
or unavailable access.

12
00:00:28.125 --> 00:00:32.545
The useful question is which tool keeps failing, and how

13
00:00:32.625 --> 00:00:33.105
often.

14
00:00:33.634 --> 00:00:37.474
ClawMetry counts errors attributed to the same tool in the event

15
00:00:37.543 --> 00:00:38.034
window.

16
00:00:38.226 --> 00:00:42.274
When the count crosses the applicable threshold, it raises a

17
00:00:42.336 --> 00:00:44.434
repeated tool failure warning.

18
00:00:44.654 --> 00:00:48.594
The finding names the tool, the failure count and the

19
00:00:48.658 --> 00:00:49.794
threshold used.

20
00:00:50.343 --> 00:00:54.023
In the checked example, four failing shell results produce a

21
00:00:54.083 --> 00:00:54.583
warning.

22
00:00:54.903 --> 00:00:57.623
A single failure stays below the threshold.

23
00:00:57.735 --> 00:01:01.303
This is different from an identical-call loop: the commands can

24
00:01:01.383 --> 00:01:04.903
change while the same tool continues to return errors.

25
00:01:05.445 --> 00:01:08.325
Open the failing results and look for the common cause.

26
00:01:08.525 --> 00:01:12.885
Fix the environment or access problem, or narrow the agent task

27
00:01:12.976 --> 00:01:15.205
before letting retries accumulate.

28
00:01:15.381 --> 00:01:18.885
Then verify that the next tool result actually

29
00:01:18.983 --> 00:01:19.925
succeeds.

30
00:01:20.487 --> 00:01:23.767
Make repeated tool failure visible in your agent workflow.

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

32
00:01:28.407 --> 00:01:28.807
next.

33
00:01:28.917 --> 00:01:32.007
Explore this detector at ClawMetry dot com.
