Write a handoff document summarising the current conversation so a fresh agent can continue the work. Save it to a path produced by mktemp using the rules below.
Prefer project-local handoffs:
- If inside a git repo, use the repo root as the project root.
- Create
.state/handoffs/under that root if needed. - Create the file with
mktemp .state/handoffs/handoff-XXXXXX.mdfrom the project root. - Read the created file before writing to it.
- If no git repo root is available, fall back
[Description truncada. Veja o README completo no GitHub.]