Agent calling in custom commands #1575

Closed
opened 2026-02-16 17:31:37 -05:00 by yindo · 9 comments
Owner

Originally created by @static-var on GitHub (Sep 2, 2025).

Originally assigned to: @rekram1-node on GitHub.

Currently file name and agent name both use @ prefix, if in custom commands markdown file we want to mention that subagent(s) needs to be called, it ends up returning error that file does not exist with the agent name.

Description of one of the custom command file I have.

Ask both agents @gpt-analyst and @gemini-analyst to provide their thorough review/analysis of the code changes which have been done and against current task. Also ask analysts to make sure they compare the code against RULES.md file (likely will be in a docs dir)

Analyze the output individually for each agent. Identify pros, cons, trade-offs, critical bugs, issues, violation of RULES.md, share them with users.

User should be able to know what analysis is given by what agent.

When I try to execute command for it, it ends up giving

Image
Originally created by @static-var on GitHub (Sep 2, 2025). Originally assigned to: @rekram1-node on GitHub. Currently file name and agent name both use `@` prefix, if in custom commands markdown file we want to mention that subagent(s) needs to be called, it ends up returning error that file does not exist with the agent name. Description of one of the custom command file I have. ``` Ask both agents @gpt-analyst and @gemini-analyst to provide their thorough review/analysis of the code changes which have been done and against current task. Also ask analysts to make sure they compare the code against RULES.md file (likely will be in a docs dir) Analyze the output individually for each agent. Identify pros, cons, trade-offs, critical bugs, issues, violation of RULES.md, share them with users. User should be able to know what analysis is given by what agent. ``` When I try to execute command for it, it ends up giving <img width="594" height="131" alt="Image" src="https://github.com/user-attachments/assets/e19ee2d7-9490-4aaa-80fd-a147a4eb12d0" />
yindo closed this issue 2026-02-16 17:31:37 -05:00
Author
Owner

@static-var commented on GitHub (Sep 2, 2025):

Also on a side note, does https://github.com/sst/opencode/releases/tag/v0.6.3 release set reasoning high for github-copilot/gpt-5?

@static-var commented on GitHub (Sep 2, 2025): Also on a side note, does https://github.com/sst/opencode/releases/tag/v0.6.3 release set reasoning high for `github-copilot/gpt-5`?
Author
Owner

@github-actions[bot] commented on GitHub (Sep 2, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2356: Similar issue where @file references break command calls from shell
  • #2327: OpenCode incorrectly interprets @ symbols in command content as file references, causing similar errors

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 2, 2025): This issue might be a duplicate of existing issues. Please check: - #2356: Similar issue where @file references break command calls from shell - #2327: OpenCode incorrectly interprets @ symbols in command content as file references, causing similar errors Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 2, 2025):

@static-var that makes sense I will address this

@rekram1-node commented on GitHub (Sep 2, 2025): @static-var that makes sense I will address this
Author
Owner

@rekram1-node commented on GitHub (Sep 2, 2025):

@static-var

Also on a side note, does https://github.com/sst/opencode/releases/tag/v0.6.3 release set reasoning high for github-copilot/gpt-5?

yeah p sure see here the check is based off modelID not provider

@rekram1-node commented on GitHub (Sep 2, 2025): @static-var > Also on a side note, does https://github.com/sst/opencode/releases/tag/v0.6.3 release set reasoning high for github-copilot/gpt-5? yeah p sure see [here](https://github.com/sst/opencode/blob/042802848ddd536f10076b6822db73c2a7de362d/packages/opencode/src/provider/transform.ts#L86-L101) the check is based off modelID not provider
Author
Owner

@static-var commented on GitHub (Sep 2, 2025):

Awesome, that's great news, Thank you!

@static-var commented on GitHub (Sep 2, 2025): Awesome, that's great news, Thank you!
Author
Owner

@rekram1-node commented on GitHub (Sep 2, 2025):

going to be fixed in next release

@rekram1-node commented on GitHub (Sep 2, 2025): going to be fixed in next release
Author
Owner

@static-var commented on GitHub (Sep 4, 2025):

Can verify it works like a charm, thank you!

@static-var commented on GitHub (Sep 4, 2025): Can verify it works like a charm, thank you!
Author
Owner

@cirqueira-labs commented on GitHub (Sep 10, 2025):

hey guys .. what about customs for github copilot provider ? saw that https://github.com/github/awesome-copilot

@rekram1-node @thdxr

@cirqueira-labs commented on GitHub (Sep 10, 2025): hey guys .. what about customs for github copilot provider ? saw that https://github.com/github/awesome-copilot @rekram1-node @thdxr
Author
Owner

@rekram1-node commented on GitHub (Sep 10, 2025):

Can you elaborate on what you mean?

@rekram1-node commented on GitHub (Sep 10, 2025): Can you elaborate on what you mean?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1575