
Harness loop
Runs a Plans.md task loop that re-enters with fresh context on each wake-up
Harness loop is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 42
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Harness loop
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Edit, Bash, Task, ScheduleWakeup, mcp__harness__harness_mem_resume_pack, mcp__harness__harness_mem_record_checkpoint(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 2 files (35 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
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):
/plugin marketplace add maxwell2732/claudecode-research-harness-workflow
/plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflowOr copy only this skill to ~/.claude/skills/harness-loop:
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.
Copy the skill folder to ~/.agents/skills/harness-loop to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/harness-loop to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/maxwell2732/claudecode-research-harness-workflow.git --path skills/harness-loopOr copy the folder to ~/.gemini/skills/harness-loop yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/harness-loop:
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.
Get the folder:
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.gitThen 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.
What it does
- 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
Harness loop 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.
More from maxwell2732/claudecode-research-harness-workflow

Drives a browser via the agent-browser CLI to open pages, fill forms and capture
- Open source
- 42 GitHub stars
- Browser automation

Guides an agent through adding Clerk, Supabase Auth or Stripe to an app with a security
- Open source
- 42 GitHub stars
- Databases

Triages failing CI pipelines and guides fixes without weakening tests
- Open source
- 42 GitHub stars
- Developer tools

Scaffolds CRUD endpoints, Zod validation and tests for an entity in your codebase
- Open source
- 42 GitHub stars
- Developer tools

Guides an agent through Vercel or Netlify deployment, analytics and health checks
- Open source
- 42 GitHub stars
- Cloud and infrastructure

Builds a one-page HTML acceptance demo to decide whether to ship, wait or reject
- Open source
- 42 GitHub stars
- Developer tools



