Wow this is EXACTLY my experience building a CLI with Claude, but I think with Opus 4.6.
I gave it a README specifying the requirements for everything I wanted to build. My interaction with Claude was more or less like this.