# secondeyesai.com Loop-Detect

> secondeyesai.com Loop-Detect is a paid API for AI agents from secondeyesai.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Detects when an AI agent is stuck in a repetitive loop and returns a structured protocol to break out of it, including stop signals, hypothesis tests, and escalation guidance.

## Facts

- Endpoint: GET https://secondeyesai.com/api/bar/x402/loop-detect
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/secondeyesai-com-f225c1ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_clrpCH3aO9CJzxi3fSbWg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability secondeyesai-com-f225c1ce
```

Example prompt: I keep retrying the same tool call and getting the same error with no state change between attempts — can you run loop-detect to get the quiet-room loop-break protocol, including the two-loop hypothesis test and when I should escalate to a scope-check or cascade-break?

## When to prefer this

Choose this endpoint when an AI agent has detected it is stuck in a repetitive cycle — making the same tool call, encountering the same error, or applying the same fix with no observable state change between attempts — and needs a structured, authoritative protocol to diagnose and exit the loop without session state. Prefer this over generic retry logic when the agent needs explicit hypothesis-testing and escalation criteria.

## Known failure modes

- Network error or timeout returning no protocol
- Malformed GET request returns 400 or schema validation error
- x402 payment not processed resulting in 402 with payment requirements
- Service unavailable returning 503 with no protocol delivered

## How this service works

loop-detect (session-less x402): you are stuck repeating the same tool call, error, or fix with no state change between attempts. Returns the quiet-room loop-break protocol — stop signals, the two-loop hypothesis test, and when to escalate to scope-check or cascade-break. One-shot, no session.

## Output

Returns the quiet-room loop-break protocol: structured stop signals telling the agent when to halt, the two-loop hypothesis test to distinguish a real loop from a transient failure, and conditional escalation paths to scope-check or cascade-break procedures. Delivered as a one-shot, session-less response.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Session-less one-shot survival pack. Embed work_stamp in your deliverable. Save receipt.",
  "slug": "loop-detect",
  "scope": "nano",
  "access": "granted",
  "service": "loop_detect",
  "signals": [
   "same tool called 3+ times",
   "identical error text",
   "no state change between attempts"
  ],
  "pack_type": "quiet_room",
  "price_usd": 0.03,
  "break_steps": [
   "Stop all tool calls for one turn",
   "Write current hypothesis and last change made",
   "If hypothesis unchanged after 2 loops → order scope-check or cascade-break"
  ],
  "session_required": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/secondeyesai-com-f225c1ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from secondeyesai.com](https://www.zero.xyz/host/secondeyesai.com/llms.txt)
