handoff

handoff is a command for GitHub Copilot from yuri-semenenko/ai-engineering-workspace. It costs 24 tokens per session (991 once invoked), scanned A, original, MIT.

A handoff prompt for recording the current state of a work stream so a new chat can continue it. A work stream is one piece of ongoing engineering work, such as a ticket or feature.

In plain words
What is it for?
Use it when changing sessions, clearing chat history, or resuming work from a saved handoff.
Why use it?
It prevents a fresh chat from having to rediscover decisions, progress, and the next step. It can also compare an existing handoff with the current branch, commit, and pull request status.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit Use it when changing sessions, clearing chat history, or resuming work from a saved handoff.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yuri-semenenko/ai-engineering-workspace/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/yuri-semenenko/ai-engineering-workspace

Made for: GitHub Copilot.

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/yuri-semenenko/ai-engineering-workspace/handoff/github.svg)](https://agentmods.dev/commands/yuri-semenenko/ai-engineering-workspace/handoff)
Your own site
<a href="https://agentmods.dev/commands/yuri-semenenko/ai-engineering-workspace/handoff"><img src="https://agentmods.dev/badge/commands/yuri-semenenko/ai-engineering-workspace/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/yuri-semenenko/ai-engineering-workspace/handoff"><img src="https://agentmods.dev/badge/commands/yuri-semenenko/ai-engineering-workspace/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 991 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00024 $0.00991
Opus 5.5 $0.00010 $0.00396
Sonnet 5.5 $0.00005 $0.00198
Haiku 4.5 $0.00002 $0.00099

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

Security

Grade A, and why

handoff scanned grade A with 0 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

copilot/workspace-template/.github/prompts/handoff.prompt.md · 40 lines

What it actually says

Handoff Prompt

Role: Act as a senior engineer handing a work stream to a fresh session, which may be your own next chat.

Context: A new chat starts with none of this conversation. The handoff carries what it needs to continue: the next step, the state, the decisions and their reasons. Anything the next session can re-read from git, the PR, or the ticket stays out.

Task: Write the handoff for the current work stream. If the user instead gives an existing handoff, resume from it: compare it with the live state (branch, latest commit, PR status), say what drifted, and state the next step in one line.

Constraints:

  • Do not write files outside this workspace. Return the handoff as one Markdown block for the user to save outside the repository, for example at ~/.handoffs/<key>/<stream>.md, where <stream> is the ticket key (PROJ-123) or a kebab-case topic. <key> is the repository's directory name plus a short hash of its origin URL (or of the main checkout's path when there is no origin), so two repositories with the same name do not share a folder. Give the user the command that prints it, for their shell, exactly as written: the hash covers exact bytes, and a hand translation prints a different key.
    • POSIX shell: main=$(git worktree list --porcelain | sed -n '1s/^worktree //p'); id=$(git config --get remote.origin.url); [ -n "$id" ] || id=$main; printf '%s-%s\n' "$(basename "$main" .git)" "$(printf '%s' "$id" | git hash-object --stdin | cut -c1-8)"
    • PowerShell: $enc = [Console]::OutputEncoding; [Console]::OutputEncoding = [Text.UTF8Encoding]::new($false); $main = (git worktree list --porcelain)[0] -creplace '^worktree '; $id = git config --get remote.origin.url; if (-not $id) { $id = $main }; [Console]::OutputEncoding = $enc; $f = [IO.Path]::GetTempFileName(); [IO.File]::WriteAllText($f, $id); $h = git hash-object $f; Remove-Item $f; '{0}-{1}' -f ((Split-Path -Leaf $main) -creplace '(?<=.)\.git$'), $h.Substring(0, 8)
  • Never suggest saving it inside the repository; it carries work details.
  • One handoff per stream, replaced each time. It is state, not a log. Stay under about 60 lines and skip empty sections. Tell the user, before they save over an existing file at that path, to check that its repo line names this checkout's path and that its branch, PR, or ticket is this stream's. A matching branch alone is not enough: two clones of one repository share the key and often the branch. If only the repo path differs, replace the file only if this checkout moved; otherwise pick a different <stream>.
  • A handoff saved before the key existed stays at ~/.handoffs/<repo>/<stream>.md; resume it by that path. When the new handoff replaces one at a different path, list the old path under Pointers as Supersedes <path> so it is deleted when the stream closes.
  • Authorizations given in this chat (commit, push, PR) are history, not permission. The next session asks again.
  • A lesson that outlives the stream belongs in durable notes, not the handoff.

Output Format:

  1. Title line # <stream>: <one-line goal>, then one line with Repo and the main checkout path, branch and short sha, PR link and state, ticket link
  2. Next step: the first concrete action, specific enough to run without asking
  3. State: done / in progress / not started, one line each, with evidence
  4. Decisions: what was decided, by whom, and why, plus rejected options
  5. Constraints: rules the user set that bear on the next step
  6. Open: questions and what is being waited on
  7. Pointers: paths and links
  8. One line the user can paste into the next chat to resume

Success Criteria:

  • A fresh session can take the next step without asking anything already answered here.
  • Nothing in it is re-derivable from git, the PR, or the ticket.
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. 5d ago First seen · 40 lines · 24 tokens per session scan A 9d38568bbfc9

Subscribe to this mod's changes

handoff is a command published in the GitHub repository yuri-semenenko/ai-engineering-workspace (4 stars, last pushed 3d ago), licensed MIT. It adds 24 tokens to every session and 991 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

handoff compared with commands from other repositories

handoff next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handoffyuri-semenenko/ai-engineering-workspaceCommand43d agoMITA24GitHub Copilot
al-context-createjaviarmesto/ALDC-AL-Development-CollectionCommand115yesterdayMITA35Claude Code
al-memory-createjaviarmesto/ALDC-AL-Development-CollectionCommand115yesterdayMITA36Claude Code
sdd-cleanGregorBiswanger/featherspecCommand701mo agoMITA21Claude Code
sdd-setupGregorBiswanger/featherspecCommand701mo agoMITA27Claude Code
7_gofer_saveeai-support/eai-goferCommand15d agoApache-2.0A22Claude Code
save-from-chatandiupn/andy-universal-agent-rulesCommand24mo agoMITA0Claude Code, Cursor