Skip to content
Skills Library
AI & agents · Automation

agents:handoff

/agents:handoff

Hand the current conversation off to a fresh background agent that picks up the work immediately, so you can step away and track it independently. Use when the user wants to background the current work, keep going without them, continue in a separate session, or says "hand this off", "run this in the background", "keep working on this while I'm gone", or "spin up an agent to finish this".

Repository
claude ↗
Licence
MIT
Last repository change
23.10.2026

Assessment and security

90/ 100Class: good
Format15 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Hand the current conversation off to a fresh background agent that picks up the work immediately, so you can step away and track it independently. Use when the user wants to background the current work, keep going without them, continue in a separate session, or says "hand this off", "run this in the background", "keep working on this while I'm gone", or "spin up an agent to finish this".

Triggers from the description

hand this offrun this in the backgroundkeep working on this while I, or

Arguments

/agents:handoff [what the next session should focus on]
Original author description

Hand the current conversation off to a fresh background agent that picks up the work immediately, so you can step away and track it independently. Use when the user wants to background the current work, keep going without them, continue in a separate session, or says "hand this off", "run this in the background", "keep working on this while I'm gone", or "spin up an agent to finish this".

How it works

  1. Write the Summary
  2. Redact
  3. Size the Run
  4. Launch
  5. Track and Interact
Original SKILL.md headings · 64 lines, 786 words
SKILL.md preview
---
name: agents:handoff
description: Hand the current conversation off to a fresh background agent that picks up the work immediately, so you can step away and track it independently. Use when the user wants to background the current work, keep going without them, continue in a separate session, or says "hand this off", "run this in the background", "keep working on this while I'm gone", or "spin up an agent to finish this".
argument-hint: "[what the next session should focus on]"
disable-model-invocation: true
allowed-tools:
  - Bash(claude --bg:*)
  - Bash(claude agents:*)
  - Read
  - Grep
  - Glob
---

# Handoff

Hand the current work to a fresh background agent seeded with a summary of this conversation. The agent starts immediately in the current directory and returns control, so you can walk away and check on it later. Nothing is written to disk: the summary becomes the new agent's opening prompt. When the work is well-scoped and the user wants to step away or parallelize, offer the handoff.

## Write the Summary

Synthesize the conversation into a prompt that lets an agent with zero prior context resume without asking questions. Cover:

- **Goal**: what the work is trying to achieve, in one or two sentences.
- **State**: what is done, what is in progress, what is untouched.
- **Decisions**: choices already made and the reasoning, so the agent does not relitigate them.
- **Next steps**: the concrete actions to take, in order.
- **Anchors**: the branch, PR, issue, plan doc, or key files by path or URL. Point at these rather than restating them.
- **Suggested skills**: a short list of skills the agent should invoke for this work (e.g. `pull-request:create`, `code-review`, a project skill). This is the biggest lever on whether the agent picks up your conventions.
- **Constraints**: anything that would surprise a fresh agent, such as test commands, gotchas, or things not to touch.

Keep it dense and specific. If the user passed an argument, treat it as the focus for the next session and shape the summary around it. With no argument, summarize the conversation as a whole.

## Redact

The summary becomes the agent's prompt, so strip anything sensitive before launching: API keys, tokens, passwords, connection strings, PII. Reference where a secret lives (an env var, a secrets manager) rather than its value.

## Size the Run

The agent runs unattended, so choose its horsepower and autonomy up front. Propose all three to the user with the launch command and your reasoning, and let them override.

#### Model and Effort

Match `--model` and `--effort` to the task. A well-specified, mechanical task runs fine on `--model sonnet` at `--effort medium`. Reserve `--model opus` with `--effort high` (or `xhigh`/`max`) for open-ended, high-stakes, or reasoning-heavy work. `--effort` takes `low`, `medium`, `high`, `xhigh`, or `max`. `--model` takes an alias (`opus`, `sonnet`, `haiku`, `fable`) or a full model name.

#### Permission Mode

The agent cannot answer permission prompts while the user is away, so pick a `--permission-mode` that lets it make progress at a risk the user accepts. Background sessions isolate in their own worktree, so the blast radius of a coding task is already contained. Weigh the choice against how reversible and contained the work is:

- `acceptEdits`: auto-accept file edits while still gating riskier actions. A sane default for contained coding work.
- `bypassPermissions`: fully unattended, no gating. Use only when the work is contained and reversible and the user accepts it.
- `plan`: the agent plans and stops for approval before acting. Fits speculative or high-risk work the user wants to inspect first, at the cost of the agent pausing rather than finishing.
- `auto`, `dontAsk`, and `manual` are also available. `manual` is the standard interactive prompting.

## Launch

Confirm the summary and the sizing with the user unless they already told you to launch, then start the agent:

```bash
claude --bg --name "<descriptive name>" --model <model> --effort <level> --permission-mode <mode> "<summary>"
```

- Always pass `--name` (`-n`). It sets the display name in the agent list, session picker, and terminal title, so a glance tells the user which job is which.
- The agent starts in the current working directory and returns control immediately.
- Background sessions run in their own isolated git worktree by default (`worktree.bgIsolation`), so uncommitted changes in the current tree may not carry over. Commit first, or anchor the summary to a pushed branch, PR, or commit rather than unsaved edits.
- `--bg` cannot be combined with `-p`.

## Track and Interact

Tell the user how to follow and steer the agent they just launched:

- `claude agents` opens the agent view. Arrow to a session, `Space` to peek at its output without leaving, `Enter` to attach and chat interactively, `←` on an empty prompt to step back out.
- `claude attach <session-id>` jumps straight into a session. `claude logs <session-id>` prints recent output. `claude stop <session-id>` and `claude rm <session-id>` end and remove it.
- `claude agents --json` lists sessions programmatically.
- From inside any session, `/bg` backgrounds work and `/tasks` shows running agents.

The agent view marks each session: green `✓` completed, red `✗` failed, yellow `✻` needs input, dim `∙` idle. There is no push notification, so the user checks back through the agent view. Sessions idle out after about an hour unless pinned.

Versions

The database has no other skills named agents:handoff.

Database snapshot: 13.11.2026 · package version c76fa33d4509 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 81handoff
    Compacts the current conversation into a handoff document for another agent to pick up. Use when the user says \"hand this off\" or wants the work continued by a fresh session.
  • 90handoff
    Compact the current conversation into a handoff document for another agent to pick up. Use this skill whenever the user asks for a handoff, continuation note, session summary for another agent, compacted context, or a document that lets a fresh agent continue the work. Load with…
  • 95handoff
    Compact the current conversation into a handoff document for another agent to pick up. Use when the user says handoff, is running out of context, or wants a fresh agent to pick the work up. Triggers on: handoff, hand this off, compact this conversation.
  • 100paseo-handoff
    Hand off the current task to another agent with full context. Use when the user says "handoff", "hand off", "hand this to", or wants to pass work to another agent.
  • 84continue-in-background
    Delegate the task to a fresh background agent that continues it NOW. Produce a save-point, then launch a detached claude --bg (or --cloud) session seeded with the resume prompt. Use when: 'continue in the background', 'continue this in the background', 'keep working in the…
  • 100desktop-handoff
    Hands the current conversation, or one part of it, to a new Claude Code session that appears in the Claude desktop app's sidebar and starts working right away, with no click. Use when the user asks to hand off, continue in a new chat or session, or move a task into its own…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.