Skip to content

Conversation

@mcowger
Copy link
Contributor

@mcowger mcowger commented Nov 30, 2025

Context

In #3915, the apply_diff tool was summarily removed from most models, except when using models that contain the word 'claude'. This negatively impacts the success of tooling calling in other models/providers that implement it better (m2 on synthetic, codex-* on openai, etc), replacing it with an less effective (but simpler search and replace), and also prevents to use of the tool when using proxies like LiteLLM (where models might be renamed to not include the 'claude' term.

Unforuntately, this also removed signficant user choice with little to no clear evals or testing, reducing the usefulness of Kilo Code.

This PR restores apply_diff, controlled by the diffEnabled apiConfiguration in Advanced options, allowing users to opt in to diff based editing should they chose to do so.

Implementation

  1. Removed the global diffEnabled option. It was a relic from when that was not a per-profile configuration. Removed migrations, and updated code / tests to match
  2. Made diff editing default to 'off'.
  3. Restored apply diff and search and replace tools, guarded appropriately by if statements based on API config.

Get in Touch

mcowger

@changeset-bot
Copy link

changeset-bot bot commented Nov 30, 2025

🦋 Changeset detected

Latest commit: 5965cf1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mcowger mcowger force-pushed the mcowger/longLiveApplyDiff branch from 22b04d0 to 892380d Compare November 30, 2025 06:01
@chrarnoldus chrarnoldus requested review from chrarnoldus and removed request for chrarnoldus November 30, 2025 16:50
@chrarnoldus chrarnoldus self-assigned this Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants