Skip to content
xiv

Commands

Every xiv command, what it does, and when to reach for it. Run any command with -h for the current flags — the tables on the detail pages mirror the CLI, but the CLI is the authority.

All workflow-launching commands run against the repo you invoke them from (SMITHERS_TARGET_CWD), with runtime state in SMITHERS_HOME (default ~/.smithers). Run them from inside the target repo, not from the xiv repo.

Setup

CommandPurpose
xiv initInstall the managed workflow pack into SMITHERS_HOME and this repo's skills into your agent directories. See Getting Started.
xiv updateUpdate managed pack files (backing up local drift before overwrite) and reinstall skills. --no-skills on either for the pack alone.
xiv how-toPrint the orchestration runbook: how to drive a Linear feature to completion with xiv stack.

Single issue

CommandPurpose
xiv implementImplement a Linear issue on a dedicated branch — plan, implement, validate, review. Local only; no PR.
xiv shipEverything implement does, then open a PR and settle its CI and human review comments.

Pull requests

CommandPurpose
xiv pr reviewReview a remote PR in an isolated worktree, then interactively select findings and submit. Never merges.
xiv pr fixAddress the existing review findings on a PR once and push — no loop, nothing posted back.
xiv pr refineSettle a PR against CI and human review comments: fix what they raise and push. Never merges.

Stacked features

CommandPurpose
xiv stack initOne-time per repo: colocate jj alongside git.
xiv stack planTurn a Linear project or parent issue into an ordered stack map, or persist a resolved --plan file.
xiv stack buildBuild entries locally, bottom to top. Resumable.
xiv stack statusPrint the stack map: positions, statuses, branches, PRs.
xiv stack triageCompact next-action report for operating the stack. Start here.
xiv stack previewCheck out every repo at its stack tip to preview the whole feature.
xiv stack pushPublish the next N built entries as stacked PRs and re-sync re-flowed open PRs.
xiv stack reviewSettle the open stacked PRs against CI and human comments. Never merges.
xiv stack amendApply a change to one entry and re-flow it through its descendants.

Workflow authoring

CommandPurpose
xiv devRun a workflow straight from the repo's pack/ — the fast authoring loop, no install round-trip.
xiv checkRender a workflow's graph from the repo's pack/ without executing it.

Operations

CommandPurpose
xiv psForward to smithers ps: what's running right now.
xiv logsForward to smithers logs: run output, step progress, failures.
xiv uiForward to smithers ui: live workflow graph in the browser.
xiv inspectForward to smithers inspect: detailed state for one run.
xiv cancelForward to smithers cancel: cancel one specific run.
xiv downCancel ALL active/orphaned runs (like docker compose down).
xiv panicAlias for xiv down — the credit-burn kill switch. Kill everything now, diagnose after.

For what these commands launch under the hood, see Workflows. For how runs behave and resume, see How It Works.