
Qwenchance
- 1.4k installs
- 3.1k repo stars
- Updated June 14, 2026
- thananon/9arm-skills
qwenchance is an agent skill that keeps long Claude Code tasks on track by breaking circular loops, bounding internal reasoning, monitoring context budget, and triggering clean handoffs before the window fills.
About
qwenchance is an agent skill from thananon/9arm-skills for Claude Code sessions that risk looping, over-thinking, or exhausting context on multi-step work. It addresses three failure modes: repeating steps, re-reading the same files, and second-guessing in circles; unbounded internal reasoning; and running out of context mid-task without a handoff. Agents run its checklist when users report the model is stuck, spinning, or repeating itself, or when a long implementation needs a structured handoff before the context window fills. qwenchance complements execution skills by governing session pacing and continuity rather than writing feature code directly.
- qwenchance
- AI & Agent Building
- AI-coding skill
Qwenchance by the numbers
- 1,432 all-time installs (skills.sh)
- +166 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #822 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/thananon/9arm-skills --skill qwenchanceAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.4k |
|---|---|
| repo stars | ★ 3.1k |
| Last updated | June 14, 2026 |
| Repository | thananon/9arm-skills ↗ |
How do you stop an agent from looping on long tasks?
Helps with ai & agent building tasks.
Who is it for?
Developers running long Claude Code multi-step implementations who notice repetition, circular debugging, or approaching context limits.
Skip if: Short single-file edits or sessions already progressing cleanly without loop or context-pressure symptoms.
When should I use this skill?
The model repeats steps, re-reads the same files, user says it is looping or stuck, or a long task needs a handoff before context runs out.
What you get
Bounded reasoning steps, loop-breaking actions, context budget awareness, and a clean handoff summary before context exhaustion.
- Loop-breaking checklist actions
- Bounded reasoning plan
- Handoff summary before context exhaustion
By the numbers
- Addresses 3 documented long-task failure modes: looping, over-thinking, and context exhaustion
- Designed for thananon/9arm-skills Claude Code agent skill collection
- Activates on explicit stuck, looping, repeating, or pre-handoff user triggers
Files
Staying on Track
Long, multi-step work fails three ways: looping, over-thinking, and running out of context. Run the checklist below before each step. When a trigger fires, do the matching action — don't deliberate about it.
Before each step — run this
| Check | Trigger fires when... | Do this |
|---|---|---|
| Looping? | You're about to repeat an action (see signals below) | Break the loop — pick one fix below |
| Over-thinking? | You've reasoned past ~1000 words without acting | Stop. Act on your current best decision, or ask the user one question |
| Context tight? | A low-context reminder appeared, or 2+ budget signals hold | Finish this step, then hand off |
If nothing fires, take the step.
1. Loops — detect and break
A step is a loop if any of these is true:
- You're re-reading a file you already read this session (and it has not changed since).
- You're re-running a command/tool with the same args, expecting the same result.
- You're returning to a hypothesis you already tried and dropped.
- You're "reconsidering from the start" with no new evidence.
- The last 2 steps gained no new information.
Re-reading a file you just edited is NOT a loop — that's verifying.
When a loop fires, stop and do exactly one:
1. State the blocker in one sentence and ask the user a specific question. 2. Write what you know vs. don't know, then take a different action than last time. 3. Looped 2+ times on the same sub-problem? Declare it unsolved-for-now; move on or hand off.
Never repeat a failed action hoping for a different result.
Retry cap: never run the same failing command a 3rd time. Can't get something working (a command, a test runner, an import) after ~3 attempts — even varied ones — STOP and ask the user; don't grind through more variations.
Don't edit blind — it's the top loop source. Read enough to know the change is correct before editing. After each edit, verify it (read the diff / run it / run the test) before the next step. One edit → one check.
2. Thinking — keep it bounded
Cap reasoning at ~1000 words per step. Past that, you're deliberating instead of acting.
- Decide → act → observe. Don't re-derive a decision you already made.
- Can't decide in ~1000 words? The task is underspecified — ask the user one sharp question.
- Don't restate the whole problem to yourself. Reference what you concluded; don't rebuild it.
3. Context budget — count signals, don't estimate
Authoritative: A <system-reminder> about low context / approaching auto-compaction. → Hand off now (section 4). Don't start new work.
Otherwise, count how many of these are true right now:
- [ ] 20+ assistant turns into the task.
- [ ] Read 5+ files, or any one huge file/log/dump.
- [ ] Long tool outputs you keep scrolling back to.
- [ ] 3+ plan steps still left.
Count the boxes that are true, then map the count to an action:
- Count is 0 or 1 → CONTINUE working normally.
- Count is 2, 3, or 4 → HAND OFF — finish the current step, then go to section 4.
Count first, then decide — don't judge by feel. A higher count means more context pressure, not less. Being on the last step or "almost done" does not lower the count or cancel a HAND OFF.
Before any expensive step (large read, new subtask, long generation), ask: "Room to finish this AND hand off after?" If the count says HAND OFF, finish the current atomic unit, then hand off — don't start the next.
4. Hand off cleanly
When context is tight or the user asks:
1. Land durable artifacts first — save the file, commit, write the result. Nothing lost. 2. Invoke the `handoff` skill to compact the conversation. Don't hand-write the handoff. 3. Tell the user plainly: "Context is getting tight — handing off now; start a fresh session (/clear)."
Related skills
How it compares
Pick qwenchance over coding skills when the blocker is agent looping or context limits rather than missing framework or API knowledge.
FAQ
When should developers invoke qwenchance?
qwenchance fits when Claude Code repeats steps, re-reads identical files, second-guesses in circles, or nears context limits on long multi-step tasks. Users also invoke it after saying the agent is looping, stuck, or needs a handoff.
What problems does qwenchance address?
qwenchance addresses looping and circular thinking, unbounded over-thinking, and context-window exhaustion during long agent sessions. It applies a checklist to restore forward progress and prepare a clean handoff before the window fills.
Does qwenchance write application code?
qwenchance does not implement product features directly. qwenchance is meta agent-tooling that governs Claude Code session pacing, loop breaking, and handoff timing so other skills can finish multi-step development work.