# Factory Harness

> Cloud Agents vs CLI, done-signals, Task-wrap. Named jobs may be a single /flow-next:flow --auto.

- Skill: `shixuuu/factory-harness` (Agent Skill)
- Install (CLI): `npx get-skill add shixuuu/factory-harness`
- Raw SKILL.md: https://api.skillmd.com/api/skills/shixuuu/factory-harness/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: Shixuuu (https://skillmd.com/u/shixuuu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/shixuuu/factory-harness

---


# Factory harness

## When
Called by factory-coordinator to launch or wait on a job.

## What
Default: Cursor Cloud Agents (done-wake). Any named CLI: Task-wrap done-signal.

| Job | Command |
| --- | --- |
| Ready build | `/flow-next:flow --auto <spec>` |
| Tick loop | `/flow-next:flow --auto --tick <spec>` |
| Land (≥5.2) | `/flow-next:flow --auto --until=merge` or factory-land |
| Attended | `/flow-next:flow` / `--explain` — never under autonomy |

CLI Task-wrap: worker stays on process until exit, writes receipt, exits; parent rides Task completion. No Shell pid waiters as primary done-signal. Prefer 5.4.0. Skip `/pilot` and guide.

## Anti-patterns
CLI without Task-wrap; nesting attended flow under autonomy; nesting any flow under Ralph.

