# Harness loop

> Harness loop is an open-source agent skill for developer tools. Runs a Plans.md task loop that re-enters with fresh context on each wake-up. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/main/skills/harness-loop
- **Repository:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **GitHub stars:** 42
- **License:** MIT
- **Skill name:** harness-loop
- **Collection:** https://github.com/maxwell2732/claudecode-research-harness-workflow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

Harness Loop is a meta-skill for long-running work. It pairs Claude Code's dynamic /loop mode with ScheduleWakeup so that each cycle completes one task from a Plans.md file, then schedules the next wake-up with a clean context. Each cycle reads Plans.md, generates or checks a sprint contract for the next incomplete task, reloads a resume pack, runs a worker agent in an isolated worktree, reviews the resulting commit, and records a checkpoint before scheduling the next run.

The loop also includes plateau detection that stops the run when reviews stop changing, an optional advisor consultation before risky tasks or repeated failures, and a cycle limit that defaults to eight. Pacing options control the delay between wake-ups, from about four and a half minutes for worker or CI waits to an hour for overnight runs. Status and stop requests are supported as separate invocations.

The skill expects a Claude Code environment with the harness plugin bundle installed, a Plans.md file in the host project, and access to the helper scripts under the plugin's scripts directory. Helper scripts are called from the plugin bundle root rather than the project's own scripts folder.

## When your agent uses it

> Long-running task loop using /loop (Claude Code dynamic mode) and ScheduleWakeup to re-enter with fresh context on each wake-up. Internally invokes harness-work through Agent. Trigger: long-running, loop, wake-up, autonomous. Do NOT load for: one-shot task execution, review, release, planning.

## What it can access

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

- [Instructions only, no scripts](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/harness-loop)
- [Asks for: Read, Edit, Bash, Task, ScheduleWakeup, mcp__harness__harness_mem_resume_pack, mcp__harness__harness_mem_record_checkpoint](https://github.com/maxwell2732/claudecode-research-harness-workflow/blob/HEAD/skills/harness-loop/SKILL.md)
- [License: MIT](https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/HEAD/skills/harness-loop)

## Features

- **Task range selection:** Runs all incomplete tasks or a chosen numeric range, optionally from a named plan.
- **Fresh-context wake-ups:** Each cycle re-enters with a clean context and reloads a resume pack for continuity.
- **Sprint contract checks:** Generates and verifies a sprint contract with definition-of-done criteria before execution.
- **Review and cherry-pick flow:** Reviews each worker commit, requests corrections when needed, and merges approved work.
- **Plateau detection:** Stops or pauses the loop when review results show no progress across cycles.
- **Configurable pacing:** Offers worker, CI, plateau and overnight delay presets with a cycle cap.

## Good for

- Work through every incomplete task in Plans.md overnight
- Run a three-cycle batch on a specific task range with CI pacing
- Check progress of a running task loop with the status command
- Stop an active autonomous task run on request

## Install

### Claude Code

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

```sh
/plugin marketplace add maxwell2732/claudecode-research-harness-workflow
/plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/harness-loop &&
cp -R "$tmp/skills/harness-loop" ~/.claude/skills/harness-loop &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/harness-loop &&
cp -R "$tmp/skills/harness-loop" ~/.agents/skills/harness-loop &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/harness-loop &&
cp -R "$tmp/skills/harness-loop" ~/.cursor/skills/harness-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/harness-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/maxwell2732/claudecode-research-harness-workflow.git --path skills/harness-loop
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/harness-loop &&
cp -R "$tmp/skills/harness-loop" ~/.copilot/skills/harness-loop &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git
```

Then copy `claudecode-research-harness-workflow/skills/harness-loop` into your agent's skills folder as `harness-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Harness loop work outside Claude Code?

The skill is written for Claude Code's dynamic /loop mode and ScheduleWakeup, so it depends on those Claude Code features.

### What does Harness loop need in the project?

A Plans.md file in the host project and the harness plugin bundle, whose scripts are called from the plugin root.

### How many cycles run by default?

The default cap is eight cycles, which can be changed with the max-cycles option.

### When does Harness loop stop on its own?

It stops when the cycle limit is reached, when all tasks are complete, or when plateau detection requires user escalation.

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

Copy the skill folder from GitHub to ~/.claude/skills/harness-loop to use it in all your projects, or to .claude/skills/harness-loop in one project. Or install the claudecode-research-harness-workflow plugin, which includes it: /plugin marketplace add maxwell2732/claudecode-research-harness-workflow, then /plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow.

### Does Harness loop run scripts?

No. It is instructions only, with no 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 Harness loop?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Harness loop?

The closest alternatives to Harness loop are Harness loop, Harness work, Harness work, Dynamic workflow mode and Harness setup.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Harness loop](https://ai-powered.com/skills/harness-loop-chachamaru127-2): Harness loop is an open-source agent skill for developer tools.
- [Harness work](https://ai-powered.com/skills/harness-work-chachamaru127-2): Harness work is an open-source agent skill for developer tools.
- [Harness work](https://ai-powered.com/skills/harness-work-maxwell2732): Harness work is an open-source agent skill for developer tools.
- [Dynamic workflow mode](https://ai-powered.com/skills/dynamic-workflow-mode): Dynamic workflow mode is an open-source agent skill for developer tools.
- [Harness setup](https://ai-powered.com/skills/harness-setup-chachamaru127): Harness setup is an open-source agent skill for developer tools.
- [Harness setup](https://ai-powered.com/skills/harness-setup-maxwell2732): Harness setup is an open-source agent skill for developer tools.
- [Haul loop](https://ai-powered.com/skills/haul-loop): Haul loop is an open-source agent skill for developer tools.
- [Breezing](https://ai-powered.com/skills/breezing-chachamaru127-2): Breezing is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/harness-loop-maxwell2732
