
blog

Rod Rivera
over 1 year ago
1 min read
Ever wished you could have your entire project at your fingertips? Elia Secchi, ML Solution Specialist at Google, has cracked the code! 🧠💻 Here's the game-changer: Collapse your entire codebase into a single file and feed it to Gemini's massive 2M token window. Mind = blown! 🤯

How to do it:
Use this nifty command:
find . -name "*.py" -print0 | xargs -0 -I {} sh -c 'echo "=== {} ==="; cat {}' > output.txt
Watch as all your Python files merge into one, keeping their paths intact Upload to Gemini and voila! Your entire project, ready for action 🎉
Why it's a game-changer:
- ✅ Quickly understand large projects
- ✅ Navigate codebases like a pro
- ✅ Supercharge your code reviews
Have you tried Elia's trick yet? Drop a comment and let us know how it's working for you! 💬

Written by Rod Rivera
AI Product Engineer contributor

