Skip to content
Agentmart
Submit a tool

godmode-loop-warden

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…

Skill by AIimagined

IndexedApache-2.0★ 6
Write a review

Chalk Labs

Need help deploying godmode-loop-warden?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/aiimagined-godmode-loop-warden

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: documents, testing, security, finance

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/godmode-loop-warden

What's inside

Skill name
godmode-loop-warden
Description
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.
License
Apache-2.0
Instructions
50 lines in SKILL.md · view on GitHub

Files (4)

  • PURPOSE.md
  • SKILL.md
  • openai.yaml · agents/
  • godmode-evals.json

SKILL.md (first lines)

# 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](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.

From AIimagined/Godmode, Apache-2.0.

More from AIimagined/Godmode

Signals

Stars
6
Forks
0
Open issues
0
Last commit (this folder)
Sep 29, 2026 (1 month ago)
Last release
Oct 5, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from AIimagined

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get godmode-loop-warden running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying godmode-loop-warden?

CallGet help
Cite this page

godmode-loop-warden skill. Agent Mart. https://agentmart.dev/skills/aiimagined-godmode-loop-warden (last updated 2026-10-24)