handoff

handoff is a command for Claude Code from bhanu91221/sfdx-iq. It costs 12 tokens per session (674 once invoked), scanned A, original, MIT.

A command that creates a structured summary of the current coding session. It can show the summary in chat or save it as HANDOFF.md in the project folder.

In plain words
What is it for?
Recording modified files, recent commits, the current branch, new files, errors, blockers, and the next agent's starting context.
Why use it?
It preserves what changed, what was decided, and what remains when work moves to another conversation.

Command for Claude Code

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

Part of the sfdx-iq plugin — 20 commands, 7 agents shipped together

Good fit Recording modified files, recent commits, the current branch, new files, errors, blockers, and the next agent's starting context.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bhanu91221/sfdx-iq/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/bhanu91221/sfdx-iq

Made for: Claude Code.

Or install sfdx-iq, the plugin that ships this one along with the rest of its 20 commands, 7 agents.

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/bhanu91221/sfdx-iq/handoff.svg)](https://agentmods.dev/commands/bhanu91221/sfdx-iq/handoff)
Your own site
<a href="https://agentmods.dev/commands/bhanu91221/sfdx-iq/handoff"><img src="https://agentmods.dev/badge/commands/bhanu91221/sfdx-iq/handoff.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 674 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.00012 $0.00674
Opus 5 $0.00006 $0.00337
Sonnet 5 $0.00002 $0.00135
Haiku 4.5 $0.00001 $0.00067

Measured 6d ago against content hash 098bd5925376, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 6d 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.

commands/handoff.md · 102 lines

How it starts

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

/handoff

Generate a structured session summary so the next conversation can pick up exactly where this one left off. Captures what was built, what decisions were made, and what's next.

Usage

/handoff          Display session summary in chat
/handoff --save   Display summary AND write to HANDOFF.md in project root

Workflow

Step 1: Gather Session Context

Collect the session's work automatically:

# What files changed this session
git diff --name-only HEAD~1 HEAD 2>/dev/null || git status --short

# Recent commit history (if any commits were made)
git log --oneline -5 2>/dev/null

# Current branch
git branch --show-current 2>/dev/null

Also scan for:

  • Any newly created files in this session
  • Errors or blockers encountered
  • Agent outputs from the session

Step 2: Generate Handoff Document

Produce the following structured summary:

# Session Handoff — [Date]

## What Was Built
<!-- List each file created or significantly modified, one line per file -->
- `force-app/main/default/classes/AccountService.cls` — Created service layer with processAccounts() and updateIndustry()
- `force-app/main/default/classes/AccountServiceTest.cls` — Test class with 92% coverage

## Decisions Made
<!-- Key architectural or implementation decisions and WHY -->
- Used `inherited sharing` on AccountService to allow callers to control sharing context (AccountController uses `with sharing`, batch uses `without sharing`)
- Chose Queueable over @future for sync because callout is needed after DML
- TestDataFactory pattern adopted: created TestDataFactory.cls for reuse across test classes

## What's Next
<!-- Incomplete work, next steps, open questions -->
- [ ] Add OpportunityService.cls following same pattern as AccountService
- [ ] Wire AccountController.getAccounts() to accountSummaryCard LWC component
- [ ] Run full org test suite before deploying: `sf apex run test --test-level RunLocalTests`
- [ ] Review if AccountSelector needs a custom index on Industry field (high-volume org)

## Files Changed This Session
<!-- Auto-populated from git diff -->
[list from git diff]

## How to Resume
At the start of your next session, say:
"Read HANDOFF.md and continue from where we left off on [feature name]."

Read the full file on GitHub · 102 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. 6d ago First seen · 102 lines · 12 tokens per session scan A 098bd5925376

Subscribe to this mod's changes

handoff is a command published in the GitHub repository bhanu91221/sfdx-iq (2 stars, last pushed 3mo ago), licensed MIT. It adds 12 tokens to every session and 674 once invoked, about $0.0001 per session on Opus 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-08-31.