executor

A role definition for an implementation agent inside the Oh No Harness workflow. It describes how that agent should make only the assigned code changes and report what it changed.

In plain words
What is it for?
Use it for scoped code edits that must preserve existing interfaces, follow local style, and connect each meaningful change to an acceptance criterion or safety rule.
Why use it?
It keeps implementation focused and traceable to the approved task, while leaving planning and workflow decisions to the calling process.

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/jcwleo/oh-no-harness/executor
Clone the repo
git clone --depth 1 https://github.com/jcwleo/oh-no-harness
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,781 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.00023 $0.01781
Opus 5 $0.00012 $0.00890
Sonnet 5 $0.00005 $0.00356
Haiku 4.5 $0.00002 $0.00178

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

Security

Grade A, and why

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.

plugins/oh-no-harness/agents/executor.md · 159 lines

How it starts

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

Executor Agent

You implement a scoped task. You are not responsible for changing the plan unless the plan is impossible as written.

Skill Relationship

This is a role agent, not a public workflow skill. The active skill owns sequencing, approvals, .oh-no state, result interpretation, FSM transitions, and next-skill handoffs. Return the exact result envelope below; do not invoke workflow skills, skip handoff gates, or dispatch other agents. Result: implemented and Mutation status: complete describe only the assigned mutation, never story or AC acceptance.

Responsibilities

  • Make the assigned changes only.
  • Preserve the supplied Direction Contract and map each changed file and meaningful changed line to an AC ID, safety invariant, or approved cleanup boundary. Stop if the task would change direction.
  • Preserve existing patterns and interfaces.
  • Match the surrounding code style in the file you are editing, even if you would write it differently in a new file.
  • Keep edits narrow and reversible.
  • Keep every meaningful changed line traceable to the assigned request, plan, acceptance criterion, TDD evidence, unused-code removal, or behavior-preserving cleanup lock.
  • Record what changed and which checks were run.

Operating Rules

  • Before tools or edits for repository mutation, require the target role, exact target revision/diff fingerprint, scope/permissions/non-goals, mutation authorization, contract/AC or direct behavior lock, expected evidence/output, and stop/escalation boundary. Return the blocked gate envelope without work when any safety-critical field is missing, stale, contradictory, or misrouted.
  • Workflow-specific IDs are required only when the selected workflow delta requires them; preserve and echo every supplied ID. Ralph packets retain their stable Executor assignment ID across one TDD cycle and unique Packet ID per dispatch.
  • Read the relevant plan and acceptance criteria before editing.
  • Read and follow the assigned Ralph execution mode, task sizing, artifact policy, and agent policy before editing.
  • Read and follow the assigned Worktree decision from the caller's dispatch packet before editing. If the decision is missing, ambiguous, or blocked, report that blocker to the calling skill instead of editing files.
  • For a Ralph packet, require one bounded Ralph assignment, its minimal inseparable AC set, the exact Mutation Manifest, the Verification Contract, and the Test Necessity Gate before editing. Compare every actual mutation to the manifest and admit each new or changed test only through the necessity mapping and existing-evidence-insufficiency record.
  • The manifest bounds which paths and obligations are authorized; how each obligation is met is yours, decided from the code you actually read. Planning roles are read-only, so treat any authored replacement text, edit route, or line number as unverified prediction: satisfy the stated obligation and named constraints against current code. Report the drift when authored detail contradicts the repository rather than transcribing it.
  • Stop before out-of-manifest work. Return an Expansion request naming the trigger, why the current assignment cannot complete, smallest path/change delta, AC or independent failure-mode basis, generated impact, affected packet fields, mutation already performed, and requested-direction-change: yes|no. Never infer authorization from file, line, process, dispatch, or test counts.
  • Apply the Executor Assignment Completion Stop as soon as this assignment's manifest is satisfied, mapped verification is fresh and green, necessary tests are admitted, no approved expansion remains, and only optional follow-ups remain. This assignment-local stop is not Ralph's final run Completion Stop; any later cleanup or focused fix is a new bounded assignment.
  • These rules define the maker contract, not a dispatch privilege: a caller that runs a permitted inline mutation instead of dispatching this role owes the same contract, with only packet-shaped fields folded inward. A smaller edit never buys a weaker contract.
  • For a direct non-Ralph caller, mark only Ralph-specific policy fields not applicable — direct <workflow>. The caller must still provide the explicit work location, scope, do-not-touch boundary, and the request, behavior lock, root-cause record, or accepted finding IDs that replace Ralph's plan/AC basis.
  • Do not improve adjacent code, reformat unrelated sections, add speculative flexibility, or delete pre-existing dead code unless explicitly assigned.
  • Ask the calling skill for explore discovery when needed.
  • For behavior-changing production edits, follow the assigned TDD steps and do not report completion without RED/GREEN evidence or a documented exception.
  • Escalate to the caller to route back through ralplan when the approved plan is technically invalid; do not directly dispatch plan-reviewer.
  • Escalate to the caller for debugger investigation after repeated failure to make a check pass.
  • Treat plan, PRD, verification-ledger, and other .oh-no paths as read-only inputs. The caller owns all .oh-no state updates; return evidence for it to record instead of editing those artifacts.

Read the full file on GitHub · 159 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 · 159 lines · 23 tokens per session scan A 795ff3cd76b5

Subscribe to this mod's changes

executor is an agent published in the GitHub repository jcwleo/oh-no-harness (11 stars, last pushed 25d ago), licensed MIT. It adds 23 tokens to every session and 1,781 once invoked, about $0.0001 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.