Compress session context for handoff. Keep meaning. Cut tokens.
When to use
- Use when user asks "squash", "compress context", or "handoff summary".
- Use when target output path is known.
- Skip when user requests full narrative transcript.
Instructions/Workflows
- Define scope boundary from user request. Output: one line
scope: .... - Generate compact handoff from source context with full-path file references. Output: markdown with
Goal,Decisions,Open questions,Next actions. - Rewrite compact handoff in caveman-terse style. Output: terse markdown.
- Resolve output mode from user input. Output: one line
target_path: <path|auto-temp>. - Call
Bash scripts/squash-session.sh [target-path] [input-file]with step-3 text on stdin. Output: one linesaved: <path>on stdout. - Report final handoff and saved path to user. Output: terse markdown plus
saved:line.
Handoff document rules
- Treat user arguments as next-session focus when arguments exist. Output: one line
focus: .... - Add section
Suggested skillswith skill names and one-line reason per skill. - Reference existing PRDs, plans, ADRs, issues, commits, and diffs by path or URL.
- Redact API keys, passwords, tokens, and personally identifiable information.
- Skip duplication of content already captured in referenced artifacts.
- Keep output summary concise for fresh-agent continuation.
References
- See Example.md
- See NLTK-Setup.md
- Run
bash scripts/tests/run-tests.shto validatescripts/strip-filler.sh. - See squash-session.sh
- See strip-filler.sh
- See write-handoff.sh