use AI to write smoke tests without access to the code i.e. first describe something a correct implementation should do with only the knowledge of the interface not the implementation, and run the tests to see if it behaves the way you think it should.
1. Removing the mechanical parts from agent responsibility in your CI workflow
2. Having good instructions and subagents / team / loop