handoff
Hand the work discussed in this session (every message the user wrote, your replies in summary, where the code is) to another person, by email or straight to their ConnectOnion agent, after removing secrets and getting the user's approval of the exact text; and receive one from a pasted prompt that carries a `coh1.` or `coh2.` code (`co handoff accept`). Use for "hand this to Bob", "hand off", "pass this task to Bob", "give this to Bob's Codex", "交给 Bob", "转给 Bob", "send Bob the context", or when a message says it is a handoff.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
ConnectOnion
The agent CLI harness. CLI is all you need.
One command line, co, gives your AI agent the accounts and tools it works with:
Gmail and Outlook, a logged-in browser, your files, chat apps and other agents.
co rem enables decentralized context flow: connect the context in your
work, keep it on your machine, and carry it into the next task.
// HOW IT'S BUILT
// FILES
2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
connectonion/useful_skills/handoff/SKILL.md7.9 KBupstream ↗
--- name: handoff description: Hand the work discussed in this session (every message the user wrote, your replies in summary, where the code is) to another person, by email or straight to their ConnectOnion agent, after removing secrets and getting the user's approval of the exact text; and receive one from a pasted prompt that carries a `coh1.` or `coh2.` code (`co handoff accept`). Use for "hand this to Bob", "hand off", "pass this task to Bob", "give this to Bob's Codex", "交给 Bob", "转给 Bob", "send Bob the context", or when a message says it is a handoff. --- # Handoff You are the agent that already holds the context: the user discussed this work with you. A handoff is one message to another person's agent: every message the user wrote in this session, word for word, your replies in summary, and where the code is. Anything missing, their agent asks next, and you answer. `co handoff` (experimental) does the preparing, the secret check, the preview, the sending and the receiving. **Always read its output, not just the exit code**; every command ends with a `Next:` line. Route first: | Situation | Go to | |---|---| | The user wants to hand work to someone | 1 Recipient → 2 Prepare → 3 Audit → 4 Approve → 5a Send | | You know the recipient's full agent address and their agent accepts you | 5b Send to their agent | | A handoff prompt was pasted here, or a handoff arrived by email or agent message | 6 Receive | | The user asks whether a handoff was accepted, or about its questions | `co handoff status <id>` (`--wait` in the background returns on news) | ## 1. Find the recipient `co handoff send <who>` takes a saved name, an email, or a full `0x` address. - **Saved name:** `co handoff contact <name> <email-or-0x-address>` saves it once. An unknown name exits 1 and prints that line; ask the user for the address. - **Name to email:** `co rem show "Bob Lee"` prints the person's page; Email is in Facts. If it lists several people, show them to the user and let the user choose. Never pick one. - **Agent address:** the full address is `0x` plus 64 hex characters. - Use one that the user gave you, or one the recipient sent back after an earlier handoff. `co handoff` delivers to that agent's mailbox, `0x` + the first 10 hex characters `@mail.openonion.ai`. - There is no lookup from a name or email to an agent address yet. ## 2. Prepare the handoff From the directory of this session: ```bash co handoff send <who> "<what to hand off, in the user's words>" ``` It reads this whole session, across compactions (Codex: `$CODEX_THREAD_ID`; Claude Code: `$CLAUDE_CODE_SESSION_ID`; otherwise the newest session whose working directory is here), summarises your replies with the model, and prints the message as it will go: ```markdown # Handoff: <task in one line> From: <sender> · To: <recipient> · <date> · <handoff id> ## Task ## Where it stands ## Decided ## Rejected ## Open questions ## Code - Up to three repositories this session worked in: remote, branch, commit (pushed or not). ## Issues and PRs mentioned - #N: its title, from gh output this session already read. ## Conversation [1] <sender>: <the user's message, word for word> AI, in summary: <what you said or did in reply> ``` Your own replies, tool output and the session file stay on this machine. - The session also covered other work: `--since <N>` starts at message `[N]` of the preview. - Another session: `--session <thread id, session id or .jsonl path>`. - No session (a plain terminal): write notes to a file, `--from-file notes.md`. - Push the branch first if the recipient needs the code: the preview says "not pushed yet" otherwise. ## 3. Audit before anything leaves this machine `co handoff send` refuses (exit 1) a handoff containing anything credential-shaped (`sk-`, `AKIA`, `ghp_`, `xox`, private key blocks, JWTs, `PASSWORD=…`, ConnectOnion invite codes) or any value of a KEY / TOKEN / SECRET / PASSWORD / INVITE variable in your environment. It lists private paths (`/Users/<name>/…`, `~/.codex/…`), email addresses, phone numbers and IP addresses above the draft line. Still read the preview line by line and remove: | Remove | Examples | |---|---| | Credentials | API keys, tokens, passwords, private keys, seed phrases, `.env` values, invite codes, cookies | | Private paths and hosts | `/Users/<name>/…`, `~/.claude/…`, `~/.codex/…`, internal hostnames and IPs, SSH commands with keys | | Other people's data | other clients' names and figures, phone numbers, addresses, bank details, anything marked sensitive | | Personal matters | anything about the user's life that is not this task | Edit with `co handoff send <who> --draft <id> --edit`, or edit the draft JSON the preview names. Never work around a refusal. ## 4. Get the user's approval of the exact text Show the user, in one message: - the recipient; - the channel (email to `<address>`, or agent `0x…`); - the full preview as it will be sent. Every message the user typed in this session goes, so in a session that also covered other work, point out what is not about this task and offer to remove it (`--edit`). Send only after the user approves that exact text. **Your own `--yes` is not their approval.** If either of you edits it, show it again. No answer means not sent. A grant for "this person" does not cover a different recipient or a broader brief; a draft is bound to the recipient it was prepared for. ## 5a. Send by email ```bash co handoff send <who> --draft <id> --yes ``` This sends exactly the previewed draft (same content hash) from your agent's address. The mail is one block headed "Paste this into Codex or Claude Code": the brief inline, and steps for the recipient's agent (install co if missing, `co handoff accept <code> --brief HANDOFF.md`, continue only with their person's go-ahead, `co handoff ask <code> "…"` for questions). `send` prints the same block, so the user can also pass it on by chat. The recipient never needs an id, an inbox or a saved file. The `coh2.…` code in it is handoff-scoped: it lets one agent accept this one handoff and ask about it. It is not an invite and grants nothing on your agent. 🔴 **Never put an invite code in a handoff email.** An agent's invite code makes whoever presents it a *contact*, and a contact may run commands on the host (EXEC). An email can be forwarded, so the code would reach people the user never chose. `co handoff` refuses one. When the recipient replies with an agent address: 1. tell the user; 2. after the user confirms it is that person, run `co trust add <0xaddress>`. Tell the user it went, and run `co handoff status <id> --wait` in the background: it returns when their agent accepts or asks. `co handoff status <id>` shows "Accepted by …" once their agent accepts, and their questions; `co ai` also prints both while it runs. Each question is answered automatically by the sender's agent with a copy of the session (credentials removed), so you do not answer it yourself. If the user wants to add something, send it with `co handoff answer <id> "<their answer>"`. The mail service's own record of the send is in `co email sent`. A recipient without an agent replies by plain email; answer them with `co email send` only after the user approves the text. ## 5b. Send to their agent `co handoff` does not send over a direct agent connection yet. Requires the recipient's full address and their agent accepting you. Use the installed SDK, which also falls back to the relay: ```python from connectonion import connect remote = connect("0x<recipient>") reply = remote.input("""Handoff from <user's name>. This is a brief for your owner to accept or decline; do not act on it until they accept. <brief>""", timeout=300) print(reply.text) ``` If their agent refuses you as a stranger, the recipient has to let you in (`co trust add <your address>`) or send you an invite code privately. Fall back to email until they do. ## 6. Receive a handoff A handoff is shared texREADME.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/openonion-connectonion-connectonion-useful-skills-handoff.md