Skip to content

Examples

Workflows that run in less than a minute. Each card copies a hwf workflow import "<bundle>" command. Paste it into a terminal. The CLI shows the YAML and any warnings, then prompts for a destination. Refer to Import a workflow.

adversarial-revise

Draft a proposal, have a second agent critique it, and revise once when the critique asks for it

adversarial-revise.yaml

branch-check

Check unstaged changes or whether an existing or new branch name is available

branch-check.yaml

handoff

Distil this session's transcript and hand it to a fresh agent

handoff.yaml

prompt-enhance

Refine a prompt in a managed pane, then copy the result to the clipboard

prompt-enhance.yaml

remote-branch-log

Pick a git remote, then one of that remote's branches, and report its recent commits

remote-branch-log.yaml

review-gate

Review the working tree diff with an agent and stop the run when the verdict is REJECT

review-gate.yaml

worktree

create, open or delete a git worktree, with an agent in its work pane

worktree.yaml

The files live in examples/.

What each one shows

ExampleShows
branch-checkRead this one first. Guarded inputs, a custom-value choice, ordered when:, and success_codes
remote-branch-logA cascading choice. The options of the second input come from the answer to the first
handoffPasses your session transcript to an agent
prompt-enhanceReads the response of an agent and uses it, and selects a clipboard command from the ones the host has
review-gateexpect: on an agent step. {{steps.review.verdict}} branches the steps after it
adversarial-reviseTwo profiles in one run. An author drafts, a critic returns a verdict, and a when: guard on one revision step
worktreeDynamic options from commands, raw herdr: worktree and tab calls, and a hidden child shared by two paths
worktree-layoutThat hidden child. A unique agent name per pane, retry: on agent.start, and a when: guard

The guide explains each pattern.