Purpose: Step-by-step workflow for developing compatibility layer features
Last Updated: 2026-02-04
Development follows a structured 6-stage approach:
1. Discover (Context)
↓
2. Propose (Approval)
↓
3. Init Session (Setup)
↓
4. Plan (Breakdown)
↓
5. Execute (Implement)
↓
6. Validate & Handoff
Goal: Understand requirements before implementation
Actions:
ContextScout to discover relevant context filesExternalScoutNo files created - Read-only exploration
Goal: Get user approval BEFORE any file creation
Present lightweight summary:
Wait for user approval before proceeding
Goal: Create session and persist context (ONLY after approval)
Actions:
.tmp/sessions/{YYYY-MM-DD}-{task-slug}/context.md with:
This becomes single source of truth for all agents
Decision: Simple vs Complex?
Simple (1-3 files, <30min):
Complex (4+ files, >60min):
TaskManager.tmp/tasks/{feature}/task.json + subtasksIncremental approach (one component at a time):
Plan Component (if using component-planning):
component-{name}.mdExecute:
CoderAgentIntegrate:
Critical: Never implement entire plan at once
Actions:
TestEngineer or CodeReviewer (pass session context).tmp filesContext First: Load standards BEFORE coding Approval Gates: Never execute without approval Incremental: One step at a time, validate each Stop on Failure: Report → Propose fix → Request approval → Then fix
1. Discover:
- ContextScout finds baseadapter-pattern.md
- Load code-quality.md standards
2. Propose:
"Implement WindsurfAdapter (514 lines)
- Bidirectional conversion
- Extends BaseAdapter
- JSON config format"
3. Init Session:
Create .tmp/sessions/2026-02-04-windsurf-adapter/
Write context.md with standards + references
4. Plan:
Simple (1 file) → Skip TaskManager
5. Execute:
- Create WindsurfAdapter.ts
- Implement toOAC(), fromOAC()
- Export in index.ts
- npm run build (validate)
6. Validate:
- Compilation: ✅ 0 errors
- Ready for unit tests (next phase)
Related: