# Orchestrator task loop

> Orchestrator task loop is an open-source agent skill for developer tools. Keeps an Agent Teams task board moving until every task passes its gate. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ivy00johns/Skill-Madness/tree/main/skills/loops/orchestrator-task-loop
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** orchestrator-task-loop
- **Collection:** https://github.com/ivy00johns/Skill-Madness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill runs an outer supervision loop over the shared task list used by Claude Code Agent Teams. On each pass it reads the board, assigns the highest-priority pending task whose dependencies are complete to any idle teammate, and lets teammates claim and work tasks in their own context windows. When a task is marked completed, its TaskCompleted gate runs; a failing task is returned to pending with the failure as feedback.

Done is decided by a whole-board check rather than by teammates reporting they finished. The loop only stops when every task is completed, has a passing gate verdict, and no dependency points at an unfinished task. It also commits a checkpoint for each task that passes, and it stops with an escalation when it hits an iteration cap, a budget ceiling, or a no-progress circuit breaker.

It requires the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 environment flag and a seeded task list, and it refuses to start without them, pointing the user to the orchestrator's subagent or sequential path. The skill is marked as experimental and is meant to run attended until it has completed several clean runs.

## When your agent uses it

> Outer loop over the Agent Teams shared task list: keep assigning the top unblocked task to idle teammates and gating each completed task until every task passes its TaskCompleted gate. Experimental, behind CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1; falls back to the orchestrator otherwise. Trigger on "drain the task board", "keep the team working until done", "agent teams loop".

## What it can access

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

- [Instructions only, no scripts](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/loops/orchestrator-task-loop)
- [Asks for: Read, Write, Edit, Bash, Glob, Grep, Agent, Task…](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/loops/orchestrator-task-loop/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/loops/orchestrator-task-loop)

## Features

- **Task board assignment:** Routes the highest-priority unblocked pending task to each idle teammate.
- **Whole-board completion check:** Re-reads every task and its dependencies before declaring the list drained.
- **Per-task gate enforcement:** Runs each task's TaskCompleted gate and rolls back failed tasks with feedback.
- **Checkpoint commits:** Commits working state after each task passes so progress can be reverted.
- **Loop safety caps:** Applies iteration, budget and no-progress limits that stop the loop and escalate.
- **Human escalation for blocks:** Pauses on ambiguous or blocked tasks and on irreversible actions instead of guessing.

## Good for

- Drain the remaining tasks on an agent team's shared task board
- Keep idle teammates assigned until all dependent tasks pass their checks
- Run a team of agents through a seeded list of contract-bounded work units
- Roll back a task that failed its completion gate and reassign it

## Install

### Claude Code

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

```sh
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/orchestrator-task-loop &&
cp -R "$tmp/skills/loops/orchestrator-task-loop" ~/.claude/skills/orchestrator-task-loop &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/orchestrator-task-loop &&
cp -R "$tmp/skills/loops/orchestrator-task-loop" ~/.agents/skills/orchestrator-task-loop &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/orchestrator-task-loop &&
cp -R "$tmp/skills/loops/orchestrator-task-loop" ~/.cursor/skills/orchestrator-task-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/orchestrator-task-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/ivy00johns/Skill-Madness.git --path skills/loops/orchestrator-task-loop
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/orchestrator-task-loop &&
cp -R "$tmp/skills/loops/orchestrator-task-loop" ~/.copilot/skills/orchestrator-task-loop &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git
```

Then copy `Skill-Madness/skills/loops/orchestrator-task-loop` into your agent's skills folder as `orchestrator-task-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Orchestrator task loop need before it runs?

It needs the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 environment flag set, a spawned team and a populated shared task list. Without the flag it refuses to start and points to the orchestrator's subagent or sequential path.

### Can Claude start this loop on its own?

No. The skill sets disable-model-invocation, so it runs only when typed as /orchestrator-task-loop or dispatched by the orchestrator.

### How does Orchestrator task loop decide the work is finished?

It checks the whole board: every task must be completed, have a passing TaskCompleted gate verdict, and have no dependency on an unfinished task. Teammates saying they are done is not enough.

### What happens when a task fails its gate?

The task is returned to pending or in_progress with the failure surfaced as feedback, and it does not count toward completion until the gate passes.

### How do I install Orchestrator task loop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/orchestrator-task-loop to use it in all your projects, or to .claude/skills/orchestrator-task-loop in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.

### Does Orchestrator task 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 Orchestrator task 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 Orchestrator task loop?

The closest alternatives to Orchestrator task loop are Overnight loop, Loop controller, Autonomous loops, Autonomous loops and Continuous agent loop.

## Where this comes from

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

## Alternatives

- [Overnight loop](https://ai-powered.com/skills/overnight-loop): Overnight loop is an open-source agent skill for developer tools.
- [Loop controller](https://ai-powered.com/skills/loop-controller): Loop controller is an open-source agent skill for developer tools.
- [Autonomous loops](https://ai-powered.com/skills/autonomous-loops): Autonomous loops is an open-source agent skill for developer tools.
- [Autonomous loops](https://ai-powered.com/skills/autonomous-loops-abdullayevtemurmalik): Autonomous loops is an open-source agent skill for developer tools.
- [Continuous agent loop](https://ai-powered.com/skills/continuous-agent-loop): Continuous agent loop is an open-source agent skill for developer tools.
- [Chief of staff](https://ai-powered.com/skills/chief-of-staff): Chief of staff is an open-source agent skill for developer tools.
- [Implement](https://ai-powered.com/skills/implement-kzytateishi): Implement is an open-source agent skill for developer tools.
- [Team execution](https://ai-powered.com/skills/team-execution): Team execution is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/orchestrator-task-loop
