
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
opencode-handoff
Advanced tools
Create focused handoff prompts for continuing work in new OpenCode sessions
Create focused handoff prompts for continuing work in new sessions.
Inspired by Amp's handoff command - see their post and manual about it.
/handoff <goal> command that analyzes the conversation and generates a continuation prompt@file references so the next session starts with context loadedread_session tool for retrieving full conversation transcripts from previous sessions when the handoff summary isn't sufficientAdd to your OpenCode config (~/.config/opencode/opencode.json):
{
"plugin": ["opencode-handoff"]
}
Restart OpenCode and you're ready to go.
Optionally, pin to a specific version for stability:
{
"plugin": ["opencode-handoff@0.5.0"]
}
OpenCode fetches unpinned plugins from npm on each startup; pinned versions are cached and require a manual version bump to update.
/handoff <your goal>Example:
/handoff implement the user authentication feature we discussed
The AI analyzes the conversation, extracts key decisions and relevant files, generates a focused prompt, and creates a new session with that prompt ready to edit.
When you use /handoff, the generated prompt includes a session reference line:
Continuing work from session sess_01jxyz123. When you lack specific information you can use read_session to get it.
This gives the AI in the new session access to the read_session tool, which can fetch the full conversation transcript from the source session. If the handoff summary doesn't include something you need, just ask - the AI can look it up.
Example:
You: What were the specific error messages we saw earlier?
The AI will use read_session to retrieve details from the previous session that weren't included in the handoff summary.
Contributions are welcome! Here's how to set up for development:
git clone https://github.com/joshuadavidthomas/opencode-handoff
cd opencode-handoff
bun install
Then symlink the plugin to your OpenCode config:
mkdir -p ~/.config/opencode/plugin
ln -sf "$(pwd)/src/plugin.ts" ~/.config/opencode/plugin/handoff.ts
opencode-handoff is licensed under the MIT license. See the LICENSE file for more information.
opencode-handoff is not built by, or affiliated with, the OpenCode team.
OpenCode is ©2025 Anomaly.
FAQs
Create focused handoff prompts for continuing work in new OpenCode sessions
We found that opencode-handoff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.