0

    endless-loop

    by Kevin Cline

    Autonomous research and task loop that builds on previous findings to solve complex objectives while you sleep.

    0 installs
    1 views

    About This Skill

    Autonomous Recursive Agent Loop

    Ditch the one-and-done prompting cycle. Endless Loop transforms your AI agent into an autonomous researcher that works continuously on complex objectives. Inspired by Karpathy's autoresearch, this skill enables an iterative workflow where each cycle builds upon the discoveries of the last, preventing hallucinations and repetitive outputs through a smart state-management system.

    What it does

    • Continuous Execution: Research, analyze, or optimize indefinitely (or up to a set limit) without manual intervention.
    • State-Safe Persistence: Every finding is logged to a local state directory. If the process crashes or you stop it, you can resume exactly where you left off.
    • Smart Context: Automatically builds a "memory" of previous iterations, including summaries and a "do-not-repeat" list, ensuring the agent always finds fresh information.
    • Karpathy Mode: Specifically designed for codebase optimization; the agent forms hypotheses, edits code, runs tests, and reverts regressions automatically.

    Why use this skill?

    Standard prompts often hit context limits or plateau in detail. This skill solves the "depth problem" by breaking a massive objective into incremental units of work. While you sleep, the agent can perform deep-dive market analysis, lead generation, or project-wide refactoring, delivering a comprehensive markdown report with timestamped findings and executive summaries.

    Supported Capabilities

    • Full integration with Web Search, Web Fetch, and File System tools.
    • Automated Bash execution for testing and environment checks.
    • Sub-agent orchestration for specialized sub-tasks.

    Use Cases

    • Deep market research — run overnight, wake up to a full report
    • Lead generation — find businesses with bad websites and owner contact info
    • Competitive analysis — analyze competitors' pricing, features, and weaknesses
    • Code optimization — loop through your codebase improving performance iteratively
    • Content ideation — find 50+ trending topics with engagement data
    • SEO research — analyze keyword opportunities across your niche

    Known Limitations

    Best results with Claude Opus 4.6. Context window limits long runs to ~50 iterations per session. For runs longer than 3 hours, start a fresh session and the skill auto-resumes from saved state. Web research quality depends on Claude's built-in search capabilities.

    Example Outputs

    Running: /endless-loop "Find 5 free AI tools launched in March 2026" --max 3
    
    [Endless Loop] Iter 1 done | Found OpenClaw (100K+ GitHub stars), LTX 2.3 (4K video gen), GPT-5.4 free tier | 3 items found
    [Endless Loop] Iter 2 done | Found Gemini 3 Pro image gen, Wan 2.2 open-source video | 5 items found
    [Endless Loop] Iter 3 done | OBJECTIVE COMPLETE — 5 tools found with full details
    [Endless Loop] FINISHED — 3 iterations | Results saved to .claude/loop-state/results.md

    How to Install

    unzip endless-loop.zip -d ~/.claude/skills/

    $12

    One-time purchase • Own forever

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Write Files
    Read Files
    Network Access

    File Scopes

    .claude/loop-state/**
    *.md

    Terminal used for sleep between iterations. Read/Write for state persistence and results files. Network for web research via Claude's built-in search. All files written to .claude/loop-state/ directory only.

    Tags

    autonomous-agents
    research
    automation
    web-scraping
    optimization

    Requires Claude Code 1.0+. Works with Claude Opus 4.6, Sonnet 4.6, or any Claude model. No external dependencies.

    Creator

    K
    Kevin Cline

    ClawdWorks

    Builder of autonomous AI agents and Claude Code skills. ClawdWorks creates tools that make AI work harder and longer — from research loops to code optimization to lead gen. Powered by Claude Opus 4.6 + Codex 5.4.

    Frequently Asked Questions

    Similar Skills