intern-mode

Stops agent loops after 12 turns without progress and files a stuck report.

2|Updated May 13, 2026
One-click install
npx skills add https://github.com/curtisgalloway/public-skills --skill intern-mode-curtisgalloway
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: intern-mode
Source: https://github.com/curtisgalloway/public-skills/tree/main/plugins/agent-workflow/skills/intern-mode
Command: npx skills add https://github.com/curtisgalloway/public-skills --skill intern-mode-curtisgalloway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Autonomous coding agents can loop indefinitely, retrying the same failing approach or silently thrashing without surfacing the problem. This Skill imposes a hard check-in requirement so the agent stops, reports what is blocking it, and waits for direction instead of burning turns. ## Core Features & Use Cases - Turn counting with progress detection: Tracks turns since the last meaningful progress event, with clear definitions of what does and does not count as progress. - Structured stuck report: At 12 turns without progress, the agent halts and files a concise report covering the goal, approaches tried, the recurring failure, and options to unblock. - Persistent posture with explicit release: The mode stays active until the user explicitly turns it off, and the counter only resets on real progress or new direction. - Use Case: You ask an agent to debug a flaky build and say "intern mode — stop if you get stuck." After repeated failed attempts, the agent stops, files a stuck report listing what it tried and what it needs, and waits for your direction. ## Quick Start Tell the agent to work in intern mode and stop with a stuck report if it makes no progress for 12 turns.

Frequently Asked Questions about intern-mode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop an AI agent from looping on a failing task?▼

Enable intern mode, which counts turns since the last meaningful progress event. After 12 turns without progress the agent stops immediately, files a stuck report describing what it tried and what it needs, and waits for your direction.

What counts as progress in intern mode?▼

Progress means the situation meaningfully advanced: a file was created or modified, a command produced information that changes the approach, a previously failing test passed, or a blocker was resolved. Reading files or retrying the same failing command does not count.

Does intern mode turn itself off when things go well?▼

No. Intern mode stays active until the user explicitly releases it, such as saying "you can turn off intern mode." The agent never self-exits the posture, even if work is progressing smoothly.

When should I not use a loop-safety check-in limit?▼

Avoid it for short, well-understood tasks where a 12-turn ceiling adds overhead without risk of runaway loops. It is designed for open-ended debugging, research, or multi-step work where silent thrashing is a real possibility.

What happens after the agent files a stuck report?▼

The agent waits and does nothing further until you provide actual direction: a new approach, a relaxed constraint, a file to inspect, or an explicit "keep going." A simple acknowledgment of the report does not reset the counter.