fix: add missing tools field to test-writer-fixer agent#184
Open
xiaolai wants to merge 1 commit intoComposioHQ:masterfrom
Open
fix: add missing tools field to test-writer-fixer agent#184xiaolai wants to merge 1 commit intoComposioHQ:masterfrom
xiaolai wants to merge 1 commit intoComposioHQ:masterfrom
Conversation
The test-writer-fixer agent had a valid description and color in its frontmatter but was missing the required `tools` field. Without it, the agent has no declared tool budget and its behavior is undefined across Claude Code versions. Added the tools the agent needs to execute its workflow: Bash (run tests), Read, Write, Edit (manage test files), Glob, Grep (discover tests and search code). Co-Authored-By: Claude Code <noreply@anthropic.com>
This was referenced Apr 21, 2026
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.
Bug
test-writer-fixer/agents/test-writer-fixer.mdhas a validname,description, andcolorin its frontmatter but is missing thetoolsfield entirely:In Claude Code, agents without a declared
toolsfield have an undefined tool budget. The behavior varies across versions — some fall back to a default set, others inherit nothing. For an agent whose entire purpose is to run tests, edit test files, and read source code, this is a functional bug: the agent may silently lack the tools it needs to operate.Fix
Added the
toolsfield listing the tools this agent needs:Rationale per tool:
Bash— run test runners (jest, pytest, mocha, etc.) and check test resultsRead— read source files and existing test filesWrite— create new test filesEdit— modify failing or brittle testsGlob— discover test files by patternGrep— search for imports, function names, and test patternsImpact
Without this fix, the agent's tool access is implementation-defined and may break silently as Claude Code evolves. Declaring tools explicitly makes the contract clear and ensures consistent behavior.