This is how I solve bigger code challanges. Like really complex features.
- I asked for feedback on legacy code. pros and cons.
- i made my idea for v2 how it should work etc. then i asked the AI to plan it out in detail in a plan.md doc.
- i asked the ai to make readme doc for the feature before coding it.
- then i gave the ai all of these docs, and asked it to code it. it took 2h for it to finish.
- four ais did this simultaniously. 2 in pplx. 1 cursor 1 cline. about 20$ each.
- When you have 4 branches with solutions. Then you ask 1 AI to cherry pick from each. Picking the best code etc.
- You start by asking the AI to review all docs so far. and you chat with it about focus areas, reach goals, phased dev etc.
- The goal is to find the sweet spot. Plan and code up the final solution with best of the best from the 4 branches
- the 2 branches that pplx coded has PR descriptions. the cursor and cline branches does not have prs. but you can ask pplx to make prs with comprehensive descriptions based on the branches. Store these pr descriptions as .md doc
- the plan.md doc also serves as a compass for when the AI compres context etc
- Cline will generate a task list.md for big jobs, reference this task list and original plan, if they AI strays
- You can also code the final solution in parallel. Cline and cursor, in different clones of the repo. And then just pick the best end result. Its overcocking things a bit, but sometimes alt versions are golden. sometimes an AI will stray and build too much because it got trapped in a rabbit hole. Also looking at two final solutions, if they do not diff too much, you know that the AI didnt stray.
- Making the plan for the final soulition can be done in 4x matrix parallel. 2 local agents (seperate clones, because we check out branches). 2 remote agents. because you dont write any code, you just read and present a plan. then you can store all plans and make 1 plan from these 4 plans.
Task:
Idea:
More around the idea in detail: _proposals/advance-export/advance-export-idea.md
Branches:
Cherry pick from these 4 feature branches:
get_advance_code, export_advance_4, feature/export-advanced-mvp, feature/export_advancePR overviews of the 4 branches:
These are birds eye view of what the feature branches contain and what they do:
_proposals/advance-export/pr_export_advance_4.md
_proposals/advance-export/pr_export_advance.md
_proposals/advance-export/pr_export_advanced_mvp.md
_proposals/advance-export/pr_get_code_advance.md
Relevant feature documents
planing, ideation, pr-descriptions, readme-sketches, feature plans, legacy code feedback
_proposals/advance-export/
Legacy code
these has alot of useful code that can be copied.
— server code: src/server/commands/figma/export_enhanced