agentleFS
AIimaginedAIimagined/Godmode/skills/godmode-loop-warden/SKILL.md

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.

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
  1. Distinctive:

    Every retry cycle runs under a declared cap with named stop conditions, each iteration leaves a tick with its evidence, a stalled cycle is …

    line 10
  2. Distinctive:

    Read PURPOSE.md for the archive records this skill exists to close.

    line 38
  3. Distinctive:

    Never raise the iteration cap mid-loop.

    line 42
  4. Distinctive:

    Never close a loop as finished without the passing check's evidence.

    line 43
  5. Very specific:

    Never blame the model before loop --blame names a non-model control that supports it.

    line 44
  6. Distinctive:

    Never tick an iteration as progress when the diff touched the same hunk with no new assertion.

    line 45
  7. Distinctive:

    Never run the retried check on the live archive of another session.

    line 46
  8. Distinctive:

    Every loop on the record has a declaration, at least one tick, and a close.

    line 50
  9. Distinctive:

    No loop closed as finished cites nothing.

    line 51
  10. Distinctive:

    If an assertion cannot be proved, report the unmet assertion and the next safe action rather than the outcome it was meant to prove.

    line 53

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. 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.
  3. Tick every iteration with its evidence. godmode loop tick <name> --evidence seq:<the attestation of this iteration's check>; an iteration that changed nothing is godmode loop tick <name> --empty - the empty ticks are what escalate.
  4. 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.
  5. 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.
  6. Close with the outcome the evidence supports. godmode loop close <name> --outcome finished --evidence seq:<the passing check>, or godmode 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 --blame names 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.