Pick one prompt or an agent loop for parsing
Your task
You need a TypeScript function that parses a .env file into a typed object. The format is small, and your deploy tool already reads these files. A colleague has started an agent with the instruction "iterate until it handles all cases". You think one well-specified prompt would do better.
Which approach do you back, and what one thing decides it here?
It covers
- Oneshot vs agent
- Spec quality