harness-subagent — ai-agent harness-subagent, agent-harness, madebywild, community, ai-agent, ai agent skill, ide skills, agent automation, ai-agents, harness, harness-engineering, harness-framework

v1.0.0
GitHub

About this Skill

Perfect for AI Agent Developers needing simplified configuration for Codex, Claude, and Copilot Unified AI agent configuration management for Codex, Claude, and Copilot by wild

# Core Topics

madebywild madebywild
[2]
[0]
Updated: 3/21/2026

Quality Score

Top 5%
40
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add madebywild/agent-harness/harness-subagent
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The harness-subagent skill by madebywild is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for ai-agent, ai-agents, harness.

Ideal Agent Persona

Perfect for AI Agent Developers needing simplified configuration for Codex, Claude, and Copilot

Core Value

Empowers agents to create and manage subagent entities with specialized configurations, including optional tool restrictions and model overrides, using Markdown source files and rendering them into provider-native agent configuration files

Capabilities Granted for harness-subagent

Creating subagent entities for customized AI agent workflows
Managing subagent configurations for multiple providers
Rendering subagent definitions into provider-native configuration files

! Prerequisites & Limits

  • Requires agent-harness workspace setup
  • Limited to Codex, Claude, and Copilot AI agents
Project
SKILL.md
8.2 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8
SKILL.md
Readonly

/harness-subagent

Use this skill to create and manage subagent entities in the agent-harness workspace. A subagent is a specialized agent definition — with a name, description, optional tool restrictions, and an optional model override — that harness renders into provider-native agent configuration files for every enabled provider.


What is a subagent entity?

A subagent entity is a single canonical Markdown source file under .harness/src/subagents/<subagent-id>.md. It contains:

  • Required YAML frontmatter: name and description
  • Optional frontmatter: provider-specific fields set via override sidecars (model, tools, handoffs)
  • Body: Markdown prose that becomes the agent's system prompt

Harness renders one output artifact per enabled provider from that single source file. You edit the source once; all provider files stay in sync.


Provider output mapping

Claude Code

ItemValue
Output path.claude/agents/<subagent-id>.md
FormatMarkdown with YAML frontmatter
Required frontmattername, description
Optional frontmattertools (string or string[]), model

Claude Code loads agent files from .claude/agents/ at session start. Each file's description field tells Claude when to delegate to that agent. Claude routes tasks automatically, or the user can invoke an agent explicitly with @agent-<name> or the /agents command. Supported model values: sonnet, opus, haiku, a full model ID such as claude-sonnet-4-6, or inherit (default). Subagents run in isolated context windows and cannot spawn further subagents.

Official docs: https://code.claude.com/docs/en/sub-agents

OpenAI Codex CLI

ItemValue
Output path.codex/config.toml
FormatTOML, section [agents.<subagent-id>]
Required fieldsdescription, developer_instructions (body)
Optional fieldsmodel, model_reasoning_effort, nickname_candidates

Harness writes all enabled subagents into .codex/config.toml under [agents.<id>] entries. The description drives when Codex routes to that agent role; the body becomes developer_instructions. Codex also supports standalone TOML agent files in .codex/agents/ (outside of harness management), which are auto-discovered and take precedence over same-named inline entries.

Official docs: https://developers.openai.com/codex/config-reference

GitHub Copilot

ItemValue
Output path.github/agents/<subagent-id>.agent.md
FormatMarkdown with YAML frontmatter
Required frontmatterdescription
Optional frontmattername, tools (string[]), model, handoffs, mcp-servers, target, disable-model-invocation, user-invocable

Copilot discovers agent files in .github/agents/ at the repository level. The handoffs field is Copilot-specific and is supported in VS Code agent mode: it defines routing buttons that let users switch to another agent mid-conversation, optionally with a pre-filled prompt. Note: handoffs are currently not supported by the Copilot coding agent on GitHub.com — they are silently ignored there. Example handoff entry (VS Code only):

yaml
1handoffs: 2 - label: "Start Implementation" 3 agent: implementation 4 prompt: "Now implement the plan outlined above." 5 send: true

When send: true is set, the handoff prompt submits automatically.

Official docs: https://docs.github.com/en/copilot/reference/custom-agents-configuration


Provider-specific frontmatter comparison

FieldClaude CodeCodex CLIGitHub Copilot
namerequiredvia TOML keyoptional
descriptionrequiredrequiredrequired
toolsstring or string[]string[]
modeloptionaloptionaloptional
developer_instructionsrequired (body)
handoffsoptional (VS Code only)

Provider-specific options (model, tools, handoffs) are set through override sidecar files, not in the canonical source frontmatter — see the Override sidecars section below.


Canonical source format

markdown
1--- 2name: <human-readable display name> 3description: <when this agent should be used — used by all providers> 4--- 5 6You are a [role description]. When invoked: 7 81. [Step one] 92. [Step two] 103. [Step three] 11 12Focus on [specific domain]. Do not [out-of-scope actions].

Only name and description are required in the canonical frontmatter. The body becomes the agent's system prompt for all providers.


Override sidecars

To set provider-specific options (model, tools, handoffs), create or edit the generated override YAML files:

  • .harness/src/subagents/<subagent-id>.overrides.claude.yaml
  • .harness/src/subagents/<subagent-id>.overrides.codex.yaml
  • .harness/src/subagents/<subagent-id>.overrides.copilot.yaml

Example Claude override sidecar:

yaml
1version: 1 2options: 3 model: haiku 4 tools: 5 - Read 6 - Grep 7 - Glob

Example Copilot override sidecar:

yaml
1version: 1 2options: 3 model: gpt-4o 4 tools: 5 - search 6 - fetch 7 handoffs: 8 - label: "Hand off to planner" 9 agent: planner 10 prompt: "Now create a plan based on the research above."

Harness CLI commands

bash
1# Scaffold a new subagent source file and register it in manifest.json 2npx harness add subagent <subagent-id> 3 4# Preview what files will be generated (dry run) 5npx harness plan 6 7# Write all provider artifacts from current canonical sources 8npx harness apply 9 10# Watch sources and auto-apply on changes 11npx harness watch 12 13# Remove a subagent entity and its source files 14npx harness remove subagent <subagent-id> 15 16# Remove entity but keep source files on disk 17npx harness remove subagent <subagent-id> --no-delete-source

Complete example

Source file: .harness/src/subagents/code-reviewer.md

markdown
1--- 2name: code-reviewer 3description: Expert code review specialist. Reviews code for quality, security, and maintainability. Use proactively after writing or modifying code. 4--- 5 6You are a senior code reviewer ensuring high standards of quality and security. 7 8When invoked: 91. Run git diff to see recent changes 102. Focus on modified files 113. Begin review immediately without asking for clarification 12 13Review checklist: 14- Code is clear and readable 15- Functions and variables are well-named 16- No duplicated logic 17- Proper error handling and input validation 18- No exposed secrets or API keys 19- Adequate test coverage 20- Performance considerations addressed 21 22Provide feedback organized by priority: 23- Critical issues (must fix before merging) 24- Warnings (should fix) 25- Suggestions (consider improving) 26 27Include specific examples of how to fix each issue. Do not modify files yourself.

Override sidecar for Claude (.harness/src/subagents/code-reviewer.overrides.claude.yaml):

yaml
1version: 1 2options: 3 model: sonnet 4 tools: 5 - Read 6 - Grep 7 - Glob 8 - Bash

After running npx harness apply, this produces:

  • .claude/agents/code-reviewer.md — used by Claude Code
  • An entry in .codex/config.toml under [agents.code-reviewer] — used by Codex
  • .github/agents/code-reviewer.agent.md — used by GitHub Copilot

Typical workflow

bash
1# 1. Scaffold the subagent source 2npx harness add subagent code-reviewer 3 4# 2. Edit the source file 5# .harness/src/subagents/code-reviewer.md 6 7# 3. (Optional) Edit provider-specific overrides 8# .harness/src/subagents/code-reviewer.overrides.claude.yaml 9 10# 4. Preview the plan 11npx harness plan 12 13# 5. Generate provider artifacts 14npx harness apply

Check .claude/agents/, .codex/config.toml, and .github/agents/ to verify the rendered output.


References

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is harness-subagent?

Perfect for AI Agent Developers needing simplified configuration for Codex, Claude, and Copilot Unified AI agent configuration management for Codex, Claude, and Copilot by wild

How do I install harness-subagent?

Run the command: npx killer-skills add madebywild/agent-harness/harness-subagent. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for harness-subagent?

Key use cases include: Creating subagent entities for customized AI agent workflows, Managing subagent configurations for multiple providers, Rendering subagent definitions into provider-native configuration files.

Which IDEs are compatible with harness-subagent?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for harness-subagent?

Requires agent-harness workspace setup. Limited to Codex, Claude, and Copilot AI agents.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add madebywild/agent-harness/harness-subagent. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use harness-subagent immediately in the current project.

Related Skills

Looking for an alternative to harness-subagent or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
Design

flags

Logo of vercel
vercel

The React Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
AI

antd-commit-msg

Logo of ant-design
ant-design

Generate a single-line commit message for ant-design by reading the projects git staged area and recent commit style. Use when the user asks for a commit message, says msg, commit msg, 写提交信息, or wants

97.8k
0
Design