Code Generation with LLMs
I’m using LLMs to write more of the code I rely on.
The AI tools evolve significantly every 2 weeks, it feels like, so I expect my current views to change very soon.
AI code gen loop
- Requirements gathering (see next block)
- Implementation
- Integration
- Validation
- Verification
- Write docs for the code changes
- Pull request
What’s changed for me in the last 2 weeks is spending more time and effort on specs (i.e., Requirements Gathering). I really like using agent teams to review and refine them before sending off the specs for implementation. The efficiency gain is having LLMs think through a problem on my behalf and flag open questions.
Requirements gathering
- Intent
- Functional success
- Non-Functional success
- How to recover from failure states
- Unacceptable solutions
- Ask for a team of agents to propose 3–5 solutions and explain trade-offs
- Review via multi-agent team and have the agents write the final spec in markdown
- Review the written version
This post is licensed under CC BY 4.0 by the author.