
Long haul
Drives an agent through a long, measurable goal loop with explore-or-exploit rounds
Long 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 Long haul
Long-haul coordinates a multi-turn run that keeps an agent working toward a verifiable target until it holds. It moves through phases: sharpening a spec (grilling it first if the request is vague), turning that spec into a completion condition for Claude Code's /goal command, then running one round per turn in a git worktree. Each round either explores a fresh approach from the base branch or refines the current best attempt, and only measured improvements are kept.
The skill keeps its state in a hidden folder inside the target repository, tracking the current phase, round count, stall counter and incumbent so a session can resume cleanly. It includes preflight checks for git, the GitHub CLI, the /goal version and unattended-run readiness, and it flags any toolbox step that costs money or touches production before the loop begins. It also has two human approval gates: one before the goal is activated and one before a pull request is opened.
It expects a Claude Code session with git and, for the final step, an authenticated GitHub CLI. Helper scripts are written in bash, and the skill is aimed at a single developer driving one agent through a spec.
When your agent uses it
Auto-chaining orchestrator for a solo long-horizon goal loop. Sharpen a spec (grill it if vague), forge a /goal completion condition, then haul toward it turn after turn in a git worktree — each turn deciding explore (a fresh approach off the base) vs exploit (refine the incumbent), keeping only measured wins, until the goal holds. Use when the user wants one agent driven relentlessly toward a verifiable target over many turns — not a one-shot edit. Reach for it when the user says "keep working until", "loop until done", "long haul", or hands a spec to be built to completion.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs shell scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 3 files (28 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 long-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 long-haul@ccomkhj-skillsOr copy only this skill to ~/.claude/skills/long-haul:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/long-haul &&
cp -R "$tmp/long-haul/skills/long-haul" ~/.claude/skills/long-haul &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/long-haul inside it instead.
Copy the skill folder to ~/.agents/skills/long-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/long-haul &&
cp -R "$tmp/long-haul/skills/long-haul" ~/.agents/skills/long-haul &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/long-haul inside it instead.
Copy the skill folder to ~/.cursor/skills/long-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/long-haul &&
cp -R "$tmp/long-haul/skills/long-haul" ~/.cursor/skills/long-haul &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/long-haul inside it instead.
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 long-haul/skills/long-haulOr copy the folder to ~/.gemini/skills/long-haul yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/long-haul:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/long-haul &&
cp -R "$tmp/long-haul/skills/long-haul" ~/.copilot/skills/long-haul &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/long-haul inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ccomkhj/skills.gitThen copy skills/long-haul/skills/long-haul into your agent's skills folder as long-haul. Agents that support SKILL.md read one folder per skill.
What it does
- Spec sharpening
- Turns a rough ask into a defined spec with a checkable success signal and a declared toolbox.
- Completion condition forging
- Builds a /goal-ready completion condition from the spec and waits for user approval before starting.
- Explore or exploit rounds
- Each turn chooses between a fresh approach off the base and refining the current best attempt.
- Measured incumbent ratchet
- Keeps an attempt only when it beats the incumbent, and stops after repeated stalls.
- Preflight readiness checks
- Verifies git, the GitHub CLI, the /goal version and unattended-run settings before the loop starts.
- Pull request wrap-up
- Summarizes goal results against achieved output and opens a pull request after confirmation.
Good for
- Keep working on a feature until its test suite passes
- Build a spec to completion over many agent turns
- Drive a refactor toward a measurable target without manual restarts
- Loop an agent on a task until a stated check output proves it is done
- Resume an interrupted multi-round build from saved state
Long haul FAQ
What do I need to run Long haul?
Claude Code v2.1.139 or later for /goal, git, and for the final step an authenticated GitHub CLI with push permission to the repository.
Does Long haul change my repository directly?
Work happens in a git worktree and state lives in a hidden .longhaul folder added to .gitignore. Changes reach the repository through a branch and pull request, which only opens after you confirm.
When does Long haul start running?
It starts only after you approve the generated completion condition and run the /goal line yourself.
Which tools does Long haul use?
The skill's helper scripts are written in bash, and the skill relies on git worktrees and the GitHub CLI.
How do I install Long haul in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/long-haul to use it in all your projects, or to .claude/skills/long-haul in one project. Or install the long-haul plugin, which includes it: /plugin marketplace add ccomkhj/skills, then /plugin install long-haul@ccomkhj-skills.
Does Long 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 Long 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 Long haul?
The closest alternatives to Long haul are Haul loop, Haul goal, Haul ship, Dual haul and Spec driven dev v2.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ccomkhj/skills

Audits AGENTS.md project memory files and proposes targeted, approved updates
- Open source
- 10 GitHub stars
- Developer tools

Builds interactive HTML lessons that teach AI, ML or science concepts through worked cases
- Open source
- 10 GitHub stars
- Education and exam prep

Runs a project and builds an interactive walkthrough from what actually executed
- Open source
- 10 GitHub stars
- Developer tools

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

Races Claude against Codex in separate git worktrees until a measurable goal is met
- Open source
- 10 GitHub stars
- Developer tools

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

