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.
npx agentmods add skills/tae2089/harness/codex-harnessnpx skills add tae2089/harness --skill codex-harnessgit clone --depth 1 https://github.com/tae2089/harnessWrote 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.
[](https://agentmods.dev/skills/tae2089/harness/codex-harness)<a href="https://agentmods.dev/skills/tae2089/harness/codex-harness"><img src="https://agentmods.dev/badge/skills/tae2089/harness/codex-harness.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00101 | $0.02851 |
| Opus 5 | $0.00051 | $0.01425 |
| Sonnet 5 | $0.00020 | $0.00570 |
| Haiku 4.5 | $0.00010 | $0.00285 |
Grade A, and why
codex-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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Codex Harness Orchestrator
Required before starting: Match the
references/usage-examples.mdscenarios against the user's utterance.
Core Principles
- 7 Architecture Patterns: Pipeline · Fan-out/Fan-in · Expert Pool · Producer-Reviewer · Supervisor · Hierarchical · Handoff
- Agent Definition: TOML format —
.codex/agents/{name}.toml - Skill Format: SKILL.md —
.codex/skills/{name}/SKILL.md - Project Context:
AGENTS.md— Path hierarchy: global~/.codex/AGENTS.md→ repoAGENTS.md→ subdirectory (more specific file takes precedence). Short and precise files are better than long and vague ones. - State Persistence:
_workspace/file-based brokering - Permission Control: TOML
sandbox_modefield —read-only | workspace-write | danger-full-access - Subagent Constraint: Only the orchestrator may spawn subagents.
max_depth=1(default) enforced. - File I/O: Prefer
apply_patch(surgical edits). New files via shell write. - Zero-Tolerance Failure Protocol: Arbitrary skipping is strictly prohibited. Maximum 2 retries (3 attempts total) →
Blocked.
Plan Mode
Always run the Plan Mode procedure before building a multi-stage harness.
- Activation: Collect context via
request_user_input→ clarifying questions → build a solid plan, then implement - Required cases: New builds, architecture changes, Stage additions
- May be skipped: Simple single-item tasks with a clearly scoped change (e.g., minor skill checklist edits)
Plan Mode Procedure (request_user_input-based)
PROCEDURE plan_mode(user_request):
// 1. Context collection
questions ← []
IF domain/goal is unclear:
questions.append("Please describe the goal and domain of the harness you want to build in detail.")
IF pattern cannot be determined:
questions.append("Do you have a preference for the agent team structure (Pipeline, Fan-out, Supervisor, etc.)?")
IF agent count/roles are unclear:
questions.append("Please list the agent roles you need.")
IF questions is not empty:
CALL request_user_input(questions) // Bundle all questions into one call
RETURN // Re-enter after receiving responses
// 2. Plan presentation and user approval
plan_summary ← Summary of domain, pattern, agent list, Stage/Step structure
CALL request_user_input(
"We will build the harness with the following plan. Shall we proceed?\n\n{plan_summary}"
)
RETURN // Enter Phase 1 after approval
What ships with it
34 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/agent-design-patterns.md 31 KB
- references/evolution-protocol.md 5.3 KB
- references/examples/full-bundle/sso-style.md 7.8 KB
- references/examples/step/01-blog-post.md 1.5 KB
- references/examples/step/02-issue-triage.md 2.2 KB
- references/examples/step/03-architecture-design.md 2.2 KB
- references/examples/step/04-single-stage-multi-task.md 3.1 KB
- references/examples/step/05-multi-stage-multi-task.md 4.4 KB
- references/examples/step/test-scenarios.md 6.1 KB
- references/examples/team/01-fan-out-fan-in.md 4.0 KB
- references/examples/team/02-producer-reviewer.md 4.8 KB
- references/examples/team/03-supervisor.md 3.7 KB
- references/examples/team/04-hierarchical.md 5.8 KB
- references/examples/team/05-handoff-persistence.md 5.9 KB
- references/expansion-matrix.md 17 KB
- references/orchestrator-procedures.md 7.7 KB
- references/orchestrator-template.md 34 KB
- references/qa-agent-guide.md 16 KB
- references/schemas/agent-orchestrator.template.md 4.7 KB
- references/schemas/agent-state-manager.template.toml 5.2 KB
- references/schemas/agent-worker.template.toml 3.2 KB
- references/schemas/checkpoint.schema.json 4.3 KB
- references/schemas/findings.template.md 1.8 KB
- references/schemas/models.md 2.0 KB
- references/schemas/README.md 3.2 KB
- references/schemas/state.py 23 KB runs code
- references/schemas/task.schema.json 2.4 KB
- references/schemas/tasks.template.md 833 B
- references/schemas/workflow.template.md 2.5 KB
- references/skill-testing-guide.md 18 KB
- references/skill-writing-guide.md 21 KB
- references/stage-step-guide.md 13 KB
- references/team-examples.md 6.5 KB
- references/usage-examples.md 13 KB
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.
- 4d ago First seen · 210 lines · 101 tokens per session scan A a22207d6b3a7
codex-harness is a skill published in the GitHub repository tae2089/harness (4 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 101 tokens to every session and 2,851 once invoked, about $0.0005 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-31.
Other skills, from other repositories
harness
하네스를 구성합니다. 전문 에이전트를 정의하며, 해당 에이전트가 사용할 스킬을 생성하는 메타 스킬. (1) '하네스 구성해줘', '하네스 구축해줘' 요청 시, (2) '하네스 설계', '하네스 엔지니어링' 요청 시, (3) 새로운 도메인/프로젝트에 대한 하네스 기반 자동화 체계를 구축할 때, (4) 하네스 구성을 재구성하거나 확장할 때, (5) '하네스 점검', '하네스 감사', '하네스 현황', '에이전트/스킬 동기화' 등 기존 하네스 운영/유지보수 요청 시 사용.
pr-review
Review a GitHub pull request and post a verdict comment. Stateful — if a previous review comment exists, review only the new commits since the last review and track whether prior findings were addressed. Focus on code cleanliness, duplication, and docs sync. Use when user says "review this PR", "check the PR", "leave…
new-plugin
Factory line for adding a new HAR verification plugin (like playwright or rocketsim) for any framework — research the framework docs, build the template under src/templates/plugins/, register it everywhere, validate on a real repository, and open a PR. Use when asked to add/create a plugin, plugin template, or…
factory-line
Factory line for executing one station of a declared multi-station program — read the installed line bundle (har line status), plan parallel work into isolated HAR slots, run the cumulative gate with har line gate, and hand off for human review. Use when asked to "run a factory line", "run the next station", "execute…
write-eval
Write a live eval for new or changed runner/agent behavior using red/green TDD plus a falsification check that proves the eval fails when the behavior is broken. Use whenever you add or modify behavior that should be covered by an eval, when asked to "write an eval", "add an eval", "cover this with an eval", or after…
temporal
Resolve ANY named time window — today, yesterday, thisWeek, lastWeek, last7Days, last30Days, last90Days, thisMonth, lastMonth, thisQuarter, lastQuarter, thisYear, lastYear, last12Months — or an arbitrary range (lastNdays / lastNweeks / lastNmonths) to a concrete ISO date range relative to your run time. Read-only: no…