Skip to content
Skill

Dual haul

Races Claude against Codex in separate git worktrees until a measurable goal is met

Dual haul is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
shell
Platforms
Claude Code
GitHub stars
10
Last commit
License
MIT
Listing updated

Similar skills

About Dual haul

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (24 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 dual-haul plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from ccomkhj/skills

  1. Audits AGENTS.md project memory files and proposes targeted, approved updates

    • Open source
    • 10 GitHub stars
    • Developer tools
  2. Builds interactive HTML lessons that teach AI, ML or science concepts through worked cases

    • Open source
    • 10 GitHub stars
    • Education and exam prep
  3. Runs a project and builds an interactive walkthrough from what actually executed

    • Open source
    • 10 GitHub stars
    • Developer tools
  4. Turns a clear improvement target into a measurable Claude Code /goal condition

    • Open source
    • 10 GitHub stars
    • Developer tools
  5. Runs a per-turn race between two coding agents and keeps the better diff

    • Open source
    • 10 GitHub stars
    • Developer tools
  6. Writes a final goal-vs-achieved report for a dual-haul run with verified checks

    • Open source
    • 10 GitHub stars
    • Developer tools