Task tool fails to call categorised agents by their lowercase letter names #1378

Closed
opened 2026-02-16 17:30:41 -05:00 by yindo · 1 comment
Owner

Originally created by @arsham on GitHub (Aug 19, 2025).

Originally assigned to: @rekram1-node on GitHub.

I am enjoying the changes in the #1999 PR, thank you!

However, if the agent is in the root of the agent directory, the Task tool can call the agent with the lowercase letters, and the Task tool should use the uppercase version for both the names and the sub-directory name. This is from my agent:

     • ✅ TASK/TASK-MANAGER → works
     • ❌ task/task-manager → fails
     • ✅ git-committer → works
     • ❌ GIT-COMMITTER → fails

Originally posted in https://github.com/sst/opencode/issues/1999#issuecomment-3201382100

Originally created by @arsham on GitHub (Aug 19, 2025). Originally assigned to: @rekram1-node on GitHub. I am enjoying the changes in the #1999 PR, thank you! However, if the agent is in the root of the `agent` directory, the Task tool can call the agent with the lowercase letters, and the Task tool should use the uppercase version for both the names and the sub-directory name. This is from my agent: ```markdown • ✅ TASK/TASK-MANAGER → works • ❌ task/task-manager → fails • ✅ git-committer → works • ❌ GIT-COMMITTER → fails ``` _Originally posted in https://github.com/sst/opencode/issues/1999#issuecomment-3201382100_
yindo closed this issue 2026-02-16 17:30:41 -05:00
Author
Owner

@rekram1-node commented on GitHub (Aug 19, 2025):

yeah looks like the parser was doing .toUpperCase() and it shouldn't have

@rekram1-node commented on GitHub (Aug 19, 2025): yeah looks like the parser was doing .toUpperCase() and it shouldn't have
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1378