How revfactory/harness works
Purpose and Runtime
Harness is a Claude Code plugin and installable global skill that converts a natural-language domain request into a tailored multi-agent team architecture and reusable skills. It targets Claude Code’s Agent Teams runtime; collaborative execution requires CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1.
Core plugin metadata and marketplace exposure are in .claude-plugin/plugin.json and .claude-plugin/marketplace.json.
Entry Points
The primary user entry point is a Claude Code prompt such as “build a harness for this project.” Claude loads the main skill at skills/harness/SKILL.md, which governs the factory workflow.
The plugin may be installed from the marketplace or copied as a global Claude skill. This repository itself is declarative Markdown/plugin content, not an independently hosted application or service.
Factory Workflow
The skill drives a six-stage control flow:
1. Analyze the target domain and requirements.
2. Select an agent-team topology or simpler subagent execution.
3. Generate .claude/agents/ definitions in the target project.
4. Generate .claude/skills/ skill packages.
5. Define orchestration, data handoffs, failure handling, and review gates.
6. Validate triggers and generated artifacts through dry-run/comparison testing.
The controlling specification is skills/harness/SKILL.md; generated output belongs to the consumer project, not this repository.
Architecture Selection Layer
Harness selects among six predefined coordination models: pipeline, fan-out/fan-in, expert pool, producer-reviewer, supervisor, and hierarchical delegation. Pattern semantics and selection guidance are centralized in skills/harness/references/agent-design-patterns.md.
This is the principal design boundary: it chooses collaboration/control topology based on task dependencies, need for parallelism, review requirements, and delegation depth rather than implementing domain work itself.
Agent and Skill Construction
Agent definitions encode specialized roles, while generated skills package role procedures using progressive disclosure: a primary SKILL.md plus optional references. Authoring conventions are supplied by skills/harness/references/skill-writing-guide.md and representative complete team structures by skills/harness/references/team-examples.md.
The output contract is Claude-native filesystem structure: .claude/agents/*.md and .claude/skills/<skill>/SKILL.md, allowing generated teams to be loaded by Claude Code.
Orchestration Boundary
For multi-agent work, generated orchestrators use Claude Code Agent Teams primitives—TeamCreate, SendMessage, and TaskCreate—to coordinate shared tasks and pass artifacts between agents. For isolated, one-off work, the factory can specify direct subagent invocation instead.
Reusable orchestration templates are in skills/harness/references/orchestrator-template.md. Claude Code is the material runtime and external dependency; Harness does not provide a separate scheduler, persistence layer, API, or hosted infrastructure.
Quality and Evolution
Validation guidance covers trigger verification, dry runs, and comparisons of behavior with versus without generated skills, defined in skills/harness/references/skill-testing-guide.md. QA-agent integration is separately defined in skills/harness/references/qa-agent-guide.md.
Project documentation is surfaced through README.md and docs/quickstart.md; the static index.html and privacy.html are ancillary public-facing pages rather than factory runtime components.
Main entry points: SKILL.md Harness workflow · marketplace.json Plugin marketplace · README.md Project docs · agent-design-patterns.md Coordination patterns
Components 20
Distribution
- Plugin marketplace · Exposes Harness for installation.
.claude-plugin/marketplace.json - Plugin manifest
.claude-plugin/plugin.json - Project docs · Quickstart and repository guidance.
README.md
Harness Factory
- Domain request · A request to build a tailored harness.
- Harness workflow · Controls the six-stage team factory workflow.
skills/harness/SKILL.md - Domain analysis
- Topology selection · Chooses team collaboration or direct subagent execution.
- Orchestration contract · Defines handoffs, failures, and review gates.
- Dry-run validation · Verifies triggers and compares generated behavior.
Design References
- Coordination patterns · Defines six team topologies and selection criteria.
skills/harness/references/agent-design-patterns.md - Skill authoring guide
skills/harness/references/skill-writing-guide.md - Team examples
skills/harness/references/team-examples.md - Orchestrator template
skills/harness/references/orchestrator-template.md - Skill testing guide
skills/harness/references/skill-testing-guide.md - QA-agent guide
skills/harness/references/qa-agent-guide.md
Consumer Project
- Agent definitions · Specialized role definitions in the target project.
- Skill packages · Role procedures with progressive disclosure in the target project.
Claude Code Runtime
- Claude Code · Loads skills and executes generated teams.
- Agent Teams primitives · TeamCreate, SendMessage, and TaskCreate coordinate multi-agent work.
- Direct subagent execution · Used for isolated one-off work.
Connections 21
- Plugin marketplace → Plugin manifest: distributes
- Project docs → Harness workflow: documents usage
- Domain request → Harness workflow: invokes
- Claude Code → Harness workflow: loads
- Harness workflow → Domain analysis: analyzes
- Domain analysis → Topology selection: informs
- Coordination patterns → Topology selection: guides
- Topology selection → Agent definitions: specifies roles
- Topology selection → Skill packages: specifies procedures
- Skill authoring guide → Skill packages: guides
- Team examples → Agent definitions: illustrates
- Topology selection → Orchestration contract: defines control flow
- Orchestrator template → Orchestration contract: templates
- Orchestration contract → Agent Teams primitives: uses for team work
- Topology selection → Direct subagent execution: chooses for isolated work
- Agent Teams primitives → Claude Code: provided by
- Agent definitions → Claude Code: loaded from consumer project
- Skill packages → Claude Code: loaded from consumer project
- Harness workflow → Dry-run validation: validates output
- Skill testing guide → Dry-run validation: guides
- QA-agent guide → Dry-run validation: adds QA integration