{"slug":"denk-halowerk-com-v1-loop-detect-2c374b","title":"Detect loops in an agent run","host":"denk.halowerk.com","method":"POST","resource":"https://denk.halowerk.com/v1/loop-detect","category":"other","description":"Detect loops in an agent run: identical repeated tool calls, A-B-A-B cycles and stretches without new results. Hashes every tool call (tool name plus canonical arguments) and optional result, then reports exact repeats, periodic cycles of length 2 to 5 that repeat at least three times, and stagnatio","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":912,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"calls":[{"arguments":{"q":"x"},"tool":"search"},{"arguments":{"id":1},"tool":"open"},{"arguments":{"q":"x"},"tool":"search"},{"arguments":{"id":1},"tool":"open"},{"arguments":{"q":"x"},"tool":"search"},{"arguments":{"id":1},"tool":"open"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"calls":{"items":{"additionalProperties":false,"properties":{"arguments":{},"result":{},"tool":{"maxLength":200,"type":"string"}},"required":["tool"],"type":"object"},"maxItems":10000,"minItems":1,"type":"array"},"min_repeats":{"default":3,"maximum":20,"minimum":2,"type":"integer"}},"required":["calls"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":912,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":906,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":919,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":912,"error":null}],"description_full":"Detect loops in an agent run: identical repeated tool calls, A-B-A-B cycles and stretches without new results. Hashes every tool call (tool name plus canonical arguments) and optional result, then reports exact repeats, periodic cycles of length 2 to 5 that repeat at least three times, and stagnation windows where several consecutive calls return results already seen. Returns the positions, the cycle pattern and a stop recommendation for the orchestrator.","last_updated":"2026-11-24T10:19:00.939Z","schemes":["exact"]}