Google seems to be releasing a new feature for Gemini that allows users to upload a folder containing a code base. This option is available in the attachment menu, where users can select one folder per chat. The feature currently supports up to 1,000 files per folder, with a total size limit of 100 megabytes. Once uploaded, users can ask Gemini questions about the code base. While the feature performs well with smaller code bases, it may sometimes struggle with larger folders.
During the analysis step, Gemini first reads the files and then performs the analysis. This suggests that some form of structured reasoning or chain of thought is being employed under the hood, though the exact details remain unclear based on the available information.
The feature appears to already be rolling out, but it has not been confirmed whether all users currently have access. This update may coincide with a previously noted planned announcement on November 25th. Overall, it seems Gemini is aiming to compete with tools provided by ChatGPT and Claude, which already offer capabilities for working with codebases and multi-file folders.
There is also speculation that Google might be preparing to release new models with enhanced features and capabilities, though this remains uncertain until further announcements are made.
UPDATE: Codebase chats are also supported on mobile 👀