- Fix currency defaults (SATS → CHF) across forms, configs, and API routes - Remove @ts-nocheck from socialService.ts and improve type safety - Replace console.log statements with proper logger utility in production code - Additional type safety improvements and code quality enhancements - Documentation updates for improved maintainability All changes follow DRY, SSOT, and separation of concerns principles.
6.4 KiB
Handoff System Documentation
Created: 2025-01-28
Last Modified: 2025-01-28
Last Modified Summary: Initial creation of handoff system documentation
🎯 Purpose
The handoff system enables seamless transitions between different AI agents and compute providers, ensuring continuity of work and context preservation across sessions.
📋 Commands
h or handoff
Purpose: Create or update the handoff document with current session work.
When to use:
- At the end of a development session
- Before switching to a different AI agent
- When you want to document current progress
- Before taking a break
What it does:
- Reads existing handoff document (if it exists)
- Updates it with current session's accomplishments
- Documents recommended next steps
- Saves to standardized location:
docs/development/SESSION_HANDOFF.md
Example:
User: h
Agent: [Creates/updates SESSION_HANDOFF.md with current work]
pickup
Purpose: Read the handoff document and continue from where the previous session left off.
When to use:
- At the start of a new session
- When switching to a different AI agent
- When resuming work after a break
What it does:
- Reads the handoff document:
docs/development/SESSION_HANDOFF.md - Summarizes previous session's work
- Identifies recommended next steps
- Asks which direction to proceed (or starts with recommended option)
- Continues from where the previous agent left off
Example:
User: pickup
Agent: [Reads SESSION_HANDOFF.md]
Agent: "Previous session accomplished X, Y, Z. Recommended next step is A. Should I proceed with A, or would you like to do something else?"
📁 File Locations
Handoff Document
- Location:
docs/development/SESSION_HANDOFF.md - Purpose: Current session handoff information
- Updated: Every time
horhandoffis called - Read: Every time
pickupis called
Handoff Template
- Location:
docs/development/HANDOFF_TEMPLATE.md - Purpose: Template structure for handoff documents
- Updated: Only when handoff structure changes
📝 Handoff Document Structure
The handoff document follows this structure (see HANDOFF_TEMPLATE.md for details):
- Session Summary - What was the main focus?
- What We've Accomplished - Detailed list of changes
- Metrics - Code quality, performance, documentation metrics
- Recommended Next Steps - Options with reasoning
- Key Patterns Established - Code patterns to follow
- Files Modified/Created - Complete file list
- Lessons Learned - Key insights
- Quick Start for Next Session - How to continue
- Reference Documents - Related docs
- Notes for Next Developer - Important context
- Context for [Agent Name] - Agent-specific guidance
🔄 Workflow
Ending a Session
1. User types: h
2. Agent reads existing SESSION_HANDOFF.md (if exists)
3. Agent updates it with current session work
4. Agent saves to docs/development/SESSION_HANDOFF.md
5. Agent confirms: "Handoff document updated. Ready for next session."
Starting a New Session
1. User types: pickup
2. Agent reads docs/development/SESSION_HANDOFF.md
3. Agent summarizes previous work
4. Agent presents recommended next steps
5. Agent asks: "Should I proceed with [recommended option], or would you like to do something else?"
6. User responds, agent continues
✅ Best Practices
For Handoff (h)
- Be Comprehensive: Include all important changes, not just the latest
- Be Specific: List exact files, line counts, patterns
- Be Actionable: Next steps should be clear and executable
- Be Contextual: Include user's goals and philosophy
- Update Dates: Always update "Last Modified" date
For Pickup (pickup)
- Read Carefully: Understand what was done and why
- Summarize Clearly: Present previous work concisely
- Recommend Wisely: Suggest the best next step based on context
- Ask for Confirmation: Don't assume, ask which direction to go
- Continue Seamlessly: Pick up exactly where left off
🎯 Agent Requirements
All AI agents must:
- Recognize Commands: Understand
h,handoff, andpickup - Follow Template: Use
HANDOFF_TEMPLATE.mdstructure - Update Standard Location: Always save to
docs/development/SESSION_HANDOFF.md - Preserve Context: Maintain user's goals and philosophy
- Be Consistent: Follow same format every time
📚 Integration with Agent Guides
All agent guides (docs/guides/ai/*.md) include:
- Handoff System Section: Explains
h/handoffandpickupcommands - Quick Reference Table: Includes handoff commands
- Standardized Location: Points to
docs/development/SESSION_HANDOFF.md
🔍 Example Scenarios
Scenario 1: Switching from Claude to Cursor
[Claude Session]
User: "Let's refactor the products route"
Claude: [Refactors products route]
User: "h"
Claude: [Updates SESSION_HANDOFF.md with refactoring work]
[Cursor Session]
User: "pickup"
Cursor: [Reads SESSION_HANDOFF.md]
Cursor: "Previous session refactored products route. Recommended next: apply same patterns to services route. Proceed?"
User: "Yes"
Cursor: [Applies patterns to services route]
Scenario 2: Resuming After Break
[Morning Session]
User: "Let's add caching layer"
Agent: [Starts caching implementation]
User: "h"
Agent: [Documents partial progress]
[Afternoon Session]
User: "pickup"
Agent: [Reads handoff]
Agent: "Previous session started caching layer. Recommended: complete Redis setup. Continue?"
User: "Yes"
Agent: [Completes caching implementation]
🚀 Benefits
- Continuity: Work continues seamlessly across sessions
- Context Preservation: No loss of context when switching agents
- Efficiency: Next agent knows exactly where to start
- Documentation: Natural documentation of development progress
- Flexibility: Easy to switch between different AI providers
📝 Notes
- The handoff document is overwritten each time
his called (not appended) - Always include the recommended next step with reasoning
- Include user's philosophy and goals for context
- Update dates every time the document is modified
- Use the template to ensure consistency
Remember: The handoff system is designed to make switching between AI agents as seamless as possible. Always be comprehensive, specific, and actionable.