harness_init
Create a missing harness manifest from a template and inject a loom-managed block into a target file if needed. Re-runnable and skip-exists by default.
Instructions
Scaffold a harness manifest at /harnesses/.md from the template (see stack spec v1 §4.7). Call this when identity() reports a missing manifest for the current harness. Idempotent: skip-exists by default; overwrite: true replaces.
When target is supplied, also writes a loom-managed block (bounded by markers with an embedded line) into that file — typically the project CLAUDE.md. Re-runnable: the block is left unchanged when already present and intact ("no-change"), reinstalled when missing or corrupted ("created" / "updated"). Pass an absolute path or a path relative to the current working directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Harness name (e.g. "claude-code", "codex", "gemini-cli") | |
| target | No | Path to the dotfile to inject the managed loom block into (e.g. an absolute path to CLAUDE.md / AGENTS.md / GEMINI.md). When omitted only the harness manifest is scaffolded. | |
| overwrite | No | Replace existing manifest (default: false) |