Generate a structured context handoff brief for seamless conversation continuation across sessions or AI systems
Generates a token-optimized brief for seamless conversation continuation across sessions or AI systems.
/plugin marketplace add ariaxhan/kernel-plugin/plugin install kernel@kernel-marketplaceGenerate a token-optimized brief that enables seamless conversation continuation.
Gather:
# Recent file changes
git status --short
git diff --stat
# Recent commits
git log --oneline -5
# Files created this session (if tracked)
find . -type f -mmin -60 | grep -v node_modules | grep -v .git
Use this format:
## CONTEXT HANDOFF
**Summary**: [One sentence capturing entire situation]
**Goal**: [What user is trying to achieve]
**Current state**: [Where things stand now - concrete, specific]
**Decisions made**:
- [Decision 1: choice + rationale if non-obvious]
- [Decision 2]
**Artifacts created**:
- [File/framework 1 with path]
- [File/framework 2 with path]
**Open threads**:
- [Unfinished item 1]
- [Question needing resolution]
**Next steps**:
1. [Recommended action 1 - specific, actionable]
2. [Recommended action 2]
**Context essentials**:
- [Critical background 1 - only what's needed to act]
- [Critical background 2]
**Warnings**:
- [Pitfall/failed approach to avoid]
**File paths to read**:
- [Key file 1]
- [Key file 2]
**Continuation prompt for new session**:
> [Exact text to paste - 2-3 sentences max]
> [Include: goal, current position, immediate next action]
The continuation prompt should be 2-3 sentences that:
Example:
We're building a knowledge bank architecture for KERNEL to provide baseline coding practices without token bloat. We've created 6 banks + 7 skills + 4 commands with ~560 token cost (vs 6000+ old way). Next: Review and improve baseline artifact design for better universal applicability.
Before outputting, ask:
If gaps exist, add missing context or flag as [NEEDS CLARIFICATION: ...]
Present the handoff in a code block for easy copy-paste, then ask:
/handoffWrite or update a handoff document so the next agent with fresh context can continue this work.
/handoffProperly end a swarm session - release reservations, sync state, generate continuation prompt