# Swe loop

> Swe loop is an open-source agent skill. Use when the user has a coding prompt — a feature, bug fix, or refactor — and wants it implemented end to end by a self-checking software lo. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/gaasher/Agent-Loop-Skills/tree/main/loops/swe-loop
- **Repository:** https://github.com/gaasher/agent-loop-skills
- **GitHub stars:** 183
- **License:** MIT
- **Skill name:** swe-loop
- **Collection:** https://github.com/gaasher/Agent-Loop-Skills
- **Listing updated:** 2026-11-17

## About

Use when the user has a coding prompt — a feature, bug fix, or refactor — and wants it implemented end to end by a self-checking software loop, not a single pass. It refines the prompt into an executable plan (running the plan-loop internally), then executes the plan task by task: an Engineer subagent implements each PR-sized task editing only source, a separate QA subagent authors the tests that prove the task's acceptance criteria (or grades quality only when tests already cover them), runs the task's tests plus the full accumulated regression suite, and grades the code against a strict conciseness/readability/style-match rubric; the Engineer and QA loop on each task until the tests pass and the quality gate holds, then it commits and opens a pull request for the task — stacked PRs (one per task, each based on the prior) by default, or one combined PR — and moves to the next task. Author and critic have disjoint write scopes (Engineer owns source, QA owns tests) so neither can game the gate. Not for produci

## When your agent uses it

> Use when the user has a coding prompt — a feature, bug fix, or refactor — and wants it implemented end to end by a self-checking software loop, not a single pass. It refines the prompt into an executable plan (running the plan-loop internally), then executes the plan task by task: an Engineer subagent implements each PR-sized task editing only source, a separate QA subagent authors the tests that prove the task's acceptance criteria (or grades quality only when tests already cover them), runs the task's tests plus the full accumulated regression suite, and grades the code against a strict conciseness/readability/style-match rubric; the Engineer and QA loop on each task until the tests pass and the quality gate holds, then it commits and opens a pull request for the task — stacked PRs (one per task, each based on the prior) by default, or one combined PR — and moves to the next task. Author and critic have disjoint write scopes (Engineer owns source, QA owns tests) so neither can game the gate. Not for produci

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/gaasher/Agent-Loop-Skills/tree/HEAD/loops/swe-loop)
- [No network calls found in its scripts](https://github.com/gaasher/Agent-Loop-Skills/tree/HEAD/loops/swe-loop)
- [License: MIT](https://github.com/gaasher/Agent-Loop-Skills/tree/HEAD/loops/swe-loop)

## Install

### Claude Code

This skill ships in the `agent-loops` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add gaasher/Agent-Loop-Skills
/plugin install agent-loops@agent-loop-skills
```

Or copy only this skill to `~/.claude/skills/swe-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/swe-loop &&
cp -R "$tmp/loops/swe-loop" ~/.claude/skills/swe-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/swe-loop` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/swe-loop` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/swe-loop &&
cp -R "$tmp/loops/swe-loop" ~/.agents/skills/swe-loop &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/swe-loop` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/swe-loop` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/swe-loop &&
cp -R "$tmp/loops/swe-loop" ~/.cursor/skills/swe-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/swe-loop` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/gaasher/Agent-Loop-Skills.git --path loops/swe-loop
```

Or copy the folder to `~/.gemini/skills/swe-loop` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/swe-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/swe-loop &&
cp -R "$tmp/loops/swe-loop" ~/.copilot/skills/swe-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/swe-loop` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/gaasher/Agent-Loop-Skills.git
```

Then copy `Agent-Loop-Skills/loops/swe-loop` into your agent's skills folder as `swe-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Swe loop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/swe-loop to use it in all your projects, or to .claude/skills/swe-loop in one project. Or install the agent-loops plugin, which includes it: /plugin marketplace add gaasher/Agent-Loop-Skills, then /plugin install agent-loops@agent-loop-skills.

### Does Swe loop run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Swe loop?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

---
Source: https://ai-powered.com/skills/swe-loop
