Skip to content
Skill

Harness test drive

Benchmarks Claude Code, Codex and Gemini CLI on tasks from your own git history

Harness test drive is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
Python
Platforms
Claude Code, Codex, Cursor
GitHub stars
1.7K
Last commit
License
MIT
Listing updated

Similar skills

About Harness test drive

This skill turns past commits from a repository into a scoreboard for coding agents. It finds commits where tests failed before the change and passed after, hands each agent the commit message in a fresh copy of the repo, and lets the repository's own test command decide whether the task was done. Results report passes, pass rate, minutes, cost per pass and the size of each change.

Before any agent runs, the workflow detects or asks for the test command, checks each candidate task by running the tests at the starting commit and with the full change, and estimates a dollar range per harness. The user must set a spending cap, and the cap governs counted spend. Runs are logged to a results file in a hidden folder inside the repository, so an interrupted comparison can resume without repeating paid work.

It expects git, Python 3.9 or newer, and the harness CLIs being compared, such as claude, codex or gemini, all signed in on the machine. The scripts make no network calls themselves, but each harness sends prompts and code to its model provider. Because the test and setup commands run on the local machine, the skill recommends a container or virtual machine for repositories the user did not write.

When your agent uses it

Test-drives coding agents (Claude Code, Codex, Gemini CLI) on tasks mined from the user's own git history: each agent gets a past commit message in a fresh copy of the repo, and the repo's own tests score how many tasks it completes, dollars per task, minutes, and change size. Use when the user asks which coding agent or harness works best on their codebase; wants to compare or benchmark agents on their own repository instead of trusting leaderboards such as SWE-bench; wants to trial one agent against another before switching; or asks what each agent costs per fixed bug. Spends money: the harness CLIs call their model providers, so a dollar cap is required. The scripts make no network calls.

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 11 files (148 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 harness-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add RyanAlberts/best-of-Agent-Harnesses
/plugin install harness-skills@agent-harnesses

Or copy only this skill to ~/.claude/skills/harness-test-drive:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/harness-test-drive &&
cp -R "$tmp/skills/harness-test-drive" ~/.claude/skills/harness-test-drive &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/harness-test-drive inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/harness-test-drive to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/harness-test-drive &&
cp -R "$tmp/skills/harness-test-drive" ~/.agents/skills/harness-test-drive &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/harness-test-drive inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/harness-test-drive to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/harness-test-drive &&
cp -R "$tmp/skills/harness-test-drive" ~/.cursor/skills/harness-test-drive &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/harness-test-drive 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/RyanAlberts/best-of-Agent-Harnesses.git --path skills/harness-test-drive

Or copy the folder to ~/.gemini/skills/harness-test-drive yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/harness-test-drive:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/harness-test-drive &&
cp -R "$tmp/skills/harness-test-drive" ~/.copilot/skills/harness-test-drive &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/harness-test-drive inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git

Then copy best-of-Agent-Harnesses/skills/harness-test-drive into your agent's skills folder as harness-test-drive. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Task mining from git history
Finds past commits that changed both code and tests and turns their messages into tasks.
Fail-to-pass validation
Keeps only tasks where tests fail at the parent commit and pass with the full change.
Per-harness scoreboard
Ranks harnesses by passes, cost per pass, median minutes and median lines changed.
Enforced spending cap
Requires a dollar limit before any paid run and stops starting new runs once it is reached.
Resumable runs
Records each run in a results file so a stopped comparison continues without repeating work.
Clean-copy scoring
Grades agent diffs only by the repository's tests, applied to a fresh copy at the starting commit.

Good for

  • Find out which coding agent fixes bugs best in my repository
  • Compare Claude Code and Codex on past commits before switching tools
  • Estimate what each agent costs per fixed bug in my codebase
  • Benchmark agents on my own tests instead of public leaderboards

Harness test drive FAQ

What does the skill need before Harness test drive runs?

Python 3.9 or newer, git on macOS or Linux, the harness CLIs being compared (claude, codex, gemini), and a repository test command that runs on the machine.

Does Harness test drive spend money?

Yes. The harness CLIs call their model providers, so the user must set a dollar cap. Gemini CLI spend cannot be counted and runs only if the user explicitly allows it.

Does the skill send my code anywhere itself?

The scripts make no network calls. Each harness sends the prompt and the code it reads to its own model provider, as in normal use.

How is an agent's attempt graded?

Only by the repository's tests. The agent's diff, minus test files, is applied to a clean copy at the starting commit with the change's tests added, and the whole suite must pass.

How do I install Harness test drive in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/harness-test-drive to use it in all your projects, or to .claude/skills/harness-test-drive in one project. Or install the harness-skills plugin, which includes it: /plugin marketplace add RyanAlberts/best-of-Agent-Harnesses, then /plugin install harness-skills@agent-harnesses.

Does Harness test drive run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. 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 test drive?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Harness test drive?

The closest alternatives to Harness test drive are Harness work, Harness engineering, Agent eval, Regression finder and Dynamic workflow mode.

Where this comes from

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

More from RyanAlberts/best-of-Agent-Harnesses

  1. Shows which instruction files each coding agent loads and whether documented commands

    • Open source
    • 1.7K GitHub stars
    • Developer tools
  2. Audits an agent's claims that tests or builds passed against its session transcripts

    • Open source
    • 1.7K GitHub stars
    • Developer tools
  3. Checks if your agent's deny rules and hooks really block dangerous commands

    • Open source
    • 1.7K GitHub stars
    • Security
  4. Finds the Claude Code or Codex update where your agent's behavior started to change

    • Open source
    • 1.7K GitHub stars
    • Developer tools
  5. Finds the rules your coding agent keeps breaking and turns them into blocking hooks

    • Open source
    • 1.7K GitHub stars
    • Developer tools
  6. Halts a Claude Code or Codex session on loops, failure streaks or a spend cap

    • Open source
    • 1.7K GitHub stars
    • Developer tools