>> plugins/toolbox

stars: 9
forks: 0
watches: 9
last updated: 2026-02-24 02:03:56

Write or update a handoff document so the next agent with fresh context can continue this work.

Arguments

  • $0: base path for the handoff document (optional, defaults to project root)
    • Example: handoffs, ., docs/handoffs
  • $1: filename (optional, defaults to HANDOFF.md)
    • Example: auth.md, refactor-notes.md

Path Resolution

InputResult
/handoffHANDOFF.md
/handoff handoffshandoffs/HANDOFF.md
/handoff handoffs auth.mdhandoffs/auth.md
/handoff . auth.mdauth.md

Steps

  1. Determine the target file path:
    • If $0 is empty and $1 is empty → HANDOFF.md
    • If $0 is provided and $1 is empty → $0/HANDOFF.md
    • If $0 is . and $1 is provided → $1
    • If both $0 and $1 are provided → $0/$1
  2. If the base directory does not exist, create it
  3. Check if the target file already exists
  4. If it exists, read it first to understand prior context before updating
  5. Create or update the document with the following sections, ordered for resumption — reading top to bottom should let a fresh agent start immediately:
    • Goal: What we're trying to accomplish
    • First Action: The single most immediate thing to do when resuming — one specific action, not a list. Should be actionable without reading anything else.
    • Context: Mental state when pausing — what were you thinking, what was the plan, what "vibe" to carry into the next session
    • Current Progress: What's been done so far
    • What Worked: Approaches that succeeded
    • What Didn't Work: Approaches that failed (so they're not repeated)
    • Next Steps: Remaining action items after the first action
  6. Save to the determined path and tell the user the file path so they can start a fresh conversation with just that path
    Good AI Tools