handoff · rohitg00 — команда Claude Code: передача сессии со статусом
Команда handoff создаёт структурированный документ для передачи сессии другому Claude или себе в будущем. Содержит статус, решения, найденные ошибки и точку возобновления.
MIT ★ 2 966 обновлён 2026-09-29
/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflowЧто делает handoff
Когда вы запускаете /handoff, команда собирает текущее состояние: открывает git status и git diff --stat, смотрит последние коммиты, список изменённых файлов. Затем запрашивает из базы данных ошибки и исправления, которые вы нашли в этой сессии. На выходе — структурированный файл markdown с разделами: что сделано, что в процессе, что ждёт, ключевые решения и «подводные камни» для следующей сессии.
Документ сохраняется в ~/.pro-workflow/handoffs/ и содержит точную команду для возобновления работы. Три режима: стандартный (все разделы), --full (с полным diff), --compact (только резюме для вставки в следующую сессию). Отличается от /wrap-up тем, что /wrap-up — чеклист завершения, а /handoff — документ для чтения и действия.
Какие задачи решает
- Передать статус сессии для возобновления в следующий день
- Записать ключевые решения и причины перед сменой контекста
- Документировать ошибки и исправления, найденные за сессию
- Создать точку восстановления без потери контекста
- Подготовить резюме для вставки в новую сессию
Примеры запросов агенту
- /handoff
- /handoff --compact
- /handoff --full
Как установить handoff
1Через маркетплейс плагинов
/plugin marketplace add rohitg00/pro-workflow/plugin install pro-workflow@pro-workflow2Вручную: положить файлы
.claude/commands/handoff.mdВызов — /handoff. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/handoff.mdВызов — /prompts:handoff. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/handoff.prompt.mdВручную: положить файлы
.gemini/commands/handoff.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о handoff
Как установить handoff в Claude Code?
Запустите /plugin marketplace add rohitg00/pro-workflow, затем /plugin install pro-workflow@pro-workflow. После этого команда /handoff будет доступна.
Что делает handoff?
Создаёт документ, который содержит всё необходимое для возобновления работы: статус гита, список измененных файлов, ключевые решения, найденные ошибки и точку, где нужно начать в следующей сессии.
В чём разница между handoff и wrap-up?
/wrap-up — чеклист для правильного завершения сессии. /handoff — готовый документ для чтения следующей сессией и немедленного продолжения работы.
Исходный текст
handoff.md · MIT
---
description: Write a session handoff with progress, decisions, and next steps.
---
# /handoff - Session Handoff Document
Generate a structured handoff document that another Claude session (or your future self) can consume immediately to continue where you left off.
## Usage
```
/handoff
/handoff --full
/handoff --compact
```
## How It Works
When the user runs `/handoff`:
1. **Gather current state**:
- Run `git status` and `git diff --stat` to see uncommitted work
- Run `git log --oneline -5` to see recent commits this session
- Check the session's edit count and corrections from the database
- List files modified this session
2. **Query learnings captured this session**:
```bash
sqlite3 ~/.pro-workflow/data.db "
SELECT category, rule, mistake, correction
FROM learnings
WHERE created_at >= datetime('now', '-4 hours')
ORDER BY created_at DESC
"
```
3. **Generate the handoff document**:
```markdown
# Session Handoff — [date] [time]
## Status
- **Branch**: feature/xyz
- **Commits this session**: 3
- **Uncommitted changes**: 2 files modified
- **Tests**: passing / failing / not run
## What's Done
- [completed task 1]
- [completed task 2]
## What's In Progress
- [current task with context on where you stopped]
- [file:line that needs attention next]
## What's Pending
- [next task that hasn't been started]
- [blocked items with reason]
## Key Decisions Made
- [decision 1 and why]
- [decision 2 and why]
## Learnings Captured
- [Category] Rule (from this session)
## Files Touched
- `path/to/file1.ts` — [what changed]
- `path/to/file2.ts` — [what changed]
## Gotchas for Next Session
- [thing that tripped you up]
- [non-obvious behavior discovered]
## Resume Command
Copy this into your next session:
> Continue working on [branch]. [1-2 sentence context]. Next step: [specific action].
```
4. **Save the handoff** to `~/.pro-workflow/handoffs/[date]-[branch].md`
## Options
- **default**: Standard handoff with all sections
- **--full**: Include full git diff in the document
- **--compact**: Just the resume command and key context (for pasting into next session)
## Why This Is Different from /wrap-up
`/wrap-up` is a checklist to close a session properly. `/handoff` is a document designed to be consumed by the next session — it's written for the reader, not the writer.
## Related Commands
- `/wrap-up` - End-of-session checklist (do this first, then handoff)
- `/replay` - Surface past learnings when starting a new session
- `/insights` - Session analytics
---
**Trigger:** Use when user says "handoff", "hand off", "pass to next session", "create handoff", "session transfer", "continue later", or when ending a session and wants to resume smoothly.
© Rohit Ghumare · MIT · rohitg00/pro-workflow
Похожие слэш-команды
Все слэш-команды по теме «Настройка агента: память, контекст, субагенты» →Сначала — handoff от других авторов.