Discussion about this post

User's avatar
JP's avatar

The 3-5 iteration count you mention lines up with what I was getting too, until I changed how I prompt it. Two things that cut that down drastically: piping context in via stdin instead of letting Codex search the filesystem, and including explicit acceptance criteria in every prompt. The tool isn't bad at following instructions; it just needs way more specificity than you'd think. Wrote up the full set of patterns here: https://reading.sh/how-to-actually-get-good-results-from-codex-cli-98d412eb3ff7?sk=be1b8b631f39c5ac4edec722c9eb111d

1 more comment...

No posts

Ready for more?