Codex achieved its pioneering 70.2% HumanEval pass rate by employing a 'repeated sampling' strategy, generating up to 100 code samples per problem and selecting the one that successfully passed all unit tests, a method crucial for overcoming initial consistency challenges.