godmode-loop-warden
Skill6 starsChanged 3 months agoApache-2.0View on GitHub
Bound an iterative fix-and-retry cycle before it starts and stop it when it stops making progress: audit the loop contract, declare the iteration cap and stop conditions, tick every iteration with its evidence, read the host transcript for repeating error signatures and overlapping hunks, check whether blaming the model is supported, and close the loop as finished or cut off. Use when the same failing test is being retried, edits keep landing on the same lines, or an agent has looped past its budget without noticing. Not for root-causing the failure itself, and not for open asks that repeat across sessions.
In this repository22 other files it gives its agents.
- llms.txtllms.txt
- godmode-budgetSkill
- godmode-changelogSkill
- godmode-ciSkill
- godmode-codegraphSkill
- godmode-code-of-lawSkill
- godmode-continuitySkill
- godmode-evidenceSkill
- godmode-governanceSkill
- godmode-host-syncSkill
- godmode-impact-gateSkill
- godmode-investigationSkill
- godmode-memory-gardenerSkill
- godmode-repairSkill
- godmode-replicateSkill
- godmode-researchSkill
- godmode-second-lookSkill
- godmode-skill-evalSkill
- godmode-skill-forgeSkill
- godmodeSkill
- godmode-spec-lifecycleSkill
- godmode-triageSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Every retry cycle runs under a declared cap with named stop conditions, each iteration leaves a tick with its evidence, a stalled cycle is …
- Distinctive: line 38
Read PURPOSE.md for the archive records this skill exists to close.
- Distinctive: line 42
Never raise the iteration cap mid-loop.
- Distinctive: line 43
Never close a loop as finished without the passing check's evidence.
- Very specific: line 44
Never blame the model before loop --blame names a non-model control that supports it.
- Distinctive: line 45
Never tick an iteration as progress when the diff touched the same hunk with no new assertion.
- Distinctive: line 46
Never run the retried check on the live archive of another session.
- Distinctive: line 50
Every loop on the record has a declaration, at least one tick, and a close.
- Distinctive: line 51
No loop closed as finished cites nothing.
- Distinctive: line 53
If an assertion cannot be proved, report the unmet assertion and the next safe action rather than the outcome it was meant to prove.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Godmode Loop Warden
Outcome
Every retry cycle runs under a declared cap with named stop conditions, each iteration leaves a tick with its evidence, a stalled cycle is stopped at the cap rather than at exhaustion, and the close says finished or cut off with the evidence that decides which.
Use
- The same failing test or build error is being retried with small edits.
- Edits keep landing on the same lines or hunks with nothing new asserted.
- An agent has run more iterations than the task warranted and cannot see it.
- A loop is about to start and its stop contract has not been written down.
Do Not Use
- Root-causing the failure the loop is retrying - that is
godmode-investigation. - Open operator asks that repeat across sessions - that is
godmode-triage. - Re-pitching an answer the operator did not follow - that is
godmode-repair.
Deterministic Execution Flow
- Audit readiness before cycle one.
godmode loop --preflight- the loop file's stop contract, budget, verdict path and escalation thresholds; a missing piece is named before any iteration runs. - Declare the cap and the stop conditions.
godmode loop declare <name> --max-iterations 5 --stop-when "the failing test passes"- the cap is fixed at declaration; a loop with no cap is refused. - Tick every iteration with its evidence.
godmode loop tick <name> --evidence seq:<the attestation of this iteration's check>; an iteration that changed nothing isgodmode loop tick <name> --empty- the empty ticks are what escalate. - Read the transcript for repetition the agent cannot see.
godmode loop --transcript <host transcript path> --episodes- repeating error signatures, overlapping hunks, no new files, no new assertion, with the backtrack context for each episode. - Check the blame before changing the model.
godmode loop --blame --session <session id>- whether blaming the model is supported by a non-model control; a loop with no such control is a contract gap, not a model fault. - Close with the outcome the evidence supports.
godmode loop close <name> --outcome finished --evidence seq:<the passing check>, orgodmode loop close <name> --outcome cut-off --evidence seq:<the last tick>when the cap was reached.- Fallback: a close that names no evidence is refused; cite the tick or the attestation, never a description of it.
Read PURPOSE.md for the archive records this skill exists to close.
Must Not
- Never raise the iteration cap mid-loop; instead close it cut off and declare a new loop with its reason.
- Never close a loop as finished without the passing check's evidence; instead close it cut off.
- Never blame the model before
loop --blamenames a non-model control that supports it; instead record the contract gap the check found. - Never tick an iteration as progress when the diff touched the same hunk with no new assertion; instead tick it empty.
- Never run the retried check on the live archive of another session; instead name the session on every verb.
Acceptance
- Every loop on the record has a declaration, at least one tick, and a close.
- No loop closed as finished cites nothing.
If an assertion cannot be proved, report the unmet assertion and the next safe action rather than the outcome it was meant to prove.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

