Hforge Update
Preview or apply a non-destructive Harness Forge package refresh while preserving runtime state.
id: command-hforge-update kind: command title: Harness Update Command summary: Use when an agent should preview or apply a non-destructive Harness Forge package refresh while preserving gathered runtime state. status: stable owner: core applies_to:
- codex
- claude-code
- cursor
- opencode languages:
- all generated: false
Harness Update Command
Syntax
Invoke this command in runtimes that support markdown-backed command entrypoints,
for example /hforge-update followed by optional version or safety notes.
Expected workflow
- resolve command execution through
.hforge/generated/bin/hforge(.cmd|.ps1)first, barehforgesecond, andnpx @harness-forge/clilast - run
hforge update --root . --dry-run --yesfirst when the user wants a preview - run
hforge update --root . --yesorhforge upgrade --root . --yesonly when the operator wants to apply the refresh - summarize preserved runtime state, backup location, and the best post-update validation commands such as
review,doctor, oraudit
Failure behavior
- if the workspace is not initialized, recommend
/hforge-initinstead of forcing an update - do not claim gathered runtime state will be preserved unless the managed update flow is actually used