Work trees

Replacing 12K LoC with a 200 LoC Skill — David Gomes, Cursor

Replacing 12K LoC with a 200 LoC Skill — David Gomes, Cursor

David Gomes from Cursor explains their transition from a complex, 15,000-line Git WorkTrees feature to a lightweight, flexible solution built on Markdown prompts. He details how 'Skills' and 'Sub-agents' recreated parallel coding workflows, and discusses the trade-offs, failure modes, and lessons learned from shifting product logic from hard code to natural language instructions.