# Google uses Gemini 4 Argon to optimize ADK's Python codebase overnight

> Original title: Optimizing a 200,000-line Python codebase overnight with Gemini 4 Argon

- Source: Google Developers Blog
- Published: 2026-10-13T00:00:00.000Z
- Bad Influence: https://badinfluence.news/items/b3hza4oadskktxuiziv01xtyc
- Original: https://developers.googleblog.com/optimizing-a-200000-line-python-codebase-overnight-with-gemini-4-argon/

## Summary

Google tested Gemini 4 Argon on google/adk-python, a 205,000-line codebase, in an 11-hour unattended run guided by .agents/skills rules and /goal mode. Two of six proposed optimizations shipped, cutting in-memory session preparation time by about 40% in long sessions and speeding up package imports by 21%. Four proposals were rejected in code review for fragile state or private library dependencies.

## Why it matters

The post shows how a long unattended run was steered with repo rules and which proposed optimizations were rejected in review, useful for setting up similar agent workflows.
