teleport-opencode
FreeNo executable scriptsNot checkedTeleport the current OpenCode conversation into another Herdr workspace, preserving its session and closing the source pane only after verification. Use when…
by dkarter★ 130 GitHub starsAbout this skill
Teleport OpenCode
Keep this conversation; do not spawn an agent, fork, send a prompt, or use
--continue. Resume the exact session in a second terminal client.
- Require
test "${HERDR_ENV:-}" = 1; otherwise stop. Runherdr pane current --currentand save.result.pane.pane_idas source and.result.pane.agent_session.valueas session. Require agentopencode, session kindid, and a nonempty session ID; never guess it. - Resolve the absolute destination directory from the user's request. Reuse
their requested workspace's available shell pane, or create one with
herdr workspace create --cwd <directory> --label <label> --no-focus. Read.result.root_pane.pane_id; require destination != source. Never assume IDs. Do not create a worktree unless requested. Ask only if the destination is genuinely ambiguous. - Run
herdr agent start <unique-name> --kind opencode --pane <destination-pane> --timeout 5000 -- <directory> --session <session>. Even if startup times out, runherdr agent get <destination-pane>and require agentopencodewith.result.agent.agent_session.valueequal to session. Do not wait for idle: the resumed conversation is already working, so interactive-readiness detection can time out despite successful startup. On missing identity, inspect the destination; never launch a duplicate client blindly. - Call OpenCode's
session_movetool withdirectory: <directory>(omitsessionIDto move this conversation). Require success and the same session ID and destination directory in its result. - Focus the destination with
herdr agent focus <destination-pane>; only on success close the saved source:herdr pane close <source>. Never use--currentfor cleanup; caller context can change during the move.
Target three execution calls: (1) one shell call to capture/parse source and
session, create/reuse the destination, start, and verify; (2) session_move;
(3) focus && close. Print useful IDs and preserve startup errors; do not let a
startup timeout skip identity verification. Avoid sleep/poll loops. Load
herdr/opencode only for missing syntax or recovery.
On any verification failure, preserve the source pane and report the blocker.
Install teleport-opencode in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the teleport-opencode skill do?
Teleport the current OpenCode conversation into another Herdr workspace, preserving its session and closing the source pane only after verification. Use when asked to teleport or relocate an OpenCode session to a new or existing Herdr workspace or directory. Requires HERDR_ENV=1.
How do I install the teleport-opencode skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the teleport-opencode skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic