Skip to content
Discussion options

You must be logged in to vote

It is not loading all 4 million characters of your files into the context window each time. Your intuition is correct; that would exceed the context window of any current model. The "100% context" message refers to something slightly different.

Here’s a breakdown of how it works, which involves two key concepts: checkpointing and grounding.

1. Checkpointing: Saving the Conversation, Not the Files

When you have a conversation, gemini-cli saves the history of that conversation to a checkpoint file. This is what allows you to "resume" a chat. However, it doesn't save the entire content of the files you provided in that checkpoint.

Instead, it saves the conversation flow, which includes:

Your…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gregbythebeach
Comment options

Answer selected by gregbythebeach
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants