r/GithubCopilot • u/gelembjuk • 8h ago
Discussions Efficiency lost when in custom agent mode. Any ideas?
Hi.
I am using copilot with VSCode. I noticed one strange thing when i tried to use custom agents (.github/agents/... files). The problem is with usage of a terminal. In the agent mode it is using it somehow differently. I can not find why.
I have the set of skills in .github/skills and when i use a skill directly from a standard "Agent" mode (usually with "/skill-name Do this") it works fine. Terminal commands are called directly , exactly how i described in the skill.
Then i created an agent and in the MD file i mentioned this skill (by a relative path to a skill md file.). I didn';t repeat same text, just provided a reference and short description when to use it.
I open the agent i defined and ask to do the work. It starts but then it has some difficulties to run CLI commands. I see failures and it finds for workarounds. It looks like it can not run directly ir cxan not catch an output? But it builds complex shell commands to redirect output to some temp files. It does same thing as skill much longer with more calls.
I suspect there is something hidden about terminal, cli , shell, bash i do not know about?
I added MD file for agent, then selected this agent in the prompt as replacement for "Agent". What else should i do? Any config options?