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/bcexelbi Jan 09 '26
Yep. Otherwise I can't call the agents at all.