Skip to content
Agentmart
Submit a tool

harness-codex-sim

Run Codex headless L5 harness simulations with `tests/sim/codex-agentloop.mjs`.

Skill by bd-makers

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/bd-makers-harness-codex-sim

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Run Codex headless L5 harness simulations with `tests/sim/codex-agentloop.mjs`. Use when verifying the Harness AIjient Team Codex plugin, `codex exec` skill activation, JSONL evidence, installed harness task/init flows, or Codex-specific PASS/FAIL/MANUAL/N/A reports.

Use cases: productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/harness-codex-sim

What's inside

Skill name
harness-codex-sim
Description
Run Codex headless L5 harness simulations with `tests/sim/codex-agentloop.mjs`. Use when verifying the Harness AIjient Team Codex plugin, `codex exec` skill activation, JSONL evidence, installed harness task/init flows, or Codex-specific PASS/FAIL/MANUAL/N/A reports.
License
MIT
Instructions
97 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# /harness-codex-sim — Codex headless L5 simulation

Use this skill to validate the Codex plugin surface of the Team Harness. Keep it
separate from the Claude Code L5 simulation.

## Layer Boundary

- **Claude L5**: `tests/sim/agentloop.mjs`, real `claude -p`, Claude slash
  commands, Claude transcript lookup, SessionStart hook evidence.
- **Codex L5**: `tests/sim/codex-agentloop.mjs`, real `codex exec --json`,
  Codex plugin/skill activation, JSONL event evidence, installed harness
  file/git effects.

Do not score Claude-only signals as Codex failures. SessionStart nudge is `N/A`
for Codex L5. Headless-only blind spots such as PreToolUse protect-files stay
`MANUAL`.

## Phase 0 — Preflight

1. Confirm `../harness-playground` exists. If it is missing, stop gracefully; this
   is a dev-only simulation tool.
2. Confirm `codex` is on `PATH`.
3. Confirm `harness-team` is on `PATH`.
4. Confirm `.codex-plugin/plugin.json` and `skills/harness-team/SKILL.md` are
   present.
5. Run probe before full run.

## Phase 1 — Probe

Run:

```bash
node tests/sim/codex-agentloop.mjs probe
```

Probe validates:

- `codex exec --json` starts in a throwaway sandbox.
- JSONL event stream is parseable even when Codex prints warning noise.
- `thread.started` and `turn.completed` are observable.
- Final prose is captured only as diagnostic output.

If probe fails with auth/login errors, run `codex login` locally or provide
`CODEX_API_KEY` only to the single Codex invocation in CI. Do not export API keys
job-wide around untrusted project code.

## Phase 2 — Full Run

Run:

```bash
node tests/sim/codex-agentloop.mjs run
```

The runner uses throwaway projects under:

```text
../harness-playground/.sim-tmp/<TS>/
```

It writes reports to:

```text
../harness-playground/sim-reports/codex-agentloop-<TS>.md
```

It may write golden snapshots under:

```text
../harness-playground/sim-snapshots/codex/<version>/
```

Full run scenarios use `danger-full-access` inside throwaway `.sim-tmp`
projects. This is intentional: Codex `workspace-write` protects `.git/hooks`,
while installed hook verification needs to create `.git/hooks/post-commit`.
Do not use this runner against a real project directory.

## Evidence Rules

- PASS only from file, git, JSONL event, or hook output evidence.
- Agent final messages are diagnostic only.
- Natural-language trigger reliability is a pass-rate, not a single anecdote.
- If a Codex run fails but direct `harness-team` CLI succeeds, classify it as
  Codex prompt/permission/plugin/sandbox trouble first.
- If both Codex and direct CLI fail, classify it as a real harness CLI/template
  defect candidate.

## Cleanup Checks

After a full run, verify:

- `.sim-tmp/<TS>` was removed.
- Persistent playground projects `rn-app`, `next-app`, and `bare-node` are git
  clean.
- Source repo changes are limited to intentional runner, skill, docs, or tests.

From bd-makers/team-harness, MIT.

More from bd-makers/team-harness

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 5, 2026 (24 days ago)
Last release
Oct 17, 2026 (13 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from bd-makers

Cite this page

harness-codex-sim skill. Agent Mart. https://agentmart.dev/skills/bd-makers-harness-codex-sim (last updated 2026-10-24)