terminal-handoff

terminal-handoff is a skill for Claude Code from haiggoh/run-to-completion. It costs 164 tokens per session (1,156 once invoked), scanned B, original, MIT.

A handoff tool for tasks that an automated shell cannot complete, such as password prompts, interactive logins, or programs requiring a real terminal window. It opens the terminal task for a person and can check whether it finished successfully.

In plain words
What is it for?
It is for running commands with human assistance and starting a new interactive coding-agent session, with reported outcomes such as verified, timed out, or exited early.
Why use it?
It avoids failed automation when a human must enter credentials, choose an option, or respond to an interactive program.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the run-to-completion plugin — 9 skills shipped together

Good fit It is for running commands with human assistance and starting a new interactive coding-agent session, with reported outcomes such as verified, timed out, or exited early.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/haiggoh/run-to-completion/terminal-handoff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add haiggoh/run-to-completion --skill terminal-handoff
Clone the repo
git clone --depth 1 https://github.com/haiggoh/run-to-completion

Made for: Claude Code.

Or install run-to-completion, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for terminal-handoff

README.md
[![agentmods](https://agentmods.dev/badge/skills/haiggoh/run-to-completion/terminal-handoff/github.svg)](https://agentmods.dev/skills/haiggoh/run-to-completion/terminal-handoff)
Your own site
<a href="https://agentmods.dev/skills/haiggoh/run-to-completion/terminal-handoff"><img src="https://agentmods.dev/badge/skills/haiggoh/run-to-completion/terminal-handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for terminal-handoff

Your own site · 80×15
<a href="https://agentmods.dev/skills/haiggoh/run-to-completion/terminal-handoff"><img src="https://agentmods.dev/badge/skills/haiggoh/run-to-completion/terminal-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,156 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00164 $0.01156
Opus 5.5 $0.00066 $0.00462
Sonnet 5.5 $0.00033 $0.00231
Haiku 4.5 $0.00016 $0.00116

Measured 3d ago against content hash 0dbf7be9bb8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

terminal-handoff scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

description: 'Use whenever a step needs a human at a REAL terminal, which the agent''s shell tool does not have: a sudo or other password prompt ("a terminal is required"), an interactive login or key picker (gh auth log
portable/skills/terminal-handoff/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

terminal-handoff — hand a step to a real window, get a verified verdict back

The agent's shell has no TTY and no screen. Two commands on PATH close that gap: each opens a REAL Terminal.app window and reports a checked verdict, so the agent neither fails on a prompt nor asks the user to retype a line and report back.

run-in-terminal — any command that needs a human at a terminal

run-in-terminal --command "<cmd>" --verify '<shell test that passes only once it worked>' \
                --label "<what this does>" [--timeout S]
  • Always pass --verify when the outcome is checkable. With it, an already-true state prints ALREADY_SATISFIED and opens no window, so the user is never interrupted needlessly.
  • Verdicts: VERIFIED after Ns (exit 0) · NOT_VERIFIED (timed out, exit 1 — the user may have walked away; say so) · EXITED_EARLY + the window's last lines with tokens masked (exit 1) · OPENED (no --verify: it only proves the window is running).
  • Tell the user, in your reply, what the window is waiting for (their password, a login).

launch-claude-session — a new interactive Claude session, proven started

launch-claude-session [--prompt "<first message>"] [--cwd DIR] [--lean] [-- <claude flags>]
launch-claude-session --route-info      # what route would be used, launches nothing

The route is LEARNED from how the calling session was launched, never configured by name:

--route What the window runs When
auto (default) inside a session: inherit its credentials; on a normal Anthropic login, plain claude with nothing copied; outside any session: the shell's own route variables if set, else the learned launcher, else the login almost always
inherit plain claude with the caller's route variables (0600 env file, deleted on read) force the same key
launcher the program that started this session (e.g. a gateway CLI), which picks its own key the user asks for the launcher's own key choice
login plain claude on the normal login the user asks for their own login

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 73 lines · 164 tokens per session scan B 0dbf7be9bb8e

Subscribe to this mod's changes

terminal-handoff is a skill published in the GitHub repository haiggoh/run-to-completion (1 stars, last pushed 2d ago), licensed MIT. It adds 164 tokens to every session and 1,156 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

terminal-handoff compared with skills from other repositories

terminal-handoff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
terminal-handoffhaiggoh/run-to-completionSkill12d agoMITB164Claude Code
build-workflowneurawork-git/n8n-autopilotSkill1827d agoMITA85Claude Code
scout-briefingRaven-Scout/ScoutSkill20todayMITA40Claude Code
scout-consolidationRaven-Scout/ScoutSkill20todayMITA36Claude Code
scout-respondRaven-Scout/ScoutSkill20todayMITA24Claude Code
scout-dreamRaven-Scout/ScoutSkill20todayMITA29Claude Code
collaborationhesreallyhim/really-claude-codeSkill204mo agononeA48Claude Code