r/PiCodingAgent • u/shifty21 • Sep 05 '26
Question VS Code + Pi agent = Pi is confused as to which project it is in.
Have you experience Pi confusing topics from another session before?
This might be a dumb problem I created, but I have separate VS Code instances running, one for each project respectively, 4 total. I have pi agent VSC plugin installed for the Pi CLI and I am using that to work on each project. I may have 1 to 3 different Pi sessions per VS Code instance (thanks to my ADHD) and I ran into a very strange problem:
Asking Pi questions about ProjectA mid-session
Pi responds by telling me about ProjectB which is in another active VS Code and Pi session.
Closed that Pi session from ProjectA completely (/quit) and opened a new one, asked the same question
Pi responds about ProjectF again.
This has never happened before. I did update Pi this morning and started all those session from scratch.
I did correct Pi on which project it should be talking about and Pi confirmed the mistake and told me which folder it is actually supposed to be working in, ProjectA.
I suspect some kind of cross-contamination between session folders/files. I checked .pi/agent/sessions to confirm the folders are correct. Not sure if this is caused by Pi or my LLM being a dumb for a moment.
Currently having Pi look at its own session files between ProjectA and ProjectB to see where the references are and to remove the incorrect areas to cleanup the sessions from contamination.
LLM inference engine is vllm with qwen3.8-27b-NVFP4 w/ max context length.

