Yes, this just depends on the model you're using. Small-medium size codebases would fit inside Claude's 200K context window and Gemini 1.5 has a 1M context window which would essentially fit 99% of codebases.
For reference:
- The Flask web framework for Python: 131880 tokens
- The Spring Framework for Java: 11070559 tokens