A meta-framework for designing specialist subagent teams in AI coding agents. Generates agent definitions, orchestrator skills, and all runtime scaffolding from a single natural-language domain description.
| Skill | CLI | Agent Definition | Skills Path |
|---|---|---|---|
codex-harness |
OpenAI Codex CLI | .codex/agents/{name}.toml |
.agents/skills/ |
gemini-harness |
Google Gemini CLI | .gemini/agents/{name}.md |
.gemini/skills/ |
Personal (global):
git clone https://github.com/tae2089/harness.git
cp -r harness/skills/codex-harness ~/.agents/skills/Team (per-repo):
cp -r harness/skills/codex-harness .agents/skills/After installation, say "build a codex harness" in a Codex CLI session to confirm codex-harness skill auto-triggers.
First time? Check
references/usage-examples.mdfirst. 8 domain scenarios with trigger phrase mappings and a non-trigger table.
- sandbox_mode Permission Control: Every agent requires an explicit
sandbox_mode:read-only(Analyst/Architect) ·workspace-write(Coder/Reviewer/QA) ·danger-full-access(Operator/Deployer). No wildcard permissions. - Plan Mode Required: Activate with
/planorShift+Tabbefore new builds and expansions. - Main Agent as Single Broker: No direct inter-subagent communication API. All collaboration brokered via
_workspace/. - 3-Component Structure:
.codex/agents/*.toml+.agents/skills/*/SKILL.md+AGENTS.md.
/plan
build a harness for an SSO authentication project
{project}/
├── .codex/
│ └── agents/{name}.toml # Agent definition (TOML: role, sandbox_mode, model)
├── .agents/
│ └── skills/{orchestrator}/
│ ├── SKILL.md
│ └── references/schemas/
├── _workspace/
│ ├── workflow.md
│ ├── findings.md
│ ├── tasks.md
│ ├── checkpoint.json
│ └── tasks/task_{agent}_{id}.json
└── AGENTS.md
gemini skills install https://github.com/tae2089/harness.git --path skillsAfter installation, say "build a harness" in a Gemini CLI session to confirm gemini-harness skill auto-triggers.
First time? Check
references/usage-examples.mdfirst. 8 domain scenarios with trigger phrase mappings and a non-trigger table.
- Strict Tool Permission Control:
tools: ["*"]is forbidden. All agents requireask_userandactivate_skill.invoke_agentfor orchestrators/supervisors only. - Plan Mode Required: Use
enter_plan_modebefore new builds and expansions (except yolo mode). - Main Agent as Single Broker: No
SendMessage/TeamCreateAPI. All collaboration brokered via_workspace/. - 3-Component Structure:
.gemini/agents/+.gemini/skills/+GEMINI.md.
/gemini-harness build a harness for an SSO authentication project
Or trigger naturally:
| Phrase Pattern | Mode |
|---|---|
| "build/design/set up a harness", "automate {domain}" | New build |
| "add {feature} to existing harness", "add agent" | Expansion |
| "audit/inspect harness", "sync drift" | Operations/maintenance |
| "re-run/fix/improve previous result" | Operations (partial re-run) |
{project}/
├── .gemini/
│ ├── agents/{name}.md # Agent definition (role, tools, temperature)
│ └── skills/{orchestrator}/
│ ├── SKILL.md
│ └── references/schemas/
├── _workspace/
│ ├── workflow.md
│ ├── findings.md
│ ├── tasks.md
│ ├── checkpoint.json
│ └── tasks/task_{agent}_{id}.json
└── GEMINI.md
| Phase | Description |
|---|---|
| Phase 0 | Audit current state and branch by mode (new / expand / operate) |
| Phase 1 | Domain analysis and pattern matching (usage-examples.md scenario matching) |
| Phase 2 | Virtual team design + permission mapping + architecture pattern selection |
| Phase 3 | Agent definition generation |
| Phase 4 | Orchestrator skill generation |
| Phase 5 | Integration and orchestration (workflow.md · findings.md · tasks.md · checkpoint.json init) |
| Phase 6 | Validation (trigger check, Resume, Zero-Tolerance, project manifest registration) |
| Pattern | Best for |
|---|---|
| Pipeline | Sequential dependent tasks: design → implement → verify |
| Fan-out/Fan-in | Parallel independent tasks with aggregation |
| Expert Pool | Situational expert selection and invocation |
| Producer-Reviewer | Generate → quality-check loop (PASS/FIX/REDO) |
| Supervisor | Dynamic assignment via tasks.md claim |
| Hierarchical | 2-tier delegation: team lead → worker (heterogeneous domains) |
| Handoff | Dynamic routing to next specialist based on analysis result |
Stage/Step names must be deliverable-noun kebab-case (^[a-z][a-z0-9-]*$). Placeholders like main, step1, task are blocked by workflow.md schema validation.
Arbitrary skipping is absolutely forbidden. Max 2 retries (3 total) → unresolved → Blocked + user confirmation.
harness/
└── skills/
├── codex-harness/
│ ├── SKILL.md
│ └── references/
│ ├── usage-examples.md
│ ├── agent-design-patterns.md
│ ├── orchestrator-template.md
│ ├── orchestrator-procedures.md
│ ├── team-examples.md
│ ├── stage-step-guide.md
│ ├── skill-writing-guide.md
│ ├── skill-testing-guide.md
│ ├── qa-agent-guide.md
│ ├── evolution-protocol.md
│ ├── expansion-matrix.md
│ ├── schemas/
│ │ ├── models.md # ⚠️ Model ID source of truth
│ │ ├── agent-worker.template.toml
│ │ ├── agent-state-manager.template.toml
│ │ ├── agent-orchestrator.template.md
│ │ ├── task.schema.json
│ │ ├── checkpoint.schema.json
│ │ ├── workflow.template.md
│ │ ├── findings.template.md
│ │ ├── tasks.template.md
│ │ └── README.md
│ └── examples/
│ ├── full-bundle/sso-style.md
│ ├── team/01~05-*.md
│ └── step/01~05-*.md
└── gemini-harness/
├── SKILL.md
└── references/ # Same structure as codex-harness
skills/codex-harness/SKILL.md— Main skill definition + workflow + reference indexreferences/schemas/models.md—⚠️ Model ID source of truth +model_reasoning_effortselection guidereferences/schemas/agent-worker.template.toml·agent-orchestrator.template.md— Agent creation standard templates
skills/gemini-harness/SKILL.md— Main skill definition + workflow + reference indexreferences/schemas/models.md—⚠️ Model ID source of truthreferences/schemas/agent-worker.template.md·agent-orchestrator.template.md— Agent creation standard templates
references/usage-examples.md— 🚀 8 trigger phrases + mode mapping + non-trigger table + Phase matrixreferences/agent-design-patterns.md— 7 patterns detail, agent definition structure, permission mappingreferences/orchestrator-template.md— Orchestrator Step 0~5 pseudocode, checkpoint.json schemareferences/orchestrator-procedures.md— Error handling decision tree, blocked_protocol, handle_handoffreferences/team-examples.md— Pattern-based real-world case indexreferences/stage-step-guide.md— workflow.md specification, Stage/Step transition protocolreferences/skill-writing-guide.md— Skill authoring patterns, data schema standardsreferences/skill-testing-guide.md— Trigger validation, Resume testing, Zero-Tolerance verificationreferences/qa-agent-guide.md— QA agent integration consistency verificationreferences/evolution-protocol.md— Harness evolution, operations/maintenance workflowreferences/expansion-matrix.md— Phase selection matrix for existing expansionreferences/examples/full-bundle/sso-style.md— Full artifact package canonical examplereferences/examples/team/·references/examples/step/— Pattern-based and structure-based detailed examples