handoff Command
What It’s For
Section titled “What It’s For”Generate a non-mutating handoff report when coordinated Arashi work needs to pause, move to another agent, request review, or leave a dirty workspace with clear next steps.
arashi handoff combines Arashi’s current per-repository status with context you provide: related links, validation evidence, remaining work, risks, blockers, and suggested next commands.
arashi handoff [options]Markdown is the default human output. Use --json when an agent, script, or editor integration needs a structured report.
Options
Section titled “Options”--jsonemit one machine-readable JSON envelope instead of Markdown.--markdownexplicitly request Markdown output. Markdown is already the default.--link <link>add a related issue, PR, spec, or reference link. Repeat for multiple links.--validation <entry>add validation evidence such as a command and result. Repeat for multiple entries.--todo <item>add remaining work as a checklist item. Repeat for multiple items.--risk <item>add a known risk or blocker. Repeat for multiple items.--next-command <command>add a suggested next command. Repeat for multiple commands. These commands are listed only;handoffdoes not execute them.
Examples
Section titled “Examples”# create a quick Markdown report for chat or a PR commentarashi handoff --link https://github.com/corwinm/arashi-arashi/issues/186
# include validation evidence and remaining workarashi handoff \ --link https://github.com/corwinm/arashi/pull/123 \ --validation "bun run test — passed" \ --validation "bun run build — passed" \ --todo "watch CI" \ --risk "Windows matrix has not finished yet" \ --next-command "gh pr checks 123 --repo corwinm/arashi"
# produce a structured handoff report for automationarashi handoff --json --link https://github.com/corwinm/arashi-arashi/issues/186Output And Exit Behavior
Section titled “Output And Exit Behavior”The Markdown report includes:
- workspace path and branch
- current repository context when run from a child repo
- per-repository status derived from Arashi workspace inspection
- repositories needing attention, including dirty repositories and repository errors
- supplied related links, validation evidence, remaining work, risks or blockers, and suggested next commands
arashi handoff is read-only. It does not stage files, commit, push, delete worktrees, write report files by default, or run validation commands for you. Validation entries are evidence that you supply; they are not proof that Arashi re-ran those commands.
The command exits non-zero when workspace resolution fails or repository status collection reports repository errors. Dirty repositories are reported in the handoff but do not make the command fail by themselves.
JSON Mode
Section titled “JSON Mode”Use --json when automation needs stable handoff data without scraping Markdown. JSON mode writes exactly one JSON document to stdout using the standard Arashi envelope.
On success, data includes:
workspace: workspace path and branchcurrentRepository: the managed repository containing the current directory, when detectedrepositories: per-repository branch, file status, warning, and clean/dirty/error statesummary: clean, dirty/error, total, and touched countscontext: supplied links, validations, todos, risks, and next commandsgeneratedNextCommands: conservative follow-up commands such asarashi status
If the command runs outside a workspace, JSON mode returns ok: false with error.code: "NOT_IN_WORKSPACE".
Handoff Guidance
Section titled “Handoff Guidance”Create a handoff report before you:
- pause non-trivial coordinated work
- switch from one agent or human to another
- request review while local context still matters
- leave dirty repositories for a future session
- need to show exactly which validations were run and what remains
For implementation work, run the relevant validations first, then pass the commands and outcomes with --validation. If a check is pending or unverified, put that in --risk or --todo rather than implying the work is ready.
Related
Section titled “Related”- status for focused repository state inspection.
- exec for repeated validation across selected repositories.
- Agents workflow for multi-repo agent guidance.