>> 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
- Example:
$1: filename (optional, defaults toHANDOFF.md)- Example:
auth.md,refactor-notes.md
- Example:
Path Resolution
| Input | Result |
|---|---|
/handoff | HANDOFF.md |
/handoff handoffs | handoffs/HANDOFF.md |
/handoff handoffs auth.md | handoffs/auth.md |
/handoff . auth.md | auth.md |
Steps
- Determine the target file path:
- If
$0is empty and$1is empty →HANDOFF.md - If
$0is provided and$1is empty →$0/HANDOFF.md - If
$0is.and$1is provided →$1 - If both
$0and$1are provided →$0/$1
- If
- If the base directory does not exist, create it
- Check if the target file already exists
- If it exists, read it first to understand prior context before updating
- Create or update the document with:
- Goal: What we're trying to accomplish
- 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: Clear action items for continuing
- Save to the determined path and tell the user the file path so they can start a fresh conversation with just that path
