Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
/**
* Extra tool name remapping for third-party agent detection bypass.
*
* Anthropic detects non-Claude-Code clients by checking for specific
* tool names that only third-party agents use (e.g. subagents, session_status).
* This module adds aliases for those tool names so they look like
* legitimate Claude Code tools.
*
* Mapping: lowercase original → TitleCase alias (sent to Anthropic)
* Response path reverses automatically via REVERSE_MAP in claudeCodeToolRemapper.ts
*
* To update: just add entries to EXTRA_TOOL_RENAME_MAP below.
*/
export const EXTRA_TOOL_RENAME_MAP: Record<string, string> = {
subagents: "SubDispatch",
session_status: "CheckStatus",
};