Choosing the Right Approach
Different projects benefit from different session strategies. This guide helps you choose and execute effectively.Greenfield Projects
Starting from Scratch
Characteristics:- No existing codebase
- Clear requirements
- Freedom in technology choices
- High autonomy potential
Existing Codebases
Understanding First
Critical: Don’t modify before understanding. Discovery pattern:Feature Addition Strategy
For well-tested codebases:Research and Analysis Sessions
Competitive Analysis
Goal: Understand landscape and make informed decisions Structure:Technical Due Diligence
Before adopting library/framework:Migration Projects
System Migration Strategy
Large-scale migrations benefit from phased approach: Phase 1: AssessmentDatabase Migration Example
Performance Optimization Sessions
Systematic Optimization
Structure:- Always establish baseline first
- Change one thing at a time
- Measure after each change
- Prove improvements with data
Example: API Performance
Debugging Sessions
Bug Investigation Pattern
Systematic debugging:Root Cause Analysis
For complex issues:Multi-Session Strategies
Parallel Development
Independent features:Serial Deep Work
Complex, dependent features:Domain-Specific Strategies
Machine Learning Projects
Pattern:Distributed Systems
Pattern:Data Engineering
Pattern:Session Maintenance
Regular Maintenance Tasks
Weekly pattern:Refactoring Sessions
Dedicated refactoring:Anti-Patterns to Avoid
The Everything Session
Don’t:The Scope-Creep Session
Don’t:The Validation-Light Session
Don’t:The Assumption Session
Don’t:Measuring Session Effectiveness
Good Session Indicators
- Clear goal achieved
- All tests passing
- Performance validated with benchmarks
- Documentation updated
- Code follows project conventions
- Ready for PR or delivery
Red Flags
- Unclear what was accomplished
- Tests failing or not run
- Performance claims without proof
- Undocumented changes
- “Works on my machine” mentality
Post-Session Checklist
After significant session:- Run full test suite
- Review all file changes
- Verify documentation updated
- Check performance if relevant
- Validate against success criteria
- Clean up WIP/debug code
- Create PR or package deliverables
Next Steps
Apply these strategies:- Advanced Features: Interactive prompts, multi-client, advanced memory
- Integrations & Credentials: External service integration
- Troubleshooting: Common issues and solutions
- FAQ: Frequently asked questions

