@GitHub_Daily: 用 Claude Code 做复杂项目,单个 Agent 能力有限,想让多个 Agent 协作分工,但手动配置团队结构和技能文件太繁琐。 最近找到 Harness 这个 Claude Code 插件,一句话描述你的项目,它就能自动生成一整…
摘要
Harness 是一个 Claude Code 插件,能根据一句话描述自动生成多 Agent 团队架构,内置 6 种协作模式和 100 套现成配置,帮助 Claude Code 从单兵作战变为团队协作。
查看缓存全文
缓存时间: 2026/06/02 19:37
用 Claude Code 做复杂项目,单个 Agent 能力有限,想让多个 Agent 协作分工,但手动配置团队结构和技能文件太繁琐。
最近找到 Harness 这个 Claude Code 插件,一句话描述你的项目,它就能自动生成一整套 Agent 团队架构。
内置 6 种团队协作模式,比如流水线、并行处理、专家池、生产-审查等,可根据我们的需求自动选择最合适的架构方案。
GitHub:http://github.com/revfactory/harness…
生成的内容包括 Agent 定义文件和技能文件,直接放进项目的 .claude 目录就能用。
从领域分析到团队设计、再到验证测试,整个流程分六步自动完成。
官方还提供了 100 套现成的团队配置模板,覆盖深度研究、网站开发、内容创作、代码审查等场景,拿来就能直接用。
如果你想让 Claude Code 从「单兵作战」变成「团队协作」,这个插件值得试试。
revfactory/harness
Source: https://github.com/revfactory/harness
Harness — The Team-Architecture Factory for Claude Code
Harness is a team-architecture factory for Claude Code. Say “build a harness for this project” (English) or “하네스 구성해줘” (한국어) or “ハーネスを構成して” (日本語), and the plugin turns your domain description into an agent team and the skills they use — picked from six pre-defined team-architecture patterns.
Overview
Harness leverages Claude Code’s agent team system to decompose complex tasks into coordinated teams of specialized agents. Say “build a harness for this project” and it automatically generates agent definitions (.claude/agents/) and skills (.claude/skills/) tailored to your domain.
Category — Where Harness Sits
Harness lives at the L3 Meta-Factory layer of the Claude Code ecosystem — the layer that generates other harnesses rather than being one. Inside L3, we pick a specific sub-layer: Team-Architecture Factory.
| Layer | What it does | Neighbors we coexist with |
|---|---|---|
| L3 — Meta-Factory / Team-Architecture Factory (us) | Domain sentence → agent team + skills, via 6 pre-defined team patterns | — |
| L3 — Meta-Factory / Runtime-Configuration Factory | Deterministic, repeatable runtime configurations | coleam00/Archon |
| L3 — Meta-Factory / Codex Runtime Port | Same concept, Codex runtime | SaehwanPark/meta-harness |
| L2 — Cross-Harness Workflow | Standardize skills/rules/hooks across multiple harnesses | affaan-m/ECC |
Archon generates deterministic runtime configurations. Harness generates team architectures (pipeline, fan-out/fan-in, expert pool, producer-reviewer, supervisor, hierarchical delegation) plus the skills agents use. Different sub-layers of the same L3. Pick Archon for runtime determinism, Harness for team architecture, or combine them.
Star History
Key Features
- Agent Team Design — 6 architectural patterns: Pipeline, Fan-out/Fan-in, Expert Pool, Producer-Reviewer, Supervisor, and Hierarchical Delegation
- Skill Generation — Auto-generates skills with Progressive Disclosure for efficient context management
- Orchestration — Inter-agent data passing, error handling, and team coordination protocols
- Validation — Trigger verification, dry-run testing, and with-skill vs without-skill comparison tests
Workflow
Phase 1: Domain Analysis
↓
Phase 2: Team Architecture Design (Agent Teams vs Subagents)
↓
Phase 3: Agent Definition Generation (.claude/agents/)
↓
Phase 4: Skill Generation (.claude/skills/)
↓
Phase 5: Integration & Orchestration
↓
Phase 6: Validation & Testing
Installation
Via Marketplace
Add the marketplace
/plugin marketplace add revfactory/harness
Install the plugin
/plugin install harness@harness-marketplace
Direct Installation as Global Skill
# Copy the skills directory to ~/.claude/skills/harness/
cp -r skills/harness ~/.claude/skills/harness
Plugin Structure
harness/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── skills/
│ └── harness/
│ ├── SKILL.md # Main skill definition (6-Phase workflow)
│ └── references/
│ ├── agent-design-patterns.md # 6 architectural patterns
│ ├── orchestrator-template.md # Team/subagent orchestrator templates
│ ├── team-examples.md # 5 real-world team configurations
│ ├── skill-writing-guide.md # Skill authoring guide
│ ├── skill-testing-guide.md # Testing & evaluation methodology
│ └── qa-agent-guide.md # QA agent integration guide
└── README.md
Usage
Trigger in Claude Code with prompts like:
Build a harness for this project
Design an agent team for this domain
Set up a harness
Execution Modes
| Mode | Description | Recommended For |
|---|---|---|
| Agent Teams (default) | TeamCreate + SendMessage + TaskCreate | 2+ agents requiring collaboration |
| Subagents | Direct Agent tool invocation | One-off tasks, no inter-agent communication needed |
Architecture Patterns
| Pattern | Description |
|---|---|
| Pipeline | Sequential dependent tasks |
| Fan-out/Fan-in | Parallel independent tasks |
| Expert Pool | Context-dependent selective invocation |
| Producer-Reviewer | Generation followed by quality review |
| Supervisor | Central agent with dynamic task distribution |
| Hierarchical Delegation | Top-down recursive delegation |
Output
Files generated by Harness:
your-project/
├── .claude/
│ ├── agents/ # Agent definition files
│ │ ├── analyst.md
│ │ ├── builder.md
│ │ └── qa.md
│ └── skills/ # Skill files
│ ├── analyze/
│ │ └── SKILL.md
│ └── build/
│ ├── SKILL.md
│ └── references/
Use Cases — Try These Prompts
Copy any prompt below into Claude Code after installing Harness:
Deep Research
Build a harness for deep research. I need an agent team that can investigate
any topic from multiple angles — web search, academic sources, community
sentiment — then cross-validate findings and produce a comprehensive report.
Website Development
Build a harness for full-stack website development. The team should handle
design, frontend (React/Next.js), backend (API), and QA testing in a
coordinated pipeline from wireframe to deployment.
Webtoon / Comic Production
Build a harness for webtoon episode production. I need agents for story
writing, character design prompts, panel layout planning, and dialogue
editing. They should review each other's work for style consistency.
YouTube Content Planning
Build a harness for YouTube content creation. The team should research
trending topics, write scripts, optimize titles/tags for SEO, and plan
thumbnail concepts — all coordinated by a supervisor agent.
Code Review & Refactoring
Build a harness for comprehensive code review. I want parallel agents
checking architecture, security vulnerabilities, performance bottlenecks,
and code style — then merging all findings into a single report.
Technical Documentation
Build a harness that generates API documentation from this codebase.
Agents should analyze endpoints, write descriptions, generate usage
examples, and review for completeness.
Data Pipeline Design
Build a harness for designing data pipelines. I need agents for schema
design, ETL logic, data validation rules, and monitoring setup that
delegate sub-tasks hierarchically.
Marketing Campaign
Build a harness for marketing campaign creation. The team should research
the target market, write ad copy, design visual concepts, and set up
A/B test plans with iterative quality review.
Coexistence — Harness and Neighbors
Harness is not alone in the Claude Code / agent-framework ecosystem. The following repos live in adjacent layers; each is described in a parallel “X is …, Harness is …” form so you can pick the one that fits your need or combine several.
| Repo | Their position | Relationship to Harness |
|---|---|---|
| coleam00/Archon | “harness builder” — deterministic, repeatable runtime configurations | Same L3, neighbor sub-layer. Archon is a Runtime-Configuration Factory, Harness is a Team-Architecture Factory. Pick Archon for runtime determinism, Harness for team architecture, or combine them. |
| SaehwanPark/meta-harness | Codex port of the same concept | Same L3, different runtime. Use Harness on Claude Code, meta-harness on Codex. |
| affaan-m/ECC | “Agent harness performance & workflow layer” (sits on top of existing harnesses) | Different layer. ECC is a standardization layer across harnesses; Harness is a factory that generates harnesses. Serial combination possible. |
| wshobson/agents | Subagent / skill catalog (182 agents, 149 skills) | Factory ↔ parts supply. wshobson is a catalog to shop from; Harness designs the team. Absorb wshobson entries as parts inside a Harness-generated team. |
| LangGraph | State-graph orchestration, LLM-agnostic | Different track. LangGraph is for long-running, state-recoverable orchestration; Harness is for fast Claude-Code-native team design. |
Built with Harness
Harness 100
revfactory/harness-100 — 100 production-ready agent team harnesses across 10 domains, available in both English and Korean (200 packages total). Each harness ships with 4-5 specialist agents, an orchestrator skill, and domain-specific skills — all generated by this plugin. 1,808 markdown files covering content creation, software development, data/AI, business strategy, education, legal, health, and more.
Research: A/B Testing Harness Effectiveness
revfactory/claude-code-harness — A controlled experiment across 15 software engineering tasks measuring the impact of structured pre-configuration on LLM code agent output quality.
| Metric | Without Harness | With Harness | Improvement |
|---|---|---|---|
| Average Quality Score | 49.5 | 79.3 | +60% |
| Win Rate | — | — | 100% (15/15) |
| Output Variance | — | — | -32% |
Key finding: effectiveness scales with task complexity — the harder the task, the greater the improvement (+23.8 Basic, +29.6 Advanced, +36.2 Expert).
Exact phrasing to use everywhere: +60% avg quality (49.5 → 79.3), 15/15 win-rate, −32% variance (n=15, author-measured A/B, third-party replications pending).
Full paper: Hwang, M. (2026). Harness: Structured Pre-Configuration for Enhancing LLM Code Agent Output Quality.
Requirements
- Agent Teams enabled:
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
FAQ
Q1. Isn't "+60%" oversold?
A. The +60% figure comes from an author-measured A/B (n=15, 15 tasks, measured on the sister repo claude-code-harness). Every citation in this repo pairs the number with the disclosure “n=15, author-measured, third-party replications pending” in the same sentence. For adoption decisions, we recommend running a 2–4 week internal pilot and measuring your own numbers.
Evidence:
- Author A/B: revfactory/claude-code-harness
- Paper: Hwang, M. (2026). Harness: Structured Pre-Configuration for Enhancing LLM Code Agent Output Quality
Q2. Why "harness factory" and not "harness builder"? Isn't this competing with Archon?
A. Archon generates deterministic runtime configurations — it’s a Runtime-Configuration Factory. Harness generates agent team architectures (team structure, message protocols, review gates) — it’s a Team-Architecture Factory. They are neighbor sub-layers of the same L3 Meta-Factory and serve different needs. Pick Archon for runtime determinism, Harness for team-architecture patterns, or combine them (design architecture with Harness → deploy runtime with Archon).
Evidence:
- Archon self-definition: clawfit docs/reference-levels.md
- Sub-layer declaration: see the Category — Where Harness Sits section above
- Archon repo: github.com/coleam00/Archon
Q3. Isn't "Claude Code only" too narrow? What about Gemini/Codex?
A. Currently the official runtime is Claude Code only. A Codex port of the same concept — SaehwanPark/meta-harness — is already public, so Codex teams can start there. Harness chose “Claude-Code-native, deep” over “multi-runtime, shallow”; cross-runtime collaboration with sibling repos (meta-harness, harness-init, OpenRig) is on the roadmap.
Evidence:
- Codex port: github.com/SaehwanPark/meta-harness
- Cross-runtime scaffolder: github.com/Gizele1/harness-init
License
Apache 2.0
相似文章
@GoSailGlobal: 一个韩国开发者发了个 Claude Code 插件叫 Harness,已经 3.6k stars 它解决的是这个时代最被忽略的问题:"我有 Claude Code,但我不知道怎么把它组织成一个团队。" 你说一句 "build a harn…
A Korean developer released Harness, a Claude Code plugin that automatically generates agent team definitions and skills based on a single prompt. It includes six team architecture patterns and reports impressive A/B test results (60% quality improvement, n=15).
@sitinme: 一个给 Claude Code 装了一套“增强插件包”的开源项目——oh-my-claudecode,把原本单兵作战的 Claude Code,升级成更像一个有分工、有流程、有自动化能力的 AI 开发团队。 很多人用 Claude Cod…
oh-my-claudecode 是一个开源项目,为 Claude Code 提供增强插件包,将其升级为具备任务分工、自动化流程和团队协作能力的 AI 开发团队,适合重度用户和复杂项目。
@vincemask: Claude 的高级用法,在于搭建一套能够自动拆解任务、生成提示词、分配角色并审查结果的 Agent 系统。 一套高效的 Claude 工作流通常包括: 1、使用 CLAUDE.md 等文件沉淀长期项目上下文 2、让多个 Agent 分别…
介绍了Claude的高级用法,即搭建自动拆解任务、生成提示词、分配角色并审查结果的Agent系统,包括使用CLAUDE.md等文件沉淀上下文,多Agent协作构建自动化工作流。
@FakeMaidenMaker: 想真正搞懂 Claude Code 这类 AI Agent 底层怎么搭,这个开源项目从 0 手写了一个给你看 GitHub 揽获 66.5K Star,还上了 Trendshift 热榜 Agent 的智能来自模型本身,你能做的不是「造智…
一个开源项目从零教你搭建 Claude Code 的简化版,深入讲解 AI Agent 的 harness 工程,已获 66.5K Star。
@geekbb: Agent harness 自动化优化工具,接管了 Agent harness 优化的脏活,你给一个基准测试命令和目标仓库,它就自动生成提案、跑评测、记结果、留好的,弃差的,自动改进 agent 的 prompt、配置和源码。 https…
autoharness 是一个自动化代理 harness 优化工具,能基于基准测试命令自动生成提案、运行评估并改进 agent 的 prompt、配置和源码,支持 Codex 和 Claude。