You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/agents/tool-names.agent.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,7 @@ When adding a new tool to `toolNames.json`, also determine if it belongs in `aut
124
124
- The file is a plain JSON array of tool ID strings
125
125
- Add new entries at the end of the array (before the closing `]`)
126
126
- Keep related tool variants together (e.g., all variants of `read_file`)
127
+
-**Case-insensitive deduplication**: Before adding a tool ID, check if a differently-cased variant (e.g., lowercase equivalent) is already in the array. If `grep` is already there, do **not** add `Grep`. Only add a capitalized variant if the lowercase form is absent.
127
128
128
129
129
130
@@ -134,6 +135,7 @@ When adding a new tool to `toolNames.json`, also determine if it belongs in `aut
134
135
- Insert new MCP entries near existing entries with the same prefix
135
136
- Insert new non-MCP entries alphabetically or near logically related tools
136
137
- Never remove existing entries
138
+
-**Case-insensitive deduplication**: Before adding a new tool ID, check whether a lowercase (or differently-cased) variant already exists. If `grep` is already mapped, do **not** add `Grep`. If `tool_search` is already mapped, do **not** add `ToolSearch`. The lookup code handles exact-match only, so capitalized variants do map differently — but if both would resolve to the *exact same friendly name*, skip the duplicate. Only add a capitalized variant when it has a meaningfully different name or the lowercase form does not exist at all.
if already_added and not needs_adding and not case_variants:
123
144
lines.append("> **All tool names in this issue are already mapped.** This issue may be a duplicate — consider closing it.")
145
+
elif case_variants and not needs_adding:
146
+
lines.append("> **All unmapped tool names are case variants of existing entries.** No new entries should be added. Consider closing this issue.")
124
147
elif needs_adding:
125
148
lines.append(f"> **{len(needs_adding)} tool name(s) still need to be added.** Please use the `tool-names` custom agent or update `vscode-extension/src/toolNames.json` manually.")
0 commit comments