execute-harness

execute-harness is a skill for Claude Code, Codex from spences10/my-pi. It costs 32 tokens per session (841 once invoked), scanned A, original, MIT.

A workflow for running a task through an existing Pi task harness, a folder containing task rules, instructions, and status files.

In plain words
What is it for?
Running an existing harness task, updating its status, following its contract, and checking the result with validation and review scripts.
Why use it?
It keeps execution inside the harness’s rules and records progress while validation runs repeatedly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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 skills/spences10/my-pi/execute-harness
Any agent
npx skills add spences10/my-pi --skill execute-harness
Clone the repo
git clone --depth 1 https://github.com/spences10/my-pi

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for execute-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/spences10/my-pi/execute-harness.svg)](https://agentmods.dev/skills/spences10/my-pi/execute-harness)
Your own site
<a href="https://agentmods.dev/skills/spences10/my-pi/execute-harness"><img src="https://agentmods.dev/badge/skills/spences10/my-pi/execute-harness.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 841 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.1 $0.00032 $0.00841
Opus 5 $0.00016 $0.00420
Sonnet 5 $0.00006 $0.00168
Haiku 4.5 $0.00003 $0.00084

Measured 6d ago against content hash a796049c3224, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

execute-harness 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 6d 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.

packages/pi-harness/skills/execute-harness/SKILL.md · 75 lines

How it starts

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

Execute Harness

Run the task through an existing my-pi harness. Its outer policy is the runtime trust boundary; its versioned inner scaffold is an amendable execution plan subordinate to system, developer, and current user instructions.

Workflow

  1. Resolve the harness directory from the user request or active harness context.
  2. Read harness.json, SYSTEM.md, TASK.md, and status.json before editing.
  3. Call harness_update with status: running and the current phase.
  4. If the team tool is available and you are the team lead, create or reuse a team, create/claim a task for the harness, and use one member_spawn executor with mutating: true for file-editing work. Default to the contract cwd; use workspace_mode: worktree only when the user asks for isolation or the plan covers setup, runtime state, merge, and cleanup ownership.
  5. The teammate prompt must tell it to read harness.json, SYSTEM.md, TASK.md, and status.json, execute only inside the contract, run validate.sh and review.sh, update harness evidence, and report changed files plus risks. If using a worktree, set HARNESS_CWD to that worktree for validation and review.
  6. Recover any remaining source-of-truth context needed to act safely.
  7. Execute surgically inside scaffold.allowed_paths. Use harness_amend for a bounded change inside the approved capability. If user direction or source evidence introduces a new capability, architecture decision, or outer-policy expansion, stop execution and enter assessment instead of silently expanding the harness. An approved harness recommendation may then amend the active scaffold.
  8. Record decisions, phase changes, and validation evidence with harness_update, including team status and remaining risks when known.
  9. Run <harness_dir>/validate.sh.
  10. Run <harness_dir>/review.sh from the execution workspace. If using a linked worktree, run it from that worktree or set HARNESS_CWD to the worktree path.
  11. Review <harness_dir>/OUTCOME.md or <harness_dir>/outcome.json for changed files, baseline ignored files, validation evidence, team status, and risks.
  12. Mark completed only when validation passes and no escalation rule applies; otherwise mark failed with evidence. A terminal status seals the run and keeps its guard active for the remainder of the current turn. The extension deactivates it on the next direct user turn or session startup.

Read the full file on GitHub · 75 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. 6d ago First seen · 75 lines · 32 tokens per session scan A a796049c3224

Subscribe to this mod's changes

execute-harness is a skill published in the GitHub repository spences10/my-pi (118 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 841 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

pi

Use when needing a minimal, extensible terminal AI coding agent harness in TypeScript with plugin architecture. Pi: minimalist terminal AI coding agent emphasizing simplicity and composability.

znlgis/opengis-skills · 35 tokens

ask-user

Use askuser as a decision, research, and requirements gate before ambiguous or high-stakes choices.

eko24ive/pi-ask · 23 tokens

create-pi-extension

Como criar uma extensão TypeScript para pi. Use quando o usuário precisar de hooks, tools customizadas, UI no TUI, ou persistência de estado.

aretw0/agents-lab · 37 tokens

migrate-to-shoehorn

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

wangmiaozero/pi-harness · 48 tokens

connect-recommend

Use this skill when the user asks about Stripe Connect configuration, charge patterns, Dashboard access, or how to get started with Connect, is building a marketplace, platform, multi-vendor store, gig platform, or subscription platform, needs to pay out sellers, vendors, or providers, mentions split payments, revenue…

stripe/ai · 151 tokens

stripe-projects

Use when the user wants to provision infrastructure or third-party services using Stripe Projects. Triggers: "I need a database", "set up auth", "add caching", "give me a Postgres", "provision Redis", "I need hosting", "add a vector DB", "get me an API key for X", "get credentials for X", "sign up for a service", "set…

stripe/ai · 213 tokens