English | ํ๊ตญ์ด
codex-harness is a team-architecture factory for OpenAI Codex. Say "build a harness for this project" (English) or "ํ๋ค์ค ๊ตฌ์ฑํด์ค" (ํ๊ตญ์ด), and the skill turns your domain description into an Orchestrator Thread + specialist Agent Threads and the reusable skills they use โ picked from six pre-defined team-architecture patterns and emitted onto Codex-native surfaces only.
codex-harness decomposes complex, recurring work into a coordinated team of specialized agents โ but where the original revfactory/harness maps that team onto Claude Code's agent-team runtime, codex-harness maps it onto the surface Codex actually runs on: the Codex Thread.
A Thread is treated as the first-class execution boundary โ a durable specialist room with its own isolated context, role identity, and handoff report. The harness scaffolds these threads, the skills they run, and the file-mediated state that lets them hand work to each other. Point it at a project, ask it to "build a harness," and it generates everything on Codex surfaces only โ AGENTS.md, .agents/skills/, .agents/agents/, .codex/config.toml, Codex Threads, codex exec, sandbox/approval policy, MCP, and optional hooks. No .claude/, no CLAUDE.md, no Claude-specific orchestration tools.
codex-harness lives at the L3 Meta-Factory layer โ the layer that generates other harnesses rather than being one. Inside L3 it occupies the Team-Architecture Factory sub-layer, the same one as revfactory/harness, but bound to a different runtime.
| Layer | What it does | Runtime |
|---|---|---|
| L3 โ Meta-Factory / Team-Architecture Factory (us) | Domain sentence โ Orchestrator Thread + Agent Threads + skills, via 6 team patterns | OpenAI Codex (Threads) |
| L3 โ Meta-Factory / Team-Architecture Factory | Same concept, Claude-native agent teams | revfactory/harness |
| L3 โ Meta-Factory / Runtime-Configuration Factory | Deterministic, repeatable runtime configurations | coleam00/Archon |
revfactory/harnessgenerates Claude-Code agent teams. codex-harness generates the same six team architectures (pipeline, fan-out/fan-in, expert pool, producer-reviewer, supervisor, hierarchical delegation) plus the skills agents use โ but as Codex Threads with file-mediated handoff. Same sub-layer, different runtime. Pickrevfactory/harnessfor Claude Code, codex-harness for Codex.
- Thread-Native Team Design โ 6 architectural patterns (Pipeline, Fan-out/Fan-in, Expert Pool, Producer-Reviewer, Supervisor, Hierarchical Delegation) mapped onto an Orchestrator Thread + Agent Threads.
- Expert-Level Roles, Not Generic Doers โ Every agent role must encode professional judgment: expert heuristics, decision rules, anti-patterns, domain quality bars, and (for research roles) a search/query strategy. The harness asks you at consequential decision points instead of assuming.
- Skill Generation โ Auto-generates reusable skills with Progressive Disclosure (
references/,templates/,scripts/) for efficient context management. - File-Mediated Orchestration โ
_workspace/carries thread briefs, handoff reports, merge inputs, and decisions across sessions, making threads durable and partial reruns possible. - Codex-Native Safety โ Risk is bounded by sandbox/profile/hook policy and
config.tomlprofiles, not by prose alone. - Validation โ Trigger verification, dry-run scenarios, thread-board checks, and integration-coherence checks.
Phase 0: Audit existing harness
โ
Phase 1: Domain & recurring-work analysis โ _workspace/00_requirements.md
โ
Phase 2: Execution-mode selection (smallest useful runtime)
โ
Phase 3: Architecture-pattern selection (6 patterns)
โ
Phase 4: Agent role definition โ .agents/agents/<role>.md
โ
Phase 5: Skill generation โ .agents/skills/<skill>/SKILL.md
โ
Phase 6: Orchestrator skill generation โ .agents/skills/<domain>-orchestrator/
โ
Phase 7: Thread workspace โ _workspace/
โ
Phase 8: AGENTS.md pointer update
โ
Phase 9: Optional Codex automation (codex exec / hooks / MCP)
โ
Phase 10: Validation
โ
Phase 11: Evolution
codex-harness preserves the Harness concept but supplies the runtime mapping Codex needs. The best Codex port is not "Claude agent team โ codex exec scripts." It is "Claude agent team โ Codex Thread team + file-mediated handoff + optional codex exec automation + optional subagents + optional hooks."
| Harness concept | Claude-native implementation | Codex thread-native implementation |
|---|---|---|
| Orchestrator | Team / manager agent | Orchestrator Thread |
| Specialist agent | .claude/agents + team messaging |
Agent Thread + role file + skill |
| Message protocol | SendMessage / TaskCreate |
Thread briefs + handoff reports |
| Shared state | Team task state | _workspace/ + thread board |
| Parallelism | Agent/team runtime | Multiple Codex Threads or codex exec jobs |
| Review gates | Team protocol + QA agents | Phase gates in the Orchestrator Thread |
| Evolution | /harness:evolve |
Harness maintenance + change history |
The skill lives at skills/harness/. Install it where Codex discovers skills โ globally for all projects, or per-project.
git clone https://github.com/namojo/codex-harness.git
mkdir -p ~/.agents/skills
cp -r codex-harness/skills/harness ~/.agents/skills/harnessOr keep it updatable with a symlink:
git clone https://github.com/namojo/codex-harness.git ~/codex-harness
ln -s ~/codex-harness/skills/harness ~/.agents/skills/harness
# update later with: git -C ~/codex-harness pullmkdir -p .agents/skills
cp -r /path/to/codex-harness/skills/harness .agents/skills/harnessAfter installing, confirm Codex can see it โ skills/harness/SKILL.md carries the frontmatter name: harness.
codex-harness/
โโโ README.md
โโโ LICENSE
โโโ skills/
โโโ harness/
โโโ SKILL.md # Main skill (12-phase, Phase 0โ11)
โโโ templates/
โ โโโ thread-brief.md # Copy-paste prompt for an Agent Thread
โ โโโ thread-report.md # Standardized handoff report
โโโ examples/
โ โโโ newsletter-thread-harness.md
โโโ references/
โโโ codex-thread-native-architecture.md # Threads as agent runtime
โโโ codex-thread-orchestration-protocol.md # board, brief, report, gates
โโโ codex-agent-patterns-thread-native.md # 6 patterns, thread-mapped
โโโ codex-orchestrator-template-thread-native.md
โโโ codex-native-surfaces.md # sandbox, config.toml, exec, MCP
โโโ codex-expertise-and-quality.md # expert judgment, query strategy, gate rubrics
โโโ codex-skill-writing-guide.md
โโโ codex-skill-testing-guide.md
In a Codex session, ask in natural language. Triggering phrases include:
Build a harness for this project
Design a thread-native orchestrator and specialist agent threads for this workflow
Convert this recurring workflow into a Codex multi-thread harness
Design an agent team / subagent workflow for <domain>
Extend the harness โ add a <role> agent / a <task> skill
Audit / repair / sync the harness (maintenance mode)
The skill runs: audit โ domain analysis โ execution-mode selection โ thread-native architecture โ agent roles โ skills โ orchestrator โ thread workspace โ AGENTS.md โ optional automation โ validation โ evolution. It reports the architecture, the files it created, validation evidence, and the copy-paste prompts you use to run the harness.
The harness picks the smallest useful runtime.
| Mode | Use when | Runtime shape |
|---|---|---|
| Single Thread | small or sequential task | one Codex Thread + skills |
| Thread-Orchestrated Team (default) | recurring, role-separated, parallel, context-heavy work | Orchestrator Thread + Agent Threads |
Hybrid Thread + codex exec |
repeatable CLI checks or independent review jobs | threads coordinate, exec automates |
| Subagent-in-Thread | host exposes subagents and the task is bounded | agent thread uses subagents internally |
| Scheduled Harness | recurring unattended read-only work | external scheduler + codex exec + _workspace/ |
Default to Thread-Orchestrated Team when the user explicitly asks for multi-agent, multi-thread, orchestrator, team, fan-out/fan-in, or harness behavior.
| Pattern | Description | Thread-native mapping |
|---|---|---|
| Pipeline | Sequential dependent tasks | phase-by-phase Threads/skills run in order |
| Fan-out/Fan-in | Parallel independent tasks | parallel Agent Threads; Orchestrator merges reports |
| Expert Pool | Context-dependent selective invocation | spawn a specialist Thread only when needed |
| Producer-Reviewer | Generation followed by quality review | separate authoring Thread from review Thread |
| Supervisor | Central agent, dynamic task distribution | Orchestrator spawns new briefs as it explores |
| Hierarchical Delegation | Top-down recursive delegation | sub-orchestrator Threads manage sub-teams |
Files generated by codex-harness (artifact bodies are written in Korean by default โ name frontmatter, code, paths, and settled technical terms stay as-is):
your-project/
โโโ AGENTS.md # routing rule, thread orchestration, safety policy, change history
โโโ .agents/
โ โโโ agents/ # durable specialist role definitions
โ โ โโโ analyst.md
โ โ โโโ builder.md
โ โ โโโ reviewer.md
โ โโโ skills/ # reusable skills (the "how")
โ โโโ <domain>-orchestrator/
โ โ โโโ SKILL.md # Orchestrator Thread skill: brief, gate, merge, evolve
โ โโโ <task>/
โ โโโ SKILL.md
โ โโโ references/
โโโ _workspace/ # file-mediated handoff state
โโโ 00_requirements.md
โโโ 01_thread_board.md
โโโ 02_thread_briefs/
โโโ 03_thread_reports/
โโโ 04_merge_inputs/
โโโ 90_decisions.md
Copy any prompt below into a Codex session after installing codex-harness:
Deep Research
Build a harness for deep research. I need an Orchestrator Thread that fans out
to specialist Agent Threads โ web search, academic sources, community sentiment โ
then cross-validates findings through a review gate and merges a cited report.
Website Development
Build a harness for full-stack website development. The team should handle
design, frontend (React/Next.js), backend (API), and QA in a coordinated
pipeline of threads, handing off through _workspace/ from wireframe to deploy.
Newsletter / Content Production
Build a thread-native harness for a weekly newsletter: research, drafting,
editing, and fact-check threads that hand off through _workspace/, with the
Orchestrator Thread gating each phase before publish.
Code Review & Refactoring
Build a harness for comprehensive code review. I want parallel Agent Threads
checking architecture, security, performance, and style, plus codex exec jobs
for independent read-only audits โ then merged into a single report.
Technical Documentation
Build a harness that generates API documentation from this codebase. Threads
should analyze endpoints, write descriptions, generate usage examples, and run
a completeness review gate before merge.
Recurring Ops / Scheduled Harness
Convert this recurring read-only check into a scheduled harness: an external
scheduler runs codex exec jobs, writes results into _workspace/, and an
Orchestrator Thread reviews the board on demand.
- Codex Threads are execution boundaries. A thread can be a durable specialist room with isolated context, role identity, and a handoff report.
- The Orchestrator is a thread. It owns decomposition, routing, phase gates, merge decisions, partial reruns, and evolution.
- File-mediated state makes threads durable.
_workspace/carries thread briefs, reports, merge inputs, and decisions across sessions. codex execis an automation spine, not the whole runtime. Use it for independent reviews, structured extraction, read-only audits, and batch checks.- Safety is enforced, not described. Each automated step's risk is bounded by sandbox/profile/hook policy. Durable roles map to
config.tomlprofiles, external tools register as MCP servers, andAGENTS.mdis used hierarchically.
| Repo | Their position | Relationship to codex-harness |
|---|---|---|
| revfactory/harness | Team-Architecture Factory on Claude Code | Same sub-layer, different runtime. codex-harness is the Codex Thread-native edition of this concept. Use harness on Claude Code, codex-harness on Codex. |
| coleam00/Archon | Deterministic runtime-configuration factory | Same L3, neighbor sub-layer. Archon for runtime determinism, codex-harness for thread-team architecture, or combine them. |
Q1. How is this different from just writing codex exec scripts?
A. A pile of codex exec scripts has no durable context, no role identity, and no handoff protocol. codex-harness treats each Codex Thread as a specialist room with its own context and a standardized handoff report, coordinated by an Orchestrator Thread through _workspace/. codex exec is still used โ as an automation spine for independent reviews, structured extraction, and read-only audits โ but it supports the threads rather than replacing them.
Q2. Is this a fork of revfactory/harness?
A. It's a Codex-native port of the concept, not a fork of the implementation. It keeps the six team-architecture patterns, the skill-generation craft, and the validate/evolve loop, but emits Codex surfaces only (AGENTS.md, .agents/, Codex Threads, codex exec, sandbox/approval policy, MCP, hooks) and adds the runtime mapping in the table above. It never produces .claude/, CLAUDE.md, or Claude-specific orchestration tools.
Q3. Do I always get a multi-thread team?
A. No. The harness picks the smallest useful runtime โ a small or sequential task gets a Single Thread. It only builds an Orchestrator + Agent Threads when there's genuine role separation, parallelism, independent review, long context, or recurrence. See the Execution Modes table.
MIT โ see LICENSE. Concept adapted from revfactory/harness.
English | ํ๊ตญ์ด
codex-harness๋ OpenAI Codex๋ฅผ ์ํ ํ ์ํคํ ์ฒ ํฉํ ๋ฆฌ์ ๋๋ค. "ํ๋ค์ค ๊ตฌ์ฑํด์ค" ๋๋ **"build a harness for this project"**๋ผ๊ณ ๋งํ๋ฉด, ์คํฌ์ด ๋๋ฉ์ธ ์ค๋ช ์ Orchestrator Thread + ์ ๋ฌธ Agent Threads์ ๊ทธ๋ค์ด ์ฌ์ฉํ ์ฌ์ฌ์ฉ ์คํฌ๋ก ๋ฐ๊ฟ ์ค๋๋ค โ 6๊ฐ์ง ์ฌ์ ์ ์๋ ํ ์ํคํ ์ฒ ํจํด ์ค์์ ์ ํํ๋ฉฐ, Codex ๋ค์ดํฐ๋ธ ํ๋ฉด์๋ง ์์ฑํฉ๋๋ค.
codex-harness๋ ๋ณต์กํ๊ณ ๋ฐ๋ณต์ ์ธ ์
๋ฌด๋ฅผ ์ ๋ฌธ ์์ด์ ํธ ํ์ผ๋ก ๋ถํดํฉ๋๋ค. ๋ค๋ง ์๋ณธ์ธ revfactory/harness๊ฐ ๊ทธ ํ์ Claude Code์ ์์ด์ ํธ ํ ๋ฐํ์์ ๋งคํํ๋ ๋ฐ๋ฉด, codex-harness๋ Codex๊ฐ ์ค์ ๋ก ๋์ํ๋ ํ๋ฉด์ธ Codex Thread์ ๋งคํํฉ๋๋ค.
Thread๋ 1๊ธ ์คํ ๋จ์๋ก ์ทจ๊ธ๋ฉ๋๋ค โ ๋
๋ฆฝ๋ ๋งฅ๋ฝ, ์ญํ ์ ์ฒด์ฑ, ํธ๋์คํ ๋ณด๊ณ ๋ฅผ ๊ฐ์ง durableํ ์ ๋ฌธ ์์
์ค์
๋๋ค. ํ๋ค์ค๋ ์ด ์ค๋ ๋๋ค, ๊ทธ ์์์ ์คํํ ์คํฌ, ๊ทธ๋ฆฌ๊ณ ์ค๋ ๋๋ผ๋ฆฌ ์์
์ ์ฃผ๊ณ ๋ฐ๊ฒ ํด ์ฃผ๋ ํ์ผ ๋งค๊ฐ ์ํ๋ฅผ ์ค์บํด๋ฉํฉ๋๋ค. ํ๋ก์ ํธ๋ฅผ ๊ฐ๋ฆฌํค๋ฉฐ "ํ๋ค์ค ๋ง๋ค์ด์ค"๋ผ๊ณ ํ๋ฉด, ๋ชจ๋ ๊ฒ์ Codex ํ๋ฉด(AGENTS.md, .agents/skills/, .agents/agents/, .codex/config.toml, Codex Threads, codex exec, ์๋๋ฐ์ค/์น์ธ ์ ์ฑ
, MCP, ์ ํ์ hooks)์๋ง ์์ฑํฉ๋๋ค. .claude/, CLAUDE.md, Claude ์ ์ฉ ์ค์ผ์คํธ๋ ์ด์
๋๊ตฌ๋ ๋ง๋ค์ง ์์ต๋๋ค.
codex-harness๋ L3 Meta-Factory ๊ณ์ธต โ ๋ค๋ฅธ ํ๋ค์ค๋ฅผ ๋ง๋ค์ด ๋ด๋ ๊ณ์ธต โ ์ ์์ต๋๋ค. L3 ์์์๋ revfactory/harness์ ๋์ผํ Team-Architecture Factory ์๋ธ ๊ณ์ธต์ ์ํ๋, ๋ฐํ์์ด ๋ค๋ฆ
๋๋ค.
| ๊ณ์ธต | ํ๋ ์ผ | ๋ฐํ์ |
|---|---|---|
| L3 โ Meta-Factory / Team-Architecture Factory (์ฐ๋ฆฌ) | ๋๋ฉ์ธ ๋ฌธ์ฅ โ Orchestrator Thread + Agent Threads + ์คํฌ, 6๊ฐ์ง ํ ํจํด | OpenAI Codex (Threads) |
| L3 โ Meta-Factory / Team-Architecture Factory | ๊ฐ์ ๊ฐ๋ , Claude ๋ค์ดํฐ๋ธ ์์ด์ ํธ ํ | revfactory/harness |
| L3 โ Meta-Factory / Runtime-Configuration Factory | ๊ฒฐ์ ๋ก ์ ์ด๊ณ ๋ฐ๋ณต ๊ฐ๋ฅํ ๋ฐํ์ ์ค์ | coleam00/Archon |
revfactory/harness๋ Claude Code ์์ด์ ํธ ํ์ ๋ง๋ญ๋๋ค. codex-harness๋ ๋์ผํ 6๊ฐ์ง ํ ์ํคํ ์ฒ(pipeline, fan-out/fan-in, expert pool, producer-reviewer, supervisor, hierarchical delegation)์ ์คํฌ์ ๋ง๋ค๋ ํ์ผ ๋งค๊ฐ ํธ๋์คํ๋ฅผ ๊ฐ์ง Codex Thread๋ก ๊ตฌํํฉ๋๋ค. ๊ฐ์ ์๋ธ ๊ณ์ธต, ๋ค๋ฅธ ๋ฐํ์. Claude Code๋ฉดrevfactory/harness, Codex๋ฉด codex-harness๋ฅผ ์ ํํ์ธ์.
- Thread-Native ํ ์ค๊ณ โ 6๊ฐ์ง ์ํคํ ์ฒ ํจํด(Pipeline, Fan-out/Fan-in, Expert Pool, Producer-Reviewer, Supervisor, Hierarchical Delegation)์ Orchestrator Thread + Agent Threads๋ก ๋งคํ.
- ์ ๋ฌธ๊ฐ ์์ค ์ญํ (generic doer ๊ธ์ง) โ ๋ชจ๋ ์์ด์ ํธ ์ญํ ์ ์ ๋ฌธ๊ฐ ํ๋จ ๊ธฐ์ค์ ๋ด์ฅํ๋ค: ์ ๋ฌธ๊ฐ ํด๋ฆฌ์คํฑ, ์์ฌ๊ฒฐ์ ๊ท์น, ์ํฐํจํด, ๋๋ฉ์ธ ํ์ง ๊ธฐ์ค์ , (๋ฆฌ์์น ์ญํ ์) ๊ฒ์ยท์ฟผ๋ฆฌ ์ ๋ต. ํ๋ค์ค๋ ๊ฒฐ๊ณผ๋ฅผ ์ข์ฐํ๋ ๊ฒฐ์ ์ง์ ์์ ๊ฐ์ ๋์ ์ฌ์ฉ์์๊ฒ ๋ฌป๋๋ค.
- ์คํฌ ์์ฑ โ Progressive Disclosure(
references/,templates/,scripts/)๋ฅผ ์ ์ฉํ ์ฌ์ฌ์ฉ ์คํฌ์ ์๋ ์์ฑํด ๋งฅ๋ฝ์ ํจ์จ์ ์ผ๋ก ๊ด๋ฆฌ. - ํ์ผ ๋งค๊ฐ ์ค์ผ์คํธ๋ ์ด์
โ
_workspace/๊ฐ thread brief, handoff report, merge input, decision์ ์ธ์ ๋๋จธ๋ก ๋ณด์กดํด ์ค๋ ๋๋ฅผ durableํ๊ฒ ๋ง๋ค๊ณ ๋ถ๋ถ ์ฌ์คํ์ ๊ฐ๋ฅํ๊ฒ ํจ. - Codex ๋ค์ดํฐ๋ธ ์์ ์ฑ โ ์ํ์ ์ฐ๋ฌธ์ด ์๋๋ผ sandbox/profile/hook ์ ์ฑ
๊ณผ
config.tomlํ๋กํ์ผ๋ก ์ ํ. - ๊ฒ์ฆ โ ํธ๋ฆฌ๊ฑฐ ๊ฒ์ฆ, ๋๋ผ์ด๋ฐ ์๋๋ฆฌ์ค, thread-board ๊ฒ์ฆ, ํตํฉ ์ ํฉ์ฑ ๊ฒ์ฆ.
Phase 0: ๊ธฐ์กด ํ๋ค์ค ์ ๊ฒ
โ
Phase 1: ๋๋ฉ์ธยท๋ฐ๋ณต ์
๋ฌด ๋ถ์ โ _workspace/00_requirements.md
โ
Phase 2: ์คํ ๋ชจ๋ ์ ํ (๊ฐ์ฅ ์์ ์ ์ฉํ ๋ฐํ์)
โ
Phase 3: ์ํคํ
์ฒ ํจํด ์ ํ (6๊ฐ์ง)
โ
Phase 4: Agent ์ญํ ์ ์ โ .agents/agents/<role>.md
โ
Phase 5: ์คํฌ ์์ฑ โ .agents/skills/<skill>/SKILL.md
โ
Phase 6: ์ค์ผ์คํธ๋ ์ดํฐ ์คํฌ ์์ฑ โ .agents/skills/<domain>-orchestrator/
โ
Phase 7: Thread workspace โ _workspace/
โ
Phase 8: AGENTS.md ํฌ์ธํฐ ์
๋ฐ์ดํธ
โ
Phase 9: ์ ํ์ Codex ์๋ํ (codex exec / hooks / MCP)
โ
Phase 10: ๊ฒ์ฆ
โ
Phase 11: ์งํ
codex-harness๋ Harness์ ๊ฐ๋
์ ์ ์งํ๋ Codex์ ํ์ํ ๋ฐํ์ ๋งคํ์ ์ ๊ณตํฉ๋๋ค. Codex์ฉ ์ต์ ํฌํ
์ "Claude ์์ด์ ํธ ํ โ codex exec ์คํฌ๋ฆฝํธ"๊ฐ ์๋๋๋ค. "Claude ์์ด์ ํธ ํ โ Codex Thread ํ + ํ์ผ ๋งค๊ฐ ํธ๋์คํ + ์ ํ์ codex exec ์๋ํ + ์ ํ์ subagents + ์ ํ์ hooks"์
๋๋ค.
| Harness ๊ฐ๋ | Claude-native ๊ตฌํ | Codex thread-native ๊ตฌํ |
|---|---|---|
| Orchestrator | ํ์ฅ/๋งค๋์ ์์ด์ ํธ | Orchestrator Thread |
| Specialist agent | .claude/agents + ํ ๋ฉ์์ง |
Agent Thread + role ํ์ผ + ์คํฌ |
| Message protocol | SendMessage / TaskCreate |
Thread brief + handoff report |
| Shared state | ํ task state | _workspace/ + thread board |
| Parallelism | Agent/team ๋ฐํ์ | ์ฌ๋ฌ Codex Thread ๋๋ codex exec ์์
|
| Review gate | Team protocol + QA agents | Orchestrator Thread์ phase gate |
| Evolution | /harness:evolve |
Harness maintenance + change history |
์คํฌ ๋ณธ์ฒด๋ skills/harness/์ ์์ต๋๋ค. Codex๊ฐ ์คํฌ์ ์ธ์ํ๋ ์์น์ ์ค์นํ์ธ์ โ ๋ชจ๋ ํ๋ก์ ํธ๋ฉด ์ ์ญ, ํน์ ํ๋ก์ ํธ๋ง์ด๋ฉด ํ๋ก์ ํธ๋ณ๋ก ์ค์นํฉ๋๋ค.
git clone https://github.com/namojo/codex-harness.git
mkdir -p ~/.agents/skills
cp -r codex-harness/skills/harness ~/.agents/skills/harness์ ๋ฐ์ดํธ๋ฅผ ์ฝ๊ฒ ์ ์งํ๋ ค๋ฉด ์ฌ๋ณผ๋ฆญ ๋งํฌ ๋ฐฉ์:
git clone https://github.com/namojo/codex-harness.git ~/codex-harness
ln -s ~/codex-harness/skills/harness ~/.agents/skills/harness
# ์ดํ ์
๋ฐ์ดํธ: git -C ~/codex-harness pullmkdir -p .agents/skills
cp -r /path/to/codex-harness/skills/harness .agents/skills/harness์ค์น ํ Codex๊ฐ ์ธ์ํ๋์ง ํ์ธํ์ธ์ โ skills/harness/SKILL.md์ frontmatter name: harness๊ฐ ์์ต๋๋ค.
codex-harness/
โโโ README.md
โโโ LICENSE
โโโ skills/
โโโ harness/
โโโ SKILL.md # ๋ฉ์ธ ์คํฌ (12๋จ๊ณ, Phase 0โ11)
โโโ templates/
โ โโโ thread-brief.md # Agent Thread์ ๋ถ์ฌ๋ฃ๋ ์ง์๋ฌธ
โ โโโ thread-report.md # ํ์ค ํธ๋์คํ ๋ณด๊ณ ์
โโโ examples/
โ โโโ newsletter-thread-harness.md
โโโ references/
โโโ codex-thread-native-architecture.md # Thread๋ฅผ agent runtime์ผ๋ก
โโโ codex-thread-orchestration-protocol.md # board, brief, report, gate
โโโ codex-agent-patterns-thread-native.md # 6ํจํด, thread ๋งคํ
โโโ codex-orchestrator-template-thread-native.md
โโโ codex-native-surfaces.md # sandbox, config.toml, exec, MCP
โโโ codex-expertise-and-quality.md # expert judgment, query strategy, gate rubrics
โโโ codex-skill-writing-guide.md
โโโ codex-skill-testing-guide.md
Codex ์ธ์ ์์ ์์ฐ์ด๋ก ์์ฒญํฉ๋๋ค. ํธ๋ฆฌ๊ฑฐ๋๋ ํํ ์์:
์ด ํ๋ก์ ํธ์ ํ๋ค์ค ๋ง๋ค์ด์ค
์ด ์ํฌํ๋ก์ฐ๋ฅผ ์ํ thread-native orchestrator์ specialist agent thread๋ฅผ ์ค๊ณํด์ค
์ด ๋ฐ๋ณต ์
๋ฌด๋ฅผ Codex multi-thread harness๋ก ๋ฐ๊ฟ์ค
<๋๋ฉ์ธ>์ ์ํ ์์ด์ ํธ ํ / ์๋ธ์์ด์ ํธ ์ํฌํ๋ก์ฐ ์ค๊ณํด์ค
ํ๋ค์ค ํ์ฅํด์ค โ <์ญํ > ์์ด์ ํธ / <์์
> ์คํฌ ์ถ๊ฐ
ํ๋ค์ค ์ ๊ฒ / ์์ / ๋๊ธฐํํด์ค (์ ์ง๋ณด์ ๋ชจ๋)
์คํฌ์ ๊ฐ์ฌ โ ๋๋ฉ์ธ ๋ถ์ โ ์คํ ๋ชจ๋ ์ ํ โ thread-native architecture โ ์์ด์ ํธ ์ญํ โ ์คํฌ โ ์ค์ผ์คํธ๋ ์ดํฐ โ thread workspace โ AGENTS.md โ ์ ํ์ ์๋ํ โ ๊ฒ์ฆ โ ์งํ ์์ผ๋ก ๋์ํฉ๋๋ค. ์ํคํ
์ฒ, ์์ฑํ ํ์ผ, ๊ฒ์ฆ ๊ทผ๊ฑฐ, ๊ทธ๋ฆฌ๊ณ ํ๋ค์ค๋ฅผ ์คํํ ๋ ๋ถ์ฌ ๋ฃ์ ํ๋กฌํํธ๋ฅผ ๋ณด๊ณ ํฉ๋๋ค.
ํ๋ค์ค๋ ๊ฐ์ฅ ์์ ์ ์ฉํ ๋ฐํ์์ ์ ํํฉ๋๋ค.
| ๋ชจ๋ | ์ธ์ ์ฐ๋ | Runtime shape |
|---|---|---|
| Single Thread | ์๊ณ ์์ฐจ์ ์ธ ์์ | ํ๋์ Codex Thread + skills |
| Thread-Orchestrated Team (๊ธฐ๋ณธ๊ฐ) | ๋ฐ๋ณต์ , ์ญํ ๋ถ๋ฆฌ, ๋ณ๋ ฌ, ๊ธด ๋งฅ๋ฝ ์์ | Orchestrator Thread + Agent Threads |
Hybrid Thread + codex exec |
๋ฐ๋ณต CLI ๊ฒ์ฌ๋ ๋ ๋ฆฝ ๋ฆฌ๋ทฐ | ์กฐ์จ์ thread, ์๋ํ๋ exec |
| Subagent-in-Thread | host๊ฐ subagent๋ฅผ ์ ๊ณตํ๊ณ ์์ ์ด bounded์ผ ๋ | agent thread ๋ด๋ถ์์ subagent ์ฌ์ฉ |
| Scheduled Harness | ๋ฐ๋ณต๋๋ unattended read-only ์์ | ์ธ๋ถ scheduler + codex exec + _workspace/ |
์ฌ์ฉ์๊ฐ multi-agent, multi-thread, orchestrator, team, fan-out/fan-in, harness๋ฅผ ๋ช ์ํ๋ฉด ๊ธฐ๋ณธ๊ฐ์ Thread-Orchestrated Team์ ๋๋ค.
| ํจํด | ์ค๋ช | Thread-native ๋งคํ |
|---|---|---|
| Pipeline | ์์ฐจ ์์กด ์์ | phase๋ณ Thread/์คํฌ์ ์์๋๋ก ์คํ |
| Fan-out/Fan-in | ๋ณ๋ ฌ ๋ ๋ฆฝ ์์ | ์ฌ๋ฌ Agent Thread ๋ณ๋ ฌ ์คํ, Orchestrator๊ฐ ๋ณด๊ณ ๋ณํฉ |
| Expert Pool | ๋งฅ๋ฝ ์์กด ์ ํ์ ํธ์ถ | ํ์ํ ๋๋ง ์ ๋ฌธ๊ฐ Thread ์์ฑ |
| Producer-Reviewer | ์์ฑ ํ ํ์ง ๋ฆฌ๋ทฐ | ์์ฑ Thread์ ๋ฆฌ๋ทฐ Thread ๋ถ๋ฆฌ |
| Supervisor | ์ค์ ์์ด์ ํธ๊ฐ ๋์ ๋ฐฐ๋ถ | Orchestrator๊ฐ ํ์ ์ค ์ brief๋ฅผ ๋์ ์์ฑ |
| Hierarchical Delegation | ํํฅ์ ์ฌ๊ท ์์ | sub-orchestrator Thread๊ฐ ํ์ ํ ๊ด๋ฆฌ |
codex-harness๊ฐ ์์ฑํ๋ ํ์ผ (์ฐ์ถ๋ฌผ ๋ณธ๋ฌธ์ ๊ธฐ๋ณธ ํ๊ตญ์ด๋ก ์์ฑ โ name frontmatter, ์ฝ๋, ๊ฒฝ๋ก, ์ ์ฐฉ๋ ๊ธฐ์ ์ฉ์ด๋ ๊ทธ๋๋ก ์ ์ง):
your-project/
โโโ AGENTS.md # ๋ผ์ฐํ
๊ท์น, ์ค๋ ๋ ์ค์ผ์คํธ๋ ์ด์
, ์์ ์ ์ฑ
, ๋ณ๊ฒฝ ์ด๋ ฅ
โโโ .agents/
โ โโโ agents/ # ์ฌ์ฌ์ฉ ๊ฐ๋ฅํ ์ ๋ฌธ ์ญํ ์ ์
โ โ โโโ analyst.md
โ โ โโโ builder.md
โ โ โโโ reviewer.md
โ โโโ skills/ # ์ฌ์ฌ์ฉ ์คํฌ ("์ด๋ป๊ฒ")
โ โโโ <domain>-orchestrator/
โ โ โโโ SKILL.md # Orchestrator Thread ์คํฌ: brief, gate, merge, evolve
โ โโโ <task>/
โ โโโ SKILL.md
โ โโโ references/
โโโ _workspace/ # ํ์ผ ๋งค๊ฐ ํธ๋์คํ ์ํ
โโโ 00_requirements.md
โโโ 01_thread_board.md
โโโ 02_thread_briefs/
โโโ 03_thread_reports/
โโโ 04_merge_inputs/
โโโ 90_decisions.md
codex-harness ์ค์น ํ Codex ์ธ์ ์ ์๋ ํ๋กฌํํธ๋ฅผ ๋ณต์ฌํด ๋ฃ์ด ๋ณด์ธ์:
์ฌ์ธต ๋ฆฌ์์น
์ฌ์ธต ๋ฆฌ์์น์ฉ ํ๋ค์ค๋ฅผ ๋ง๋ค์ด์ค. ์น ๊ฒ์, ํ์ ์๋ฃ, ์ปค๋ฎค๋ํฐ ๋ฐ์์ ๋ด๋นํ๋
Agent Thread๋ก fan-outํ๊ณ , ๋ฆฌ๋ทฐ ๊ฒ์ดํธ๋ก ๊ต์ฐจ ๊ฒ์ฆํ ๋ค ์ธ์ฉ์ด ๋ฌ๋ฆฐ ๋ณด๊ณ ์๋ฅผ
๋ณํฉํ๋ Orchestrator Thread๊ฐ ํ์ํด.
์น์ฌ์ดํธ ๊ฐ๋ฐ
ํ์คํ ์น์ฌ์ดํธ ๊ฐ๋ฐ ํ๋ค์ค๋ฅผ ๋ง๋ค์ด์ค. ๋์์ธ, ํ๋ก ํธ์๋(React/Next.js),
๋ฐฑ์๋(API), QA๋ฅผ ์ค๋ ๋ ํ์ดํ๋ผ์ธ์ผ๋ก ์กฐ์จํ๊ณ , ์์ด์ดํ๋ ์๋ถํฐ ๋ฐฐํฌ๊น์ง
_workspace/๋ฅผ ํตํด ํธ๋์คํํ๊ฒ ํด์ค.
๋ด์ค๋ ํฐ / ์ฝํ ์ธ ์ ์
์ฃผ๊ฐ ๋ด์ค๋ ํฐ์ฉ thread-native ํ๋ค์ค๋ฅผ ๋ง๋ค์ด์ค: ๋ฆฌ์์น, ์ด์, ํธ์ง, ํฉํธ์ฒดํฌ
์ค๋ ๋๊ฐ _workspace/๋ฅผ ํตํด ํธ๋์คํํ๊ณ , Orchestrator Thread๊ฐ ๋ฐํ ์ ๊ฐ phase๋ฅผ
๊ฒ์ดํธ๋ก ํต๊ณผ์ํค๊ฒ ํด์ค.
์ฝ๋ ๋ฆฌ๋ทฐ & ๋ฆฌํฉํฐ๋ง
์ข
ํฉ ์ฝ๋ ๋ฆฌ๋ทฐ ํ๋ค์ค๋ฅผ ๋ง๋ค์ด์ค. ์ํคํ
์ฒ, ๋ณด์, ์ฑ๋ฅ, ์คํ์ผ์ ์ ๊ฒํ๋ ๋ณ๋ ฌ
Agent Thread์, ๋
๋ฆฝ์ ์ธ read-only ๊ฐ์ฌ๋ฅผ ์ํ codex exec ์์
์ ๋๊ณ โ ํ๋์
๋ณด๊ณ ์๋ก ๋ณํฉํด์ค.
๊ธฐ์ ๋ฌธ์ํ
์ด ์ฝ๋๋ฒ ์ด์ค์์ API ๋ฌธ์๋ฅผ ์์ฑํ๋ ํ๋ค์ค๋ฅผ ๋ง๋ค์ด์ค. ์๋ํฌ์ธํธ ๋ถ์, ์ค๋ช
์์ฑ, ์ฌ์ฉ ์์ ์์ฑ์ ์ค๋ ๋๋ก ๋๋๊ณ , ๋ณํฉ ์ ์์ ์ฑ ๋ฆฌ๋ทฐ ๊ฒ์ดํธ๋ฅผ ๊ฑฐ์น๊ฒ ํด์ค.
๋ฐ๋ณต ์ด์ / ์ค์ผ์ค ํ๋ค์ค
์ด ๋ฐ๋ณต read-only ์ ๊ฒ์ ์ค์ผ์ค ํ๋ค์ค๋ก ๋ฐ๊ฟ์ค: ์ธ๋ถ scheduler๊ฐ codex exec
์์
์ ๋๋ ค ๊ฒฐ๊ณผ๋ฅผ _workspace/์ ์ฐ๊ณ , Orchestrator Thread๊ฐ ํ์ํ ๋ board๋ฅผ
๊ฒํ ํ๊ฒ ํด์ค.
- Codex Thread๊ฐ ์คํ ๊ฒฝ๊ณ์ ๋๋ค. ๊ฐ thread๋ ๋ ๋ฆฝ ๋งฅ๋ฝ, ์ญํ ์ ์ฒด์ฑ, handoff report๋ฅผ ๊ฐ์ง durableํ ์ ๋ฌธ ์์ ์ค์ด ๋ ์ ์์ต๋๋ค.
- ์ค์ผ์คํธ๋ ์ดํฐ๋ thread์ ๋๋ค. ์์ ๋ถํด, ๋ผ์ฐํ , phase gate, merge decision, partial rerun, evolution์ ๋งก์ต๋๋ค.
- ํ์ผ ๋งค๊ฐ ์ํ๊ฐ thread๋ฅผ durableํ๊ฒ ๋ง๋ญ๋๋ค.
_workspace/๊ฐ thread brief, report, merge input, decision์ ์ธ์ ๋๋จธ๋ก ๋ณด์กดํฉ๋๋ค. codex exec๋ ์๋ํ spine์ด์ง ์ ์ฒด ๋ฐํ์์ด ์๋๋๋ค. ๋ ๋ฆฝ ๋ฆฌ๋ทฐ, ๊ตฌ์กฐํ ์ถ์ถ, read-only audit, batch check์ ์ฌ์ฉํฉ๋๋ค.- ์์ ์ ์ค๋ช
์ด ์๋๋ผ ์ ์ฑ
์ผ๋ก ๊ฐ์ ํฉ๋๋ค. ์๋ํ ๋จ๊ณ์ ์ํ์ sandbox/profile/hook ์ ์ฑ
์ผ๋ก ์ ํํฉ๋๋ค. ์ฌ์ฌ์ฉ ์ญํ ์
config.tomlํ๋กํ์ผ์ ๋งคํํ๊ณ , ์ธ๋ถ ๋๊ตฌ๋ MCP ์๋ฒ๋ก ๋ฑ๋กํ๋ฉฐ,AGENTS.md๋ ๊ณ์ธต์ ์ผ๋ก ์ฌ์ฉํฉ๋๋ค.
| ์ ์ฅ์ | ์์น | codex-harness์์ ๊ด๊ณ |
|---|---|---|
| revfactory/harness | Claude Code์ Team-Architecture Factory | ๊ฐ์ ์๋ธ ๊ณ์ธต, ๋ค๋ฅธ ๋ฐํ์. codex-harness๋ ์ด ๊ฐ๋ ์ Codex Thread-native ์๋์ . Claude Code๋ฉด harness, Codex๋ฉด codex-harness. |
| coleam00/Archon | ๊ฒฐ์ ๋ก ์ ๋ฐํ์ ์ค์ ํฉํ ๋ฆฌ | ๊ฐ์ L3, ์ด์ ์๋ธ ๊ณ์ธต. ๋ฐํ์ ๊ฒฐ์ ๋ก ์ Archon, ์ค๋ ๋ ํ ์ํคํ ์ฒ๋ codex-harness, ๋๋ ๋์ ์กฐํฉ. |
Q1. ๊ทธ๋ฅ codex exec ์คํฌ๋ฆฝํธ๋ฅผ ์ง๋ ๊ฒ๊ณผ ๋ญ๊ฐ ๋ค๋ฅธ๊ฐ์?
A. codex exec ์คํฌ๋ฆฝํธ ๋๋ฏธ์๋ durableํ ๋งฅ๋ฝ๋, ์ญํ ์ ์ฒด์ฑ๋, ํธ๋์คํ ๊ท์ฝ๋ ์์ต๋๋ค. codex-harness๋ ๊ฐ Codex Thread๋ฅผ ๋
๋ฆฝ ๋งฅ๋ฝ๊ณผ ํ์ค handoff report๋ฅผ ๊ฐ์ง ์ ๋ฌธ ์์
์ค๋ก ์ทจ๊ธํ๊ณ , Orchestrator Thread๊ฐ _workspace/๋ฅผ ํตํด ์กฐ์จํฉ๋๋ค. codex exec๋ ์ฌ์ ํ โ ๋
๋ฆฝ ๋ฆฌ๋ทฐ, ๊ตฌ์กฐํ ์ถ์ถ, read-only audit์ ์๋ํ spine์ผ๋ก โ ์ฐ์ด์ง๋ง, ์ค๋ ๋๋ฅผ ๋์ฒดํ์ง ์๊ณ ๋ณด์กฐํฉ๋๋ค.
Q2. revfactory/harness์ ํฌํฌ์ธ๊ฐ์?
A. ๊ตฌํ์ ํฌํฌ๊ฐ ์๋๋ผ ๊ฐ๋
์ Codex ๋ค์ดํฐ๋ธ ํฌํ
์
๋๋ค. 6๊ฐ์ง ํ ์ํคํ
์ฒ ํจํด, ์คํฌ ์์ฑ craft, ๊ฒ์ฆ/์งํ ๋ฃจํ๋ฅผ ์ ์งํ๋ Codex ํ๋ฉด(AGENTS.md, .agents/, Codex Threads, codex exec, ์๋๋ฐ์ค/์น์ธ ์ ์ฑ
, MCP, hooks)์๋ง ์์ฑํ๊ณ , ์์ ๋ฐํ์ ๋งคํ์ ์ถ๊ฐํฉ๋๋ค. .claude/, CLAUDE.md, Claude ์ ์ฉ ์ค์ผ์คํธ๋ ์ด์
๋๊ตฌ๋ ์ ๋ ๋ง๋ค์ง ์์ต๋๋ค.
Q3. ํญ์ ๋ฉํฐ ์ค๋ ๋ ํ์ด ๋์ค๋์?
A. ์๋๋๋ค. ํ๋ค์ค๋ ๊ฐ์ฅ ์์ ์ ์ฉํ ๋ฐํ์์ ์ ํํฉ๋๋ค โ ์๊ฑฐ๋ ์์ฐจ์ ์ธ ์์ ์ Single Thread๋ก ์ฒ๋ฆฌํฉ๋๋ค. ์ญํ ๋ถ๋ฆฌ, ๋ณ๋ ฌ์ฑ, ๋ ๋ฆฝ ๋ฆฌ๋ทฐ, ๊ธด ๋งฅ๋ฝ, ๋ฐ๋ณต์ฑ์ด ์ค์ ๋ก ์์ ๋๋ง Orchestrator + Agent Threads๋ฅผ ๊ตฌ์ฑํฉ๋๋ค. ์คํ ๋ชจ๋ ํ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
MIT โ LICENSE ์ฐธ์กฐ. ๊ฐ๋
์ revfactory/harness์์ ์ฐจ์ฉํ์ต๋๋ค.