Optimizing a 200,000-line Python codebase overnight with Gemini 4 Argon An 11-hour overnight run of Gemini 4 Argon on Google's open-source Agent Development Kit (ADK) Python repository cut in-memory session prep time by about 40% in long sessions and sped up cold package imports by 21%, according to Google. The agent, given only an outcome-level prompt and maintainer guidelines in the repository's .agents/skills directory, ran unattended in Google Antigravity's /goal mode and produced one pull request; two optimizations shipped while four were rejected in human review. The 205,000-line codebase spans nearly 800 source files and nearly 17,000 unit tests, and round one of the test ran about two hours, with Argon spending 70 minutes measuring and reading code before editing any ADK source. When a new model launches, most demos show greenfield apps built from an empty folder. They're fun to watch. They also tell a working software engineer very little about how the model handles an existing codebase. For the launch of Gemini 4 Argon, we wanted to test whether it could run unattended overnight on a much harder problem: finding and fixing cross-file performance bottlenecks in google/adk-python https://github.com/google/adk-python . Agent Development Kit ADK is Google's open-source framework for building and deploying enterprise agents. The Python repository spans roughly 205,000 lines of code across nearly 800 source files, backed by nearly 17,000 unit tests. Performance work is a hard test for a model because you can't just open one file and spot the slowdown. You have to look orthogonally to where the symptom appears and hold a map of how the entire codebase fits together over a long run. This post walks through the prompts, .agents/skills https://github.com/google/adk-python/tree/main/.agents/skills rulefiles, and human code-review decisions from the 11-hour overnight run that cut ADK's in-memory session prep time by about 40% in long sessions and sped up cold package imports by 21%. You'll see the two optimizations that shipped, the four we rejected in review, and how to set up the same overnight workflow on your own codebase. Most performance work with a coding agent still runs in a tight human loop: an engineer runs a profiler, points the model at a single hot function, and specifies the fix. We wanted to see what Argon would do when given only the outcome the team cared about. In round one, we tested Argon with zero custom repository instructions. We gave it this single-paragraph prompt: