Tools
Kilocode ships experimental programmatic tool calling: the agent writes JS that calls MCP tools
Kilocode v7.7.4 (2026-09-18) adds an experimental Programmatic Tool Calling setting (PR #14230, also reachable via `KILO_EXPERIMENTAL_CODE_MODE`). When on, the agent calls MCP tools from a confined JavaScript program and discovers tools on demand, so fewer MCP tool definitions are sent to the model at all. This is the direct answer to MCP tool-definition bloat, where 40 connected servers eat the context window before the first user message.
Source
↳ Follow the thread