Agent integrations
HAR’s runtime is agent-agnostic. Integrations teach an agent when and how to use the same repository-owned harness.
Managed workflows
Section titled “Managed workflows”HAR provides three workflows:
| Workflow | Purpose |
|---|---|
/setup-har |
Install HAR, choose a profile, initialize, adapt, prove, and commit a harness |
/har-wt |
Launch a slot, work only in its worktree, and verify the task |
/har-maintain |
inspect drift, apply maintenance updates, finalize, and re-verify |
Targets are auto-detected during init and maintain, or selected explicitly:
har agents install --claude --cursorhar agents install --codexhar agents install --agents claude,cursor,codexhar agents remove --claudeLocations differ by agent:
- Claude Code:
.claude/skills/<name>/SKILL.mdin the repository; - Cursor:
.cursor/commands/<name>.mdin the repository; - Codex:
~/.codex/prompts/globally, because Codex has no repository prompt folder.
Managed files carry a HAR header. maintain refreshes files that remain managed and
preserves files whose header was removed. --force explicitly overwrites modified
managed targets.
Cursor rule
Section titled “Cursor rule”HAR can scaffold .cursor/rules/har-workflow.mdc, which injects launch-before-edit
and verify-before-done guidance into every Cursor agent session:
har env maintain --cursor-rulehar env maintain --no-cursor-ruleAn existing rule is refreshed on maintain.
Claude Code worktree guard
Section titled “Claude Code worktree guard”Optional enforcement blocks Claude Code edit tools in the main checkout:
har hooks install --claudehar hooks uninstall --claudeThis writes a repository guard script and a PreToolUse entry in
.claude/settings.json. Edits inside HAR session worktrees pass. The
HAR_SKIP_WT_GUARD=1 bypass is intended for deliberate human use.
Any MCP client can discover HAR’s generic tools for initialization, preflight, launch, recovery, stages, verification, status, logs, completion, teardown, artifacts, runs, and Mission Control.
MCP is the preferred interface in agents because it returns structured results and persists run history without requiring the model to interpret shell output.
