Is the initial context kept throughout the whole chat thread?

Hey all, quick question: when you start chat with a codebase context for example, do you need to give it the codebase with each next prompt during the same thread or does it keep having access to the context you gave it initially?

chat does retain context for me, but eventually i need to start a new chat - make sure your code has lots of comments to document methods - i find it easy to lose track of everything myself too, just like the LLM

I’m using claude-3.5-sonnet, and while it seems to retain context, it really just seems to retain an “idea” of the context but can no longer reference the actual code, when it suggests changes to the code it seems to just assume what’s in the files (which tends to be close but very wrong) rather than actually referencing what exactly is in the files…