Quick start
1. Onboard
Section titled “1. Onboard”From your project root:
har onboardThe wizard starts with a Docker check — Docker is required for Mission Control and containerized harness infrastructure, so a missing CLI or stopped daemon is reported before anything else (see Installation).
The guided wizard walks through how HAR works, then lets you:
- choose agent telemetry (
on/on-no-prompts/off) - start Mission Control
- pick optional plugins (for example Playwright)
- set how many agents may run in parallel (
--agent-slots, or an interactive prompt) - scaffold
.har/for a profile (default,cli, orios)
It finishes by writing .har/ADAPT-PROMPT.md and offering to copy that prompt
to the clipboard so you can paste it into your coding agent.
Non-interactive defaults:
har onboard --yes --profile cli --no-control --no-pluginsThe default profile targets web applications. Use --profile cli for libraries
and command-line tools or --profile ios for an Xcode project.
Adapt the scaffold with your coding agent using the printed prompt (also saved to
.har/ADAPT-PROMPT.md). Review and commit .har/, AGENTS.md, and any generated
agent workflows.
User-level defaults (Cursor rules, agent skills, commit gate) live in
~/.har/preferences.json (har preferences configure). Explicit flags still win.
2. Check readiness
Section titled “2. Check readiness”har env preflight 1har env statusPreflight checks occupied slots, ports, foreign PM2 processes, and Docker conflicts before a launch changes anything.
3. Launch a fresh session
Section titled “3. Launch a fresh session”har env launch 1Launch prints a workDir. Make every application edit under that directory.
The main checkout is not the session workspace.
Each launch creates a fresh branch and worktree by default. An occupied slot
always blocks a new launch — free it with har env complete <id> or
teardown <id>, then launch again. Commit or discard uncommitted work in the
worktree first. See Agent workflow for occupied
and failed slots.
4. Verify
Section titled “4. Verify”har env verify 1har env verify 1 --fullQuick verification is the fast feedback loop. Full verification is the completion gate and may include unit tests, lint, readiness checks, browser E2E, and any project-defined validation stages.
5. Complete and hand off
Section titled “5. Complete and hand off”Commit the verified changes in the session worktree. Agents should present a session handoff and wait for approval before finishing. Then:
har env complete 1complete reuses the last passing full validation for the current tree, removes
the runtime and worktree, and keeps the session branch for a pull request. Pass
--verify if the tree may have changed since that verify.
If you only need cleanup, use har env teardown 1. It also keeps the branch unless
you explicitly pass --delete-branch.
Without a global CLI
Section titled “Without a global CLI”npx @osfactory/har env setup-infranpx @osfactory/har env launch 1npx @osfactory/har env verify 1 --fullnpx @osfactory/har env teardown 1CLI and MCP write the same .har/runs/ records, validations, and telemetry.
