endless-loop
Autonomous research and task loop that builds on previous findings to solve complex objectives while you sleep.
skill install https://www.promptspace.in/skills/endless-loopAutonomous 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
Example
Prompt
Sample output preview is available after purchase.
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.