feat(capture): recognize more agent tool names in the category taxonomy - #177
Merged
Conversation
Adds opencode (list/patch/todoread), Anthropic's text-editor tool (str_replace_based_edit_tool / str_replace_editor / text_editor), and common cross-agent snake_case names (read_file/write_file/edit_file/list_dir/ codebase_search/run_terminal_cmd/web_search) to the name-only category map. Each previously fell through to 'other', making those agents' Actions category breakdown less informative. Name-only, additive, no argument inspection.
read_file is now a recognized name (this branch maps it to 'read'), so it can no longer stand in for the unknown -> 'other' path in test_tool_activity_from_calls_aggregates_all_signals. Swap it for some_unknown_tool so that assertion still exercises 'other'.
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.
The name-only tool-category map recognized the Claude Code, Codex, and Hermes tool names but bucketed everything else as
other. This adds real, verified names that were falling through:list→search,patch→edit,todoread→plan (the ones not already shared with Claude/Codex names).str_replace_based_edit_tool/str_replace_editor/text_editor→ edit.read_file,write_file,edit_file,list_dir,codebase_search,run_terminal_cmd,web_search.Purely additive to the name→category dict; still name-only (never inspects arguments/paths). Improves the Actions category breakdown for non-Claude agents. Test extended.