Skip to content

Handoff

Handoff creates focused handoff prompts for continuing work in new OpenCode sessions — inspired by Amp’s handoff command.

Key features

FeatureDescription
/handoff <goal>Analyzes the conversation and generates a continuation prompt
File referencesGuides the AI to include relevant @file references so the next session starts with context loaded
Editable draftOpens a new session with the prompt as an editable draft
read_session toolRetrieves full conversation transcripts from previous sessions when the handoff summary is not sufficient

Requirements

  • OpenCode v1.2.15 or later

Installation

Add to ~/.config/opencode/opencode.json:

{
  "plugin": ["opencode-handoff"]
}

Restart OpenCode. Optionally pin to a specific version for stability ([email protected]).