create-agent-harness
Create Agent Harness
Generate — or migrate — the agent harness of a repository into the modern Claude Code + Agent Skills structure. A harness is everything the model cannot do alone: orientation before acting, state that survives context resets, and computational guardrails that cannot be ignored. The skill discovers the repository, migrates any legacy harness, generates the missing artifacts and validates the result with deterministic commands.
Scope: primary
CLAUDE.mdplus.claude/. The same source also serves Devin CLI (which reads.claude/natively whenread_config_from.claudeis set). For Cursor, OpenCode, Gemini and Antigravity generate thin platform-specific directories that reference.claude/where possible. Legacy structures are migrated into.claude/and the originals removed.
Supported Platforms
| Platform | Config file | Skills dir | Hooks dir | Notes |
|---|---|---|---|---|
| Claude Code | CLAUDE.md |
.claude/skills/ |
.claude/hooks/ |
Primary target, single source of truth |
| Devin CLI | AGENTS.md |
.devin/skills/ |
.devin/hooks/ |
Reads .claude/ natively via read_config_from |
| Devin Desktop | AGENTS.md |
.devin/skills/ |
.devin/hooks/ |
Same as Devin CLI |
| OpenCode | AGENTS.md |
.opencode/skills/ |
.opencode/hooks/ |
Thin config, MCP under mcp key |
| Cursor | AGENTS.md |
.cursor/skills/ |
.cursor/hooks/ |
Thin .cursorrules migration to .claude/rules/ |
| Gemini CLI | AGENTS.md |
.gemini/skills/ |
.gemini/hooks/ |
Shared .gemini/ for IDE and CLI |
| Antigravity IDE | AGENTS.md |
.gemini/skills/ |
.gemini/hooks/ |
Same as Gemini CLI |
| Antigravity CLI (agy) | AGENTS.md |
.gemini/antigravity-cli/skills/ |
.gemini/antigravity-cli/hooks/ |
Separate from IDE |