ChatGPT Optimizes Its Agent Loop: Harness, API, and Infer...