handoff

handoff is a command for Claude Code from cdalar/onctl. It costs 15 tokens per session (427 once invoked), scanned C, original, Apache-2.0.

A command that moves the current coding session into an isolated virtual machine while keeping the conversation.

In plain words
What is it for?
Use it when you need to continue the session with commands running remotely.
Why use it?
It lets work continue in the box without starting a new conversation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Good fit Use it when you need to continue the session with commands running remotely.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cdalar/onctl/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.

Clone the repo
git clone --depth 1 https://github.com/cdalar/onctl

Made for: Claude Code.

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 handoff

README.md
[![agentmods](https://agentmods.dev/badge/commands/cdalar/onctl/handoff/github.svg)](https://agentmods.dev/commands/cdalar/onctl/handoff)
Your own site
<a href="https://agentmods.dev/commands/cdalar/onctl/handoff"><img src="https://agentmods.dev/badge/commands/cdalar/onctl/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 handoff

Your own site · 80×15
<a href="https://agentmods.dev/commands/cdalar/onctl/handoff"><img src="https://agentmods.dev/badge/commands/cdalar/onctl/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 427 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00015 $0.00427
Opus 5.5 $0.00006 $0.00171
Sonnet 5.5 $0.00003 $0.00085
Haiku 4.5 $0.00002 $0.00043

Measured today against content hash cdf9d04e6e9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

handoff scanned grade C with 2 findings 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 today.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

too old: tell the user to update it (`curl -fsSL https://onctl.sh/get.sh | bash`).

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

too old: tell the user to update it (`curl -fsSL https://onctl.sh/get.sh | bash`).
claude-plugin/commands/handoff.md · 38 lines

What it actually says

Hand this Claude Code session over to a box: onctl claude copies the project to the project's box (the first time), copies this conversation there, and starts Claude on the box resuming it. From then on the work happens on the box, not here.

Run this command, with a timeout of 600000 ms (creating a box and installing Claude on it can take a few minutes). If the user gave a note -- here it is: $ARGUMENTS -- append --prompt and the note as one shell-quoted argument; it becomes the first message on the box. Leave everything else exactly as written: the command must start with onctl, so it runs here even while remote bash is on.

onctl claude --project "${CLAUDE_PROJECT_DIR}" --handoff "${CLAUDE_SESSION_ID}" --detach

Then tell the user, briefly:

  • To continue, run onctl claude in a terminal in this project (it attaches to Claude on the box; the first time, log in there with /login). Its output names the box.
  • This session should stop here. Edits made locally from now on don't reach the box -- the box has its own copy. Results come back as commits: Claude pushes from the box, or onctl claude fetch brings the box's branches and uncommitted work back as box/*.

If it fails with "unknown command" or "unknown flag: --handoff", onctl is too old: tell the user to update it (curl -fsSL https://onctl.sh/get.sh | bash). If it fails because onctl isn't logged in to boxes, tell them to run ! onctl login. Do not retry with other flags.

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. today Changed scan A → C cdf9d04e6e9c
  2. 2mo ago First seen · 38 lines · 15 tokens per session scan A fc4f5652c620

Subscribe to this mod's changes

handoff is a command published in the GitHub repository cdalar/onctl (49 stars, last pushed today), licensed Apache-2.0. It adds 15 tokens to every session and 427 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-06.

Related

handoff compared with commands from other repositories

handoff next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handoffcdalar/onctlCommand49todayApache-2.0C15Claude Code
fast-deployGoldziher/ai-rulezCommand183todayMITA2Claude Code
wasm-splitgetsentry/toolkitCommand985yesterdaynoneA0Claude Code
environments-scanapp-vitals/shipwrightCommand17todayMITA70Claude Code
coolify-check-deploymentalifanov/darkflowCommand4yesterdayMITA22Claude Code
healthfatihkan/badiCommand82mo agoMITA0Claude Code
dns-auditfatihkan/badiCommand82mo agoMITA0Claude Code