← 返回
未分类

session-branch支线任务

Branch a coding session into a new conversation with full context handoff — generate structured handoff doc, startup prompts, and guide the new session to pick up exactly where you left off.
Branch a coding session into a new conversation with full context handoff — generate structured handoff doc, startup prompts, and guide the new session to pick up exactly where you left off.
AI花生
未分类 community v1.0.1 2 版本 100000 Key: 无需
★ 1
Stars
📥 30
下载
💾 0
安装
2
版本
#latest

概述

Session Branch

Branch your current coding session into a new conversation without losing context.

When to Use

  • Current conversation is getting long and context compression is degrading quality
  • You want to start a new task on the same project but keep full context
  • You need to fork your work into a parallel direction
  • User says: "开个支线" / "分叉" / "branch" / "新任务但保留上下文"

Execution Flow

Step 1: Analyze Current Session

Scan the current conversation and project to extract:

  1. Project identity — name, description, platforms, version, tech stack
  2. Decision chain — what was chosen, what was rejected, and why
  3. Data flow — how data moves through the system (input → process → output)
  4. Capability boundary — what the project CAN do and CANNOT do
  5. Code changes — what files were modified in this session and why
  6. Platform status — GitHub, ClawHub, npm, PyPI current state
  7. Environment — which env vars are set, which need user config
  8. Knowledge files — index of docs/knowledge/ and docs/rules/ by scenario
  9. User preferences — language, work style, code style, security sensitivity
  10. Branchable directions — what can be built next, with files involved and prerequisites

IDE-Specific Additional Scanning

For WorkBuddy, also scan:

  • Identity files: ~/.workbuddy/SOUL.md, IDENTITY.md, USER.md — persona and preferences
  • Memory files: .workbuddy/memory/MEMORY.md + daily logs — project memory
  • Installed skills: ~/.workbuddy/skills/ — list of active skills
  • Scheduled tasks: automation/cron task list and status
  • Channel config: IMA knowledge base IDs, Feishu channel configuration
  • MCP connectors: active MCP connector status

For TRAE SOLO, also scan:

  • Rules: .trae/rules/ — project-level rules
  • Schedule: TRAE SOLO Schedule task list

For Cursor, also scan:

  • Rules: .cursor/rules/ or .cursorrules

For Claude Code, also scan:

  • Rules: CLAUDE.md in project root

Step 2: Generate Handoff Document

Use the template at references/handoff-template.md to create a structured handoff document.

Save location by IDE:

IDEDefault pathRationale
-----------------------------
WorkBuddy.workbuddy/session-handoff.mdAlign with memory system, keep project root clean
TRAE SOLOdocs/session-handoff.mdStandard docs location
Cursordocs/session-handoff.mdStandard docs location
Claude Codedocs/session-handoff.mdStandard docs location

Critical rules:

  • NO personal information (real names, emails, specific paths, token values)
  • NO project-specific secrets or credentials
  • Use generic placeholders: , ,
  • The handoff doc must be reusable as a TEMPLATE, not a one-time snapshot

Step 3: Validate with Checklist

Cross-check the generated handoff against references/checklist.md.

Every item must be covered. If something is not applicable, write "N/A" with a reason.

Step 4: Generate Startup Prompt

Use references/startup-prompts.md to generate the startup prompt for the new conversation.

The prompt must include:

  1. Exact file paths for the new AI to read (absolute or relative per IDE)
  2. A three-step flow: Load → Report → Ask
  3. Clear role: "This is a continuation of an existing project, not starting from scratch"

Step 5: Present to User

Show the user:

  1. The generated handoff document (key sections summary)
  2. The startup prompt (ready to copy-paste)
  3. List of files created and their locations
  4. Ask: "Ready to open a new conversation?"

Configuration

SettingDefaultDescription
-------------------------------
handoff_pathAuto (by IDE)Where to save the handoff document
include_checklisttrueWhether to validate against checklist
target_ideautoTarget IDE for startup prompt (auto/trae/workbuddy/cursor/claude-code)

References

  • references/handoff-template.md — Full template for the handoff document
  • references/checklist.md — Validation checklist (12 categories + IDE-specific)
  • references/startup-prompts.md — IDE-specific startup prompt templates

版本历史

共 2 个版本

  • v1.0.1 增加中文说明 当前
    2026-06-05 09:36 安全 安全
  • v1.0.0 Initial release
    2026-06-04 19:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

skillhub每日推荐

user_152a8db2
SkillHub 每日推荐 - 扫描 skillhub.cn 全站 Top100 + 7 大分类各 Top20(共 240 个 Skill), 基于用户痛点精准推荐高价值 Skill,支持 IMA/飞书/Obsidian 多通道存储。 触发
★ 2 📥 75

clawhub每日推荐

user_152a8db2
该技能依托ClawHub全球AI Agent技能平台,通过专属Convex接口抓取平台Top200技能真实数据,围绕收藏、下载、累计装机、实时装机、评论、能力标签六大指标完成多维量化分析。 每日轮换趋势、品质、新锐、全景四类筛选逻辑,搭配1
★ 1 📥 36

skill-forge技能创建熔炉

user_152a8db2
MANDATORY tool for creating SKILLs - MUST be invoked IMMEDIATELY when user wants to create/add any skill. Forges skills
★ 1 📥 32