sw-handoff
Skill8 starsChanged 4 months agoMITView on GitHub
Use when the user runs /sw-handoff or wants to carry over context before the context reset the host offers — scores what the next session keeps, writes a structured summary and next task, and returns a load token for the next segment.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- anton-abyzov/specweavetheir own version, first seen Oct 26, 2025
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- anton-abyzov/specweave★ 178same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- llms-full.txtllms.txt
- llms.txtllms.txt
- sw-explainSkill
- sw-loadSkill
The file
Files
Session Watcher Handoff
Prepare a handoff so the next session can resume without re-reading what its first task needs, and without carrying what that task will not open.
Send no messages to subagents that are already started while the handoff is prepared, and do not wait for their reports.
The next task is the user's stated next step if the arguments give one, otherwise the line of work the user's requests are on, not a single step of it. The scores and the summary are decided by it, and prepare_handoff takes it, in one line, as next_task.
Steps
- Get turn skeleton via
get_turn_skeletonand follow theprotocolit returns. If the call fails, report that the skeleton could not be captured and stop. Once it succeeds, do steps 2–6 from its metadata and the existing context alone. Unverified facts go to Blockers / risks. - Produce turn notes following
NOTES.mdexactly. Write them inline — do not delegate to a subagent. - Submit notes via
submit_turn_noteswithsnapshot_id.invalid_notes: eachissuesentry names one section ofnotes_pathbyt. Fix those sections and submit again, at most three more times; if the last still rejects, report and stop.- Any other error: report it and stop.
Score what the next session keeps.
get_score_candidateslists the resources; the handoff keeps from each what its tier selects. Decide each by what the next task will read of it:- A: the file the task edits, the test that guards it, the artifact under discussion.
- S: a code file the task needs only some definitions of.
- R: a file the task needs only the gist of.
- A for a skill only when it guides the workflow or the task requires it.
Submit those with
apply_scoresand every other resource as N by itsothers: what the next task will not open again, the instruction files the host loads itself, such asCLAUDE.mdandAGENTS.md, and thesw-handoffandsw-loadskills. If a corrected batch is still refused, report and stop.- Write the summary following
SUMMARY.mdexactly. Redact secrets as[REDACTED]. Prepare via
prepare_handoffwithsummaryand the next task asnext_task. If it returns an error, report it to the user.To revise a handoff, rescore as needed and call
prepare_handoffwith itsload_token; report whicheverload_tokencomes back.- Report to user: "Handoff prepared. Kept
<kept_tokens>tokens. Token:<token>. Please use the context reset the host offers when ready."
Completion criterion
Done when: prepare_handoff returned a load_token, you relayed it to the user, and the user acknowledged.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

