# Loop-Everything

> Turn vague agent requests into evidence-driven loops with JSON contracts, testable criteria, and hard budgets.

Loop-Everything is a free AI agent skill on Agensi by gino, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [gino](https://www.agensi.io/creators/gino)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/loop-everything
- Tags: ai-agents, testing, llm-ops, automation, code-review

## About this skill

Stop agents from declaring victory without proof. This skill enforces a rigorous, evidence-driven workflow that prevents runaway costs and unverified "fixes." It transforms vague coding requests into a formal contract with testable acceptance criteria, explicit budgets, and mandatory human gates.

### What it does
- **Enforces contracts** by requiring a `.loop/contract.json` with goals, criteria, and budgets before any code is written.
- **Verifies progress** using shell commands and exit codes to prove success instead of relying on model prose.
- **Manages budgets** to stop execution when time, iteration, or failure limits are reached.
- **Controls scope** by strictly defining included and forbidden file paths to prevent accidental leaks or unwanted refactors.
- **Implements gates** requiring explicit human approval before high-risk actions like deployments, migrations, or spending.

### How it works
1. **Interview phase** where the agent asks targeted questions to define goals, testable criteria, and stop conditions.
2. **Drafting phase** to generate the JSON contract following the provided schema.
3. **Authorization phase** requiring a user confirmation of the contract summary before execution starts.
4. **Execution phase** where the agent performs one bounded iteration at a time, running verification commands and recording evidence.

### Frameworks & tools
The skill is framework-agnostic and works with any CLI-based testing tool like `pytest`, `vitest`, or `jest`. It includes optional support for the `loopctl` CLI for managed orchestration.

### Why this beats prompting it yourself
Generic prompts often lead to agents hallucinating success or looping endlessly on a single bug. This skill provides a structured state machine and JSON-backed evidence trail that forces the agent to prove its work through exit codes and recorded logs.

### Use cases
- **Bug fixing** where success is defined by a specific failing test passing.
- **Code migration** requiring a full build and lint check to pass at every step.
- **Refactoring** with strict "no-new-dependency" rules and regression test suites.
- **Resource-heavy tasks** that need hard caps on iterations or API cost.

### Known limitations
Requires a environment capable of executing shell commands for automated verification. Budgets are hard stops and cannot be overridden without creating a new contract.

- If this helps you in your day-to-day life, I'd love it if you'd give me a star :D

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Loop-Everything skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does 'loop everything' prevent my AI agent from wasting credits on infinite loops?

This skill forces agents to operate under a JSON-based contract, requiring verifiable evidence (like shell exit codes) for every action. It prevents "hallucinated success" and runaway costs by setting hard limits on iterations and requiring human approval gates for high-risk changes.

### Which AI agents and developer tools are compatible with this skill?

The skill is framework-agnostic and integrates with any AI agent or platform that supports shell execution and file system access. It works seamlessly with common testing tools like pytest, vitest, and jest to verify progress.

### Can I restrict the agent to only access specific directories or files?

Yes, you can strictly define included and forbidden file paths within the contract phase. This ensures the agent stays within the designated scope and doesn't accidentally refactor unrelated parts of your codebase.

### What exactly is included in the purchase of this skill?

You will receive the 'loop everything' skill configuration, the JSON schema for the contract system, and documentation for integrating the optional `loopctl` CLI for managed orchestration.

### What happens if the agent hits a budget limit before a task is completed?

When a budget or iteration limit is reached, the skill enforces a hard stop on the agent's execution. To continue, a new contract must be drafted and authorized, ensuring you have full control over additional resource expenditure.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
