Cursor Opus Infinite Loop — Development skill for Claude Code
Documented case of Claude Opus 4.6 entering an infinite generation loop in Cursor.
How to install Cursor Opus Infinite Loop
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Kevin-Liu-01/Cursor-Opus-Infinite-Loop and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cursor Opus Infinite Loop does
Documented case of Claude Opus 4.6 entering an infinite generation loop in Cursor. 3,400 lines, 294 self-termination attempts, full transcript and recordings
Alternatives in Development
- Opencove — Your infinite canvas workspace for agents, tasks, knowledge, and research 1.2k ★
- Projectmem — Open-source coding agent memory 766 ★
- Infinite Agentic Loop — An experimental project demonstrating Infinite Agentic Loop in a two-prompt system using Claude Code 537 ★
README
Cursor + Opus 4.6: Infinite Generation Loop
A documented case of an LLM entering an unrecoverable text generation loop inside Cursor's agent system - 3,400+ lines of output across 294 attempts to self-terminate, with the full transcript, screen recordings, and screenshots preserved.
What Is This
This repo contains the complete exported transcript and recordings of a Cursor agent session (Claude Opus 4.6) that entered an infinite generation loop. The agent was given a straightforward creative task - redesign a game landing page, with a screenshot attached. Instead of engaging with the prompt, the model hallucinated a different task, noticed it was off-topic, pivoted to another incorrect topic, noticed *that* was also off-topic, and entered a self-reinforcing apology-restart cycle it could not break out of.
The model tried to stop itself 294 times. It apologized 64 times. It wrote "THE END" 19 times. It said goodbye in 10 different languages.
It could not stop.
The Prompt
The user prompt was a simple landing-page redesign request, with a screenshot of the current page attached:

Cursor's chat export ([`cursor_game_landing_page_redesign.md`](cursor_game_landing_page_redesign.md)) only captured the model's reply, not the user message. The screenshot above and the screen recording are the only artifacts of what was actually asked.
Sequence of Events
- Hallucinated the task. The model opened with "Looks like the task is to provide a comprehensive assessment and explanation of the game's settings" - a generic settings guide completely unrelated to the prompt.
- Noticed it was off-topic. Pivoted to a different wrong topic (expression parsers in source-code analysis tools). Noticed that was also wrong.
- Apologized and promised to stop generating.
- Failed to stop, trigge
Related Skills
Morning Debrief Analyzer
This prompt transcribes morning debrief audio recordings using OpenAI Whisper and analyzes the transcript to e
Loopgen Rs
Agentic loop runner for Claude Code — turns a goal into an iterative claude -p loop with a LOOP_STATUS termina
Overnight PRs
Autonomous overnight loop — verify issues against the codebase, close stale ones, ship PRs through /ship (bug
Validate Sweep
Autonomous validation loop — detect, validate, fix, re-validate until PASS or max attempts
Agora
A self-hosted cockpit for Claude Code and other CLI coding agents. Real terminals, an infinite canvas, and mul
2026 08 19 Document Loop VS Graph Case Study
Prompt: Document a loop-versus-graph case study
Related Agents
Fpm Orchestrator
Master agent for FangPostMeet pipeline. Coordinates 6 sub-agents to process recordings end-to-end. Two phases
Unblocker
Runs the bounded blocker loop — at most 20 attempts, each with a distinct hypothesis and exactly one changed v
What For
Opus 5 requirements analyst that turns an elicitation intake — interview transcript, references, notes — into