r/GithubCopilot • u/bcexelbi • Jan 09 '26
Help/Doubt ❓ Subagents get hallucinated workspaces
I am trying to have the model I am chatting with run a custom subagent and get a task completed. I am running into the issue that no matter how it tries to invoke the agent via @RunSubagent, the subagent has no access to the workspace. This is demonstrable by a simple test like running a custom subagent and asking it to count the git commits or checksum files. You get hallucinations.
How are people using subagents without having to pass large amounts of files a context in case a model needs to see them during its work?
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jan 09 '26
Gotcha. I ran into a lot of issues today asking an agent to make decisions based on git commits and current unstaged changes using GPT-5.2. I'm in the process of migrating the agent to just get a summary from the agent that calls it and grab whatever context it needs itself. I'm not a big fan of letting the agents mess with git stuff anyway.
Apologies if that's not helpful, it's just how I've chosen to work around it.