首页/ AI 技能 / @skilllib/skill-2014279383643533314
Skill站外收录 @skilllib/skill-2014279383643533314

handoff

在会话上下文接近上限或完成阶段性任务时,将当前工作交接至全新的Claude实例,保留核心任务状态与数据进度的同时重置对话缓存,确保处理效率与上下文连贯性。

0.0 (0) 737 次安装 原作者 编程导航
收录于 2026-01-22
数据与分析 AI 技能

Skills.MD

# Handoff - Session Cycling for Gas Town Agents Hand off your current session to a fresh Claude instance while preserving work context. ## When to Use - Context getting full (approaching token limit) - Finished a logical chunk of work - Need a fresh perspective on a problem - Human requests session cycling ## Usage ``` /handoff [optional message] ``` ## How It Works 1. If you provide a message, it's sent as handoff mail to yourself 2. `gt handoff` respawns your session with a fresh Claude 3. New session auto-primes via SessionStart hook 4. Work continues from your hook (pinned molecule persists) ## Examples ```bash # Simple handoff (molecule persists, fresh context) /handoff # Handoff with context notes /handoff "Found the bug in token refresh - check line 145 in auth.go first" ``` ## What Persists - **Hooked molecule**: Your work assignment stays on your hook - **Beads state**: All issues, dependencies, progress - **Git state**: Commits, branches, staged changes ## What Resets - **Conversation context**: Fresh Claude instance - **TodoWrite items**: Ephemeral, session-scoped - **In-memory state**: Any uncommitted analysis ## Implementation When invoked, execute: 1. If user provided a message, send handoff mail: ```bash gt mail send <your-address> -s "HANDOFF: Session cycling" -m "<message>" ``` 2. Run the handoff command: ```bash gt handoff ``` The new session will find your handoff mail and hooked work automatically.

评论 0

还没有评论,来抢沙发。