Crawler Summary

claude-agent-loop answer-first brief

Autonomous AI agent loop with built-in context handoff. Runs Claude Code repeatedly until all PRD items complete. Features: (1) automatic context threshold detection and handoff, (2) complexity-based story decomposition, (3) state persistence via git/files, (4) fresh instance spawning with summary transfer. Use when: starting autonomous development, running ralph-style loops, implementing PRDs autonomously, needing context-aware agent handoffs, or executing multi-story feature development. Triggers on: /autonomous-agent-loop, ralph loop, agent loop, run autonomously, implement prd. --- name: autonomous-agent-loop description: "Autonomous AI agent loop with built-in context handoff. Runs Claude Code repeatedly until all PRD items complete. Features: (1) automatic context threshold detection and handoff, (2) complexity-based story decomposition, (3) state persistence via git/files, (4) fresh instance spawning with summary transfer. Use when: starting autonomous development, running ralph-style lo Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Freshness

Last checked 2/25/2026

Best For

claude-agent-loop is best for monitor workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB REPOS, runtime-metrics, public facts pack

Claim this agent
Agent DossierGITHUB REPOSSafety: 89/100

claude-agent-loop

Autonomous AI agent loop with built-in context handoff. Runs Claude Code repeatedly until all PRD items complete. Features: (1) automatic context threshold detection and handoff, (2) complexity-based story decomposition, (3) state persistence via git/files, (4) fresh instance spawning with summary transfer. Use when: starting autonomous development, running ralph-style loops, implementing PRDs autonomously, needing context-aware agent handoffs, or executing multi-story feature development. Triggers on: /autonomous-agent-loop, ralph loop, agent loop, run autonomously, implement prd. --- name: autonomous-agent-loop description: "Autonomous AI agent loop with built-in context handoff. Runs Claude Code repeatedly until all PRD items complete. Features: (1) automatic context threshold detection and handoff, (2) complexity-based story decomposition, (3) state persistence via git/files, (4) fresh instance spawning with summary transfer. Use when: starting autonomous development, running ralph-style lo

OpenClawself-declared

Public facts

4

Change events

1

Artifacts

0

Freshness

Feb 25, 2026

Verifiededitorial-contentNo verified compatibility signals

Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Trust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Feb 25, 2026

Vendor

Bowen31337

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Capability contract not published. No trust telemetry is available yet. Last updated 2/25/2026.

Setup snapshot

  1. 1

    Setup complexity is MEDIUM. Standard integration tests and API key provisioning are required before connecting this to production workloads.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Bowen31337

profilemedium
Observed Feb 25, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed Feb 25, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB REPOS

Extracted files

0

Examples

6

Snippets

0

Languages

typescript

Executable Examples

bash

# Run in background so user can monitor
./scripts/ralph/loop.sh [max_iterations]

text

# CORRECT - Execute it:
Bash: ./scripts/ralph/loop.sh 25

# WRONG - Don't just tell user:
"To run the loop: ./scripts/ralph/loop.sh 25"  # NO!

bash

./scripts/ralph/loop.sh [calculated_iterations]

text

Complexity Score = (
  functional_requirements × 2 +
  integration_points × 3 +
  ui_components × 1.5 +
  database_changes × 2 +
  external_apis × 3
) / 5

json

{
  "timestamp": "2024-01-15T10:30:00Z",
  "reason": "context_threshold",
  "current_story": {
    "id": "US-003",
    "title": "Add priority selector",
    "progress_percent": 65,
    "status": "implementing"
  },
  "work_in_progress": {
    "files_modified": ["src/components/TaskEdit.tsx"],
    "uncommitted_changes": "Added priority dropdown UI",
    "next_steps": ["Wire up server action", "Test in browser"]
  },
  "handoff_instruction": "Continue US-003 - dropdown rendered, need save logic"
}

text

project/
├── scripts/ralph/
│   ├── loop.sh           # Main agent loop script
│   ├── CLAUDE.md         # Agent instructions (auto-loaded)
│   └── analyze.py        # Complexity analyzer
├── prd.json              # Story definitions and status
├── progress.txt          # Learnings and progress log
├── handoff.json          # Context handoff state (when needed)
└── archive/              # Previous run archives

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB REPOS

Docs source

GITHUB REPOS

Editorial quality

ready

Autonomous AI agent loop with built-in context handoff. Runs Claude Code repeatedly until all PRD items complete. Features: (1) automatic context threshold detection and handoff, (2) complexity-based story decomposition, (3) state persistence via git/files, (4) fresh instance spawning with summary transfer. Use when: starting autonomous development, running ralph-style loops, implementing PRDs autonomously, needing context-aware agent handoffs, or executing multi-story feature development. Triggers on: /autonomous-agent-loop, ralph loop, agent loop, run autonomously, implement prd. --- name: autonomous-agent-loop description: "Autonomous AI agent loop with built-in context handoff. Runs Claude Code repeatedly until all PRD items complete. Features: (1) automatic context threshold detection and handoff, (2) complexity-based story decomposition, (3) state persistence via git/files, (4) fresh instance spawning with summary transfer. Use when: starting autonomous development, running ralph-style lo

Full README

name: autonomous-agent-loop description: "Autonomous AI agent loop with built-in context handoff. Runs Claude Code repeatedly until all PRD items complete. Features: (1) automatic context threshold detection and handoff, (2) complexity-based story decomposition, (3) state persistence via git/files, (4) fresh instance spawning with summary transfer. Use when: starting autonomous development, running ralph-style loops, implementing PRDs autonomously, needing context-aware agent handoffs, or executing multi-story feature development. Triggers on: /autonomous-agent-loop, ralph loop, agent loop, run autonomously, implement prd."

Autonomous Agent Loop

An autonomous coding agent system with built-in context handoff - no external dependencies required.

CRITICAL: Auto-Execute the Loop

When this skill is invoked to run/start/execute the loop, you MUST automatically run the loop.sh script using Bash. Do NOT just provide instructions for the user to run manually.

Execution Steps

  1. Verify prd.json exists in the project's scripts/ralph/ directory
  2. Calculate max iterations based on remaining stories (stories × 1.5, minimum 10)
  3. Execute the loop automatically:
# Run in background so user can monitor
./scripts/ralph/loop.sh [max_iterations]

Example Auto-Execution

When user says "run the autonomous loop" or "start implementing the PRD":

# CORRECT - Execute it:
Bash: ./scripts/ralph/loop.sh 25

# WRONG - Don't just tell user:
"To run the loop: ./scripts/ralph/loop.sh 25"  # NO!

Core Concept

Each iteration spawns a fresh Claude instance with clean context. Memory persists via:

  • Git history (commits from previous iterations)
  • progress.txt (learnings and handoff summaries)
  • prd.json (story completion status)
  • handoff.json (context state for seamless continuation)

Workflow

Phase 1: Setup (if prd.json doesn't exist)

  1. Analyze complexity of requirements/PRD document
  2. Generate appropriately-sized user stories
  3. Create prd.json with stories
  4. Initialize progress.txt

Phase 2: Execution (Auto-Start)

Automatically execute the loop - do not wait for user to run manually:

./scripts/ralph/loop.sh [calculated_iterations]

The loop handles:

  1. Reading prd.json for next story
  2. Checking progress.txt for codebase patterns
  3. Implementing the story
  4. Running quality checks
  5. Committing if passing
  6. Updating status and progress
  7. Checking context threshold
  8. Handing off if needed, or continuing

Complexity Analysis

Before generating stories, analyze the PRD/Architecture documents:

Complexity Score = (
  functional_requirements × 2 +
  integration_points × 3 +
  ui_components × 1.5 +
  database_changes × 2 +
  external_apis × 3
) / 5

Story Count Guidelines:

| Complexity Score | Story Count | Max Iterations | |------------------|-------------|----------------| | 1-5 (Simple) | 3-5 stories | 10 | | 6-15 (Medium) | 6-12 stories| 20 | | 16-30 (Complex) | 13-25 stories| 40 | | 31+ (Enterprise) | 26-50 stories| 75 |


Story Sizing

Each story must be completable in ONE context window (~50k tokens of work).

Right-sized stories:

  • Add a database column and migration
  • Create a single UI component
  • Implement one API endpoint
  • Add a filter/sort feature

Too large (split these):

  • "Build the dashboard" → Split into data layer, components, layout, interactions
  • "Add authentication" → Split into schema, middleware, UI, session handling

Context Handoff Protocol

Automatic Detection

The agent monitors its context usage. When approaching threshold (~80% capacity):

  1. Pause current work at a safe checkpoint
  2. Generate handoff summary capturing current state
  3. Write to handoff.json
  4. Signal handoff with <handoff>CONTEXT_THRESHOLD</handoff>

Handoff Summary Format

{
  "timestamp": "2024-01-15T10:30:00Z",
  "reason": "context_threshold",
  "current_story": {
    "id": "US-003",
    "title": "Add priority selector",
    "progress_percent": 65,
    "status": "implementing"
  },
  "work_in_progress": {
    "files_modified": ["src/components/TaskEdit.tsx"],
    "uncommitted_changes": "Added priority dropdown UI",
    "next_steps": ["Wire up server action", "Test in browser"]
  },
  "handoff_instruction": "Continue US-003 - dropdown rendered, need save logic"
}

File Structure

project/
├── scripts/ralph/
│   ├── loop.sh           # Main agent loop script
│   ├── CLAUDE.md         # Agent instructions (auto-loaded)
│   └── analyze.py        # Complexity analyzer
├── prd.json              # Story definitions and status
├── progress.txt          # Learnings and progress log
├── handoff.json          # Context handoff state (when needed)
└── archive/              # Previous run archives

PRD JSON Format

{
  "project": "ProjectName",
  "branchName": "ralph/feature-name",
  "description": "Feature description",
  "complexity": {
    "score": 12,
    "category": "medium",
    "estimated_iterations": 15
  },
  "userStories": [
    {
      "id": "US-001",
      "title": "Story title",
      "description": "As a [user], I want [feature] so that [benefit]",
      "acceptanceCriteria": [
        "Specific verifiable criterion",
        "Typecheck passes"
      ],
      "priority": 1,
      "passes": false,
      "notes": ""
    }
  ]
}

Completion Signals

  • <promise>COMPLETE</promise> - All stories done, loop exits
  • <handoff>CONTEXT_THRESHOLD</handoff> - Context filling, spawn fresh instance

References

  • See references/complexity-analysis.md for detailed scoring
  • See references/handoff-protocol.md for handoff implementation details

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

MissingGITHUB REPOS

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/snapshot"
curl -s "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/contract"
curl -s "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
GITHUB_REPOSactivepieces

Rank

70

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

Traction

No public download signal

Freshness

Updated 2d ago

OPENCLAW
GITHUB_REPOScherry-studio

Rank

70

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

Traction

No public download signal

Freshness

Updated 5d ago

MCPOPENCLAW
GITHUB_REPOSAionUi

Rank

70

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

Traction

No public download signal

Freshness

Updated 6d ago

MCPOPENCLAW
GITHUB_REPOSCopilotKit

Rank

70

The Frontend for Agents & Generative UI. React + Angular

Traction

No public download signal

Freshness

Updated 23d ago

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/snapshot",
    "contractUrl": "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/contract",
    "trustUrl": "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/trust"
  },
  "curlExamples": [
    "curl -s \"https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/snapshot\"",
    "curl -s \"https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/contract\"",
    "curl -s \"https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_REPOS",
      "generatedAt": "2026-04-16T23:32:19.120Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "monitor",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:monitor|supported|profile"
}

Facts JSON

[
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Bowen31337",
    "href": "https://github.com/bowen31337/claude-agent-loop",
    "sourceUrl": "https://github.com/bowen31337/claude-agent-loop",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-02-25T04:20:19.528Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-02-25T04:20:19.528Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/trust",
    "sourceUrl": "https://xpersona.co/api/v1/agents/bowen31337-claude-agent-loop/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub · GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to claude-agent-loop and adjacent AI workflows.