From 440f148c875b43588bd793aff4f5039e95ae6fad Mon Sep 17 00:00:00 2001 From: KeelrLeek <156356974+KeelrLeek@users.noreply.github.com> Date: Tue, 6 Oct 2026 01:44:56 -0500 Subject: [PATCH] watch.py: --ignore AGENT,... skips stalls already reported --- tools/watch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/watch.py b/tools/watch.py index 816d011..c6f0579 100644 --- a/tools/watch.py +++ b/tools/watch.py @@ -57,6 +57,7 @@ def main(): ap.add_argument("--every", type=float, default=60) ap.add_argument("--stall", type=float, default=15, help="minutes without a tool call before a running agent " "counts as stalled (0: off)") + ap.add_argument("--ignore", default="", help="comma-separated agents whose stalls are already reported") ap.add_argument("--quiet-traffic", action="store_true", help="skip review items and messages (helpers handle them); wake only on stalls, stops and resting") args = ap.parse_args() @@ -85,6 +86,8 @@ def main(): if now["resting"] != start["resting"] and now["resting"]: found.append("resting under autopilot: " + ", ".join(k.split(":", 1)[1] for (k,) in now["resting"])) for agent, last in stalled(conn, project, args.me, args.stall): + if agent in {a.strip() for a in args.ignore.split(",") if a.strip()}: + continue found.append(f"stalled: {agent} has made no tool call since {last[11:16]}Z (not stopped) - wake it") if found: print("\n".join(found))