# Dual haul

> Dual haul is an open-source agent skill for developer tools. Races Claude against Codex in separate git worktrees until a measurable goal is met. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ccomkhj/skills/tree/main/dual-haul/skills/dual-haul
- **Repository:** https://github.com/ccomkhj/skills
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** dual-haul
- **Collection:** https://github.com/ccomkhj/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

Dual-haul coordinates a multi-step improvement of existing code. It first works out what should be better, turns that into a completion condition for Claude Code's /goal command, and then runs repeated rounds in which a Claude model and a Codex model each attempt the change in their own git worktree. A judging step keeps the stronger result, and the session ends with a summary of the goal compared with what was achieved, followed by a branch and pull request once the user confirms.

The workflow is split into sibling phases for understanding, goal writing, looping, reporting and shipping, with state kept in a local .dualhaul folder that is git-ignored. Shell helpers handle launching races, waiting on them and tearing down worktrees. The user is asked to approve the goal and to choose the two racer models before iteration starts, and to confirm before anything is pushed.

It expects git, the claude and codex command-line tools, and a Claude Code version that supports /goal. The skill is written for a repository whose target code can be measured against a verifiable check.

## When your agent uses it

> Auto-chaining orchestrator for goal-driven improvement. Understand what the user wants improved, forge a /goal completion condition, then race a different-model Claude against Codex (each in its own git worktree) round by round until the goal is met, summarize, and open a PR. Use when the user wants something existing measurably improved with two independent agents racing under a verifiable goal — not a one-shot edit.

## What it can access

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

- [Runs shell scripts](https://github.com/ccomkhj/skills/tree/HEAD/dual-haul/skills/dual-haul)
- [No network calls found in its scripts](https://github.com/ccomkhj/skills/tree/HEAD/dual-haul/skills/dual-haul)
- [License: MIT](https://github.com/ccomkhj/skills/tree/HEAD/dual-haul/skills/dual-haul)

## Features

- **Goal forging:** Turns a vague improvement request into a checkable completion condition for /goal.
- **Two-agent racing:** Runs a Claude racer and a Codex racer on the same task in separate git worktrees each round.
- **Round-based judging:** Compares each round's results and keeps the better diff before the next race starts.
- **Human approval gates:** Pauses for user approval of the goal, racer model choice and pull request confirmation.
- **Resumable state:** Records phase and status in a state file so an interrupted session can pick up where it left off.
- **Summary and pull request:** Reports goal versus achieved results, then commits to a branch and opens a PR after confirmation.

## Good for

- Make a slow test suite measurably faster and keep the best attempt
- Reduce bundle size of an existing web app to a target number
- Improve a parser's benchmark score until a set threshold is reached
- Open a pull request with the winning improvement after reviewing it

## Install

### Claude Code

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

```sh
/plugin marketplace add ccomkhj/skills
/plugin install dual-haul@ccomkhj-skills
```

Or copy only this skill to `~/.claude/skills/dual-haul`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dual-haul &&
cp -R "$tmp/dual-haul/skills/dual-haul" ~/.claude/skills/dual-haul &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dual-haul &&
cp -R "$tmp/dual-haul/skills/dual-haul" ~/.agents/skills/dual-haul &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dual-haul &&
cp -R "$tmp/dual-haul/skills/dual-haul" ~/.cursor/skills/dual-haul &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/dual-haul` 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/ccomkhj/skills.git --path dual-haul/skills/dual-haul
```

Or copy the folder to `~/.gemini/skills/dual-haul` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dual-haul &&
cp -R "$tmp/dual-haul/skills/dual-haul" ~/.copilot/skills/dual-haul &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ccomkhj/skills.git
```

Then copy `skills/dual-haul/skills/dual-haul` into your agent's skills folder as `dual-haul`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It requires the claude and codex command-line tools, a git repository because it uses worktrees, and Claude Code v2.1.139 or later for the /goal command.

### Does Dual haul edit my code directly?

No. The orchestrating session does not edit the target code during iteration; it commissions the two racers and keeps the better diff.

### When does the loop stop?

It stops when the /goal condition is met, when the round cap is reached, or when two consecutive rounds fail to beat the base, at which point it asks the user what to do.

### Will Dual haul push changes without asking?

No. The branch and pull request are only created after the user confirms the proposed branch name and PR body.

### How do I install Dual haul in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dual-haul to use it in all your projects, or to .claude/skills/dual-haul in one project. Or install the dual-haul plugin, which includes it: /plugin marketplace add ccomkhj/skills, then /plugin install dual-haul@ccomkhj-skills.

### Does Dual haul run scripts?

Yes. It runs shell 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 Dual haul?

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 Dual haul?

The closest alternatives to Dual haul are Dual loop, Dual report, Long haul, Haul loop and Dual goal.

## Where this comes from

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

## Alternatives

- [Dual loop](https://ai-powered.com/skills/dual-loop): Dual loop is an open-source agent skill for developer tools.
- [Dual report](https://ai-powered.com/skills/dual-report): Dual report is an open-source agent skill for developer tools.
- [Long haul](https://ai-powered.com/skills/long-haul): Long haul 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.
- [Dual goal](https://ai-powered.com/skills/dual-goal): Dual goal is an open-source agent skill for developer tools.
- [Dual ship](https://ai-powered.com/skills/dual-ship): Dual ship is an open-source agent skill for developer tools.
- [Haul goal](https://ai-powered.com/skills/haul-goal): Haul goal is an open-source agent skill for developer tools.
- [Dual understand](https://ai-powered.com/skills/dual-understand): Dual understand is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/dual-haul
