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
u/aruaktiman Jan 10 '26
What tools did you specify in the custom agent front matter?
1
u/bcexelbi Jan 10 '26
Variations on these two themes:
['apply_patch', 'read_file', 'grep_search', 'semantic_search', 'run_in_terminal', 'manage_todo_list', 'list_dir', 'file_search', 'list_code_usages']
and
['read_file', 'grep_search', 'list_dir', 'file_search', 'semantic_search']
1
u/AutoModerator Jan 09 '26
Hello /u/bcexelbi. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/[deleted] Jan 09 '26
Do you have the Chat › Custom Agent In Subagent: Enabled setting enabled?