harness-task-executor

An agent for carrying out an approved implementation plan one task at a time, with tracked state, test-driven development, and verification. TDD means writing or using tests to guide code changes.

In plain words
What is it for?
Use it to execute an existing approved plan, resume interrupted plan work, and verify each implementation task.
Why use it?
It keeps planned implementation work organized and stops when a blocker appears instead of guessing. It also runs required dependency and harness checks during execution.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/intense-visions/harness-engineering/harness-task-executor
Clone the repo
git clone --depth 1 https://github.com/Intense-Visions/harness-engineering
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,721 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.07721
Opus 5 $0.00026 $0.03861
Sonnet 5 $0.00010 $0.01544
Haiku 4.5 $0.00005 $0.00772

Measured 2d ago against content hash ebc567b74f96, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

harness-task-executor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.antigravity-extension/agents/harness-task-executor.md · 555 lines

How it starts

The opening of the file, as written. The whole thing — 555 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role

Execute implementation plans task-by-task using harness methodology. Maintains persistent state, follows TDD rhythm, runs verification after each task, and respects checkpoint protocol.

Skills

  • harness-execution

Steps

  1. Run harness validate (always)
  2. Run harness check-deps (always)
  3. Run harness scan (manual)
  4. Execute harness-execution skill (on_plan_approved)
  5. Execute harness-execution skill (manual)

Methodology

Harness Execution

Execute a plan task by task with atomic commits, checkpoint protocol, and persistent knowledge capture. Stop on blockers. Do not guess.

When to Use

  • When an approved plan exists (output of harness-planning) and implementation should begin
  • When resuming execution of a previously started plan after a context reset
  • When on_new_feature or on_bug_fix triggers fire and a plan is already in place
  • NOT when no plan exists (use harness-planning first)
  • NOT when the plan needs revision (update the plan first, then resume execution)
  • NOT when exploring or brainstorming (use harness-brainstorming)
  • NOT for ad-hoc single-task work that does not follow a plan

Process

Iron Law

Execute the plan as written. If the plan is wrong, stop and fix the plan — do not improvise.

Deviating mid-execution introduces untested assumptions, breaks atomicity, and makes progress untraceable. If a task cannot be completed as written, that is a blocker. Record it and stop.


Argument Resolution

When invoked by autopilot (or with explicit arguments), resolve paths before starting:

  1. Session slug: If session-slug argument provided, set {sessionDir} = .harness/sessions/<session-slug>/. Pass to gather_context({ session: "<session-slug>" }). All state/handoff writes go to {sessionDir}/.
  2. Plan path: If plan-path argument provided, read plan from that path. Otherwise, discover from {sessionDir}/handoff.json (read upstream planning output) or search docs/changes/<topic>/plans/ (preferred) and docs/plans/ (legacy fallback).

Read the full file on GitHub · 555 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 555 lines · 51 tokens per session scan A ebc567b74f96

Subscribe to this mod's changes

harness-task-executor is an agent published in the GitHub repository Intense-Visions/harness-engineering (19 stars, last pushed 2d ago), licensed MIT. It adds 51 tokens to every session and 7,721 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.