feat(builtins): add ListAgents and SendMessage to known built-in tools - #53
Merged
Merged
Conversation
Both are Claude Code multi-agent tools: ListAgents lists active agent sessions and SendMessage routes a message to a named agent. Skills that list either tool in allowed-tools: currently get a spurious tool-unknown warning; this adds them to BUILTIN_TOOLS so skillcheck recognizes them. Adds four new tests: two in builtins.test.ts (presence in the set) and two in checks.test.ts (no tool-unknown diagnostic for each tool).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
ListAgentsandSendMessageare Claude Code built-in tools for the multi-agent system.ListAgentslists active agent sessions (in-process subagents, other local sessions, cloud sessions), andSendMessageroutes a message to a named agent by ID. Neither is inBUILTIN_TOOLS, so any skill that lists either inallowed-tools:currently gets a spurioustool-unknownwarning. This adds them to the known set so skillcheck recognizes them correctly.What
"ListAgents"toBUILTIN_TOOLSinsrc/builtins.ts(alphabetically betweenKillShellandMonitor)"SendMessage"toBUILTIN_TOOLSinsrc/builtins.ts(alphabetically betweenScheduleWakeupandSendUserFile)Tests
test/builtins.test.ts: two new assertions confirmingBUILTIN_TOOLS.has("ListAgents")andBUILTIN_TOOLS.has("SendMessage")test/checks.test.ts: two new integration tests confirming neither tool triggers atool-unknowndiagnostic when listed inallowed-tools:npm run lint && npm run build && npm test)Self-merge gate
Generated by Claude Code