Skip to content

Commit 89f60ac

Browse files
authored
Merge branch 'main' into mcowger/nativeToolDefinitions
2 parents 94771de + 92c758f commit 89f60ac

File tree

193 files changed

+2866
-1372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+2866
-1372
lines changed

CHANGELOG.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
# kilo-code
22

3-
## [v4.111.1]
3+
## [v4.112.1]
4+
5+
- [#3375](https://github.com/Kilo-Org/kilocode/pull/3375) [`52d39dd`](https://github.com/Kilo-Org/kilocode/commit/52d39ddaadf3b3ce8388db02078b004b6573e6da) Thanks [@RSO](https://github.com/RSO)! - Fixed autocomplete enabling/disabling
6+
7+
## [v4.112.0]
8+
9+
- [#3346](https://github.com/Kilo-Org/kilocode/pull/3346) [`c70b93e`](https://github.com/Kilo-Org/kilocode/commit/c70b93e80de2e365c2dadad516006752c6fac54a) Thanks [@mcowger](https://github.com/mcowger)! - Update baseURL for Vertex Anthropic models to fix.
10+
11+
### Patch Changes
12+
13+
- [#3346](https://github.com/Kilo-Org/kilocode/pull/3346) [`5d82884`](https://github.com/Kilo-Org/kilocode/commit/5d828842b502b6accd2e0423db99ef8bdc0dbf33) Thanks [@mcowger](https://github.com/mcowger)! - Fixed Anthropic models not working on Google Vertex Global
14+
15+
## [v4.111.2]
416

5-
- [#3337](https://github.com/Kilo-Org/kilocode/pull/3337) [`85a4447`](https://github.com/Kilo-Org/kilocode/commit/85a4447da76fc51697fb098a9cdda1d2064f7d1b) Thanks [@mcowger](https://github.com/mcowger)! - Added MiniMax M2 to Synthetic Provider
17+
- [#3363](https://github.com/Kilo-Org/kilocode/pull/3363) [`233334c`](https://github.com/Kilo-Org/kilocode/commit/233334cd284477290b67359add7e0f703d8707b7) Thanks [@markijbema](https://github.com/markijbema)! - Various improvements to the autocomplete functionality
18+
19+
## [v4.111.1]
620

721
- [#3282](https://github.com/Kilo-Org/kilocode/pull/3282) [`ed4399b`](https://github.com/Kilo-Org/kilocode/commit/ed4399b7d82d735895fbf4d85cfaefff5002571a) Thanks [@chrarnoldus](https://github.com/chrarnoldus)! - Improved handling of tool calls in the API conversation history
822

apps/kilocode-docs/docs/basic-usage/connecting-providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sidebar_label: Overview
1515
- [Open source](https://github.com/Kilo-Org/kilocode)
1616
- Connects to any AI provider
1717

18-
### Kilo Code API Provider
18+
### Kilo Gateway Provider
1919

2020
- **Built-in option** that comes with the extension
2121
- Google sign-in with free credits included

apps/kilocode-docs/docs/cli.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,11 @@ This instructs the AI to proceed without user input.
227227
### DevTools
228228
229229
In order to run the CLI with devtools, add `DEV=true` to your `pnpm start` command, and then run `npx react-devtools` to show the devtools inspector.
230+
231+
## Switching into an Organization from the CLI
232+
233+
Use the `/teams` command to see a list of all organizations you can switch into.
234+
235+
Use `/teams select` and start typing the team name to switch teams.
236+
237+
The process is the same when switching into a Team or Enterprise organization.

apps/kilocode-docs/docs/features/experimental/experimental-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ It replaces brittle XML-style prompts that risk mixed prose/markup, missing fiel
2828

2929
## Autocomplete
3030

31-
When enabled, Kilo Code will provide inline code suggestions as you type. Currently this requires the Kilo Code API Provider in order to use it.
31+
When enabled, Kilo Code will provide inline code suggestions as you type. Currently this requires the Kilo Gateway Provider in order to use it.
3232

3333
## Concurrent file edits
3434

apps/kilocode-docs/docs/getting-started/connecting-api-provider.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ sidebar_label: Connecting To A Provider
44

55
# Connecting an AI Provider
66

7-
Kilo Code requires an API key from an AI model provider to function.
7+
Kilo Code requires an API key from an AI model provider to function.
88

99
We recommend these options for accessing the powerful **Claude 4 Sonnet** model:
1010

11-
- **Kilo Code API provider (Recommended):** Provides access to all of the models available through OpenRouter with competitive pricing and free credits to get started. [View pricing](https://kilocode.ai/pricing)
11+
- **Kilo Gateway (Recommended):** Provides access to all of the models available through OpenRouter with competitive pricing and free credits to get started. [View pricing](https://kilocode.ai/pricing)
1212
- **OpenRouter:** Provides access to multiple AI models through a single API key. [View pricing](https://openrouter.ai/models?order=pricing-low-to-high).
1313
- **Anthropic:** Direct access to Claude models. Requires API access approval and may have [rate limits depending on your tier](https://docs.anthropic.com/en/api/rate-limits#requirements-to-advance-tier). See [Anthropic's pricing page](https://www.anthropic.com/pricing#anthropic-api) for details.
1414

1515
## Using the Kilo Code Provider
16+
1617
By default when you install Kilo Code the extension, you'll be prompted to sign in or create an account in the [Kilo Code Provider](/providers/kilocode).
1718

1819
That will walk you through the account setup and _automatically_ configure Kilo Code properly to get you started. If you'd rather use another provider, you'll need to manually get your API key as described below.
@@ -34,7 +35,7 @@ LLM routers let you access multiple AI models with one API key, simplifying cost
3435

3536
<img src="/docs/img/connecting-api-provider/connecting-api-provider-4.png" alt="OpenRouter API keys page" width="600" />
3637

37-
*OpenRouter dashboard with "Create key" button. Name your key and copy it after creation.*
38+
_OpenRouter dashboard with "Create key" button. Name your key and copy it after creation._
3839

3940
##### Requesty
4041

@@ -45,7 +46,7 @@ LLM routers let you access multiple AI models with one API key, simplifying cost
4546

4647
<img src="/docs/img/connecting-api-provider/connecting-api-provider-7.png" alt="Requesty API management page" width="600" />
4748

48-
*Requesty API management page with "Create API Key" button. Copy your key immediately - it's shown only once.*
49+
_Requesty API management page with "Create API Key" button. Copy your key immediately - it's shown only once._
4950

5051
#### Option 2: Direct Providers
5152

@@ -60,7 +61,7 @@ For direct access to specific models from their original providers, with full ac
6061

6162
<img src="/docs/img/connecting-api-provider/connecting-api-provider-5.png" alt="Anthropic console API Keys section" width="600" />
6263

63-
*Anthropic console API Keys section with "Create key" button. Name your key, set expiration, and copy it immediately.*
64+
_Anthropic console API Keys section with "Create key" button. Name your key, set expiration, and copy it immediately._
6465

6566
##### OpenAI
6667

@@ -71,7 +72,7 @@ For direct access to specific models from their original providers, with full ac
7172

7273
<img src="/docs/img/connecting-api-provider/connecting-api-provider-6.png" alt="OpenAI API keys page" width="600" />
7374

74-
*OpenAI platform with "Create new secret key" button. Name your key and copy it immediately after creation.*
75+
_OpenAI platform with "Create new secret key" button. Name your key and copy it immediately after creation._
7576

7677
### Configuring the Provider in Kilo Code
7778

@@ -81,6 +82,6 @@ Once you have your API key:
8182
2. In the welcome screen, select your API provider from the dropdown
8283
3. Paste your API key into the appropriate field
8384
4. Select your model:
84-
- For **OpenRouter**: select `anthropic/claude-3.7-sonnet` ([model details](https://openrouter.ai/anthropic/claude-3.7-sonnet))
85-
- For **Anthropic**: select `claude-3-7-sonnet-20250219` ([model details](https://www.anthropic.com/pricing#anthropic-api))
85+
- For **OpenRouter**: select `anthropic/claude-3.7-sonnet` ([model details](https://openrouter.ai/anthropic/claude-3.7-sonnet))
86+
- For **Anthropic**: select `claude-3-7-sonnet-20250219` ([model details](https://www.anthropic.com/pricing#anthropic-api))
8687
5. Click "Let's go!" to save your settings and start using Kilo Code

apps/kilocode-docs/docs/seats/analytics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ sidebar_label: Usage Analytics & Reporting
44

55
# Usage Analytics & Reporting
66

7-
Using Kilo seats with an Enterprise or Teams subscription provides detailed usage analytics to help you monitor and understand your organization’s AI usage patterns, costs, and activity through the Kilo Code API provider.
7+
Using Kilo seats with an Enterprise or Teams subscription provides detailed usage analytics to help you monitor and understand your organization’s AI usage patterns, costs, and activity through the Kilo Gateway provider.
88

99
## Analytics Dashboard Overview
1010

11-
Access your organization’s usage analytics through the **Usage Details** section in your dashboard. The analytics show comprehensive data about your team's usage of the Kilo Code API provider.
11+
Access your organization’s usage analytics through the **Usage Details** section in your dashboard. The analytics show comprehensive data about your team's usage of the Kilo Gateway provider.
1212

1313
:::info Usage Scope
14-
This usage overview includes all of your usage of the Kilo Code API provider. It does **NOT** include any usage made via the Kilo Code extension to other, non-Kilo Code providers. You can choose which API provider to use from the extension's main settings page.
14+
This usage overview includes all of your usage of the Kilo Gateway provider. It does **NOT** include any usage made via the Kilo Code extension to other, non-Kilo Code providers. You can choose which API provider to use from the extension's main settings page.
1515
:::
1616

1717
## Summary Metrics

apps/kilocode-docs/docs/seats/billing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ To fill empty seats or remove members ahead of seat deletion, see the [team mana
6565

6666
To fill empty seats or remove members ahead of seat deletion, see the [team management](/seats/team-management) page.
6767

68-
## Invoiceas
68+
## Invoices
6969

7070
Invoices for any payment on the Kilo Code platform, for seats or credits, will be available in the Invoices tab.
7171

cli/CHANGELOG.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,82 @@
11
# @kilocode/cli
22

3+
## 0.0.13
4+
5+
### Patch Changes
6+
7+
- [#3369](https://github.com/Kilo-Org/kilocode/pull/3369) [`e41556e`](https://github.com/Kilo-Org/kilocode/commit/e41556e81a190cafa123e84bd804f7fbede36419) Thanks [@RSO](https://github.com/RSO)! - Add support for showing Kilo Code notifications
8+
9+
## 0.0.12
10+
11+
### Patch Changes
12+
13+
- [#3352](https://github.com/Kilo-Org/kilocode/pull/3352) [`c89bd23`](https://github.com/Kilo-Org/kilocode/commit/c89bd23be4196e95f6577c37b149690832d0be97) Thanks [@Sureshkumars](https://github.com/Sureshkumars)! - MCP operations were being auto-rejected in CI mode (autonomous mode) even when `autoApproval.mcp.enabled: true`, breaking GitHub Actions workflows and other autonomous operations that rely on MCP servers.
14+
15+
**Root Cause:** The extension sends MCP requests with the ask type set to the operation name (e.g., `"use_mcp_server"`, `"access_mcp_resource"`), but the approval decision logic only handled these as tool names within the `"tool"` ask type. This caused MCP requests to fall through to the default case and get auto-rejected.
16+
17+
The approval decision service uses a switch statement on `askType` to determine whether to auto-approve, auto-reject, or require manual approval:
18+
19+
```typescript
20+
switch (askType) {
21+
case "tool": // handles tool names like "readFile", "writeFile"
22+
case "command": // handles command execution
23+
case "followup": // handles followup questions
24+
case "api_req_failed": // handles retry requests
25+
default: // ❌ MCP ask types fell here → auto-reject
26+
}
27+
```
28+
29+
Added explicit cases for MCP ask types to the switch statement:
30+
31+
```typescript
32+
case "use_mcp_server":
33+
case "access_mcp_resource":
34+
if (config.mcp?.enabled) {
35+
return { action: "auto-approve" }
36+
}
37+
return isCIMode ? { action: "auto-reject", ... } : { action: "manual" }
38+
```
39+
40+
Also enhanced the tool handler to catch MCP operations sent as tool names (in case the extension changes format):
41+
42+
```typescript
43+
if (tool === "use_mcp_tool" || tool === "use_mcp_server" || tool === "access_mcp_resource") {
44+
if (config.mcp?.enabled) {
45+
return { action: "auto-approve" }
46+
}
47+
// ... rejection logic
48+
}
49+
```
50+
51+
- **Chose explicit ask type handling** over mapping ask types to tool names (cleaner, respects extension's message format)
52+
- **Kept both ask type and tool name handlers** for defense-in-depth (minimal overhead, prevents future breakage)
53+
- **Removed verbose logging** to reduce noise while maintaining troubleshooting capability
54+
55+
| before | after |
56+
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
57+
| MCP operations auto-rejected in CI mode with error "Auto-rejected in CI mode" | MCP operations auto-approved when autoApproval.mcp.enabled: true |
58+
| <img width="1444" height="499" alt="before-the-fix" src="https://github.com/user-attachments/assets/57e5820d-196c-4138-8b3d-1f185fc1db56" /> | <img width="1506" height="717" alt="after-the-fix" src="https://github.com/user-attachments/assets/a165aa9c-0018-47e4-a274-fed056716407" /> |
59+
60+
1. Just `kilocode --auto "Review the PR #2 in X/X repo, use github mcp servers if needed"`
61+
2. Configure MCP settings with GitHub MCP server
62+
3. Set `autoApproval.mcp.enabled: true` in config
63+
64+
```bash
65+
cat > ~/.kilocode/cli/config.json <<EOF
66+
{
67+
"version": "1.0.0",
68+
"autoApproval": {
69+
"mcp": {
70+
"enabled": true
71+
}
72+
}
73+
}
74+
EOF
75+
76+
`kilocode --auto "Review the PR #2 in X/X repo, use github mcp servers if needed"`
77+
78+
```
79+
380
## 0.0.11
481

582
### Patch Changes

cli/package.dist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kilocode/cli",
3-
"version": "0.0.11",
3+
"version": "0.0.13",
44
"description": "Terminal User Interface for Kilo Code",
55
"type": "module",
66
"main": "index.js",

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kilocode/cli",
3-
"version": "0.0.11",
3+
"version": "0.0.13",
44
"description": "Terminal User Interface for Kilo Code",
55
"type": "module",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)