Skip to content

chore: remove codesearch tool - #11086

Merged
marius-kilocode merged 1 commit into
mainfrom
necessary-open
Jun 10, 2026
Merged

chore: remove codesearch tool#11086
marius-kilocode merged 1 commit into
mainfrom
necessary-open

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

OpenCode removed the experimental codesearch tool, but Kilo retained its implementation and Kilo-specific registration after the merge. That leaves an unsupported tool in the runtime and keeps permissions, settings, and documentation out of sync with upstream.

Remove the executable tool and its agent grants, permission handling, tests, settings control, and documentation. Web search remains available as its own permission, while existing client renderers and labels stay intact so historical sessions containing code-search calls continue to display correctly.

@kilo-code-bot

kilo-code-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

The PR cleanly removes the codesearch tool across all layers: tool implementation, agent permission grants, permission index, settings UI, i18n strings (all 20 languages updated), and documentation. A few notes on intentional design choices that were verified:

  • permission-dock-utils.ts intentionally retains codesearch: "ui.permission.toolLabel.codeSearch" so historical sessions that logged codesearch calls still render correctly in the UI — this is explicitly called out in the PR description.
  • The settings.permissions.tool.codesearch.* i18n keys in various locale files are similarly kept for historical rendering purposes.
  • websearch is correctly moved from GROUPED_TOOLS (where it was paired with codesearch) into TRAILING_TOOLS as a standalone entry.
  • The changeset correctly bumps both @kilocode/cli and kilo-code packages.
Files Reviewed (24 files)
  • .changeset/restore-scout-codesearch.md
  • packages/kilo-docs/pages/automate/how-tools-work.md
  • packages/kilo-docs/pages/automate/tools/index.md
  • packages/kilo-docs/pages/customize/custom-modes.md
  • packages/kilo-docs/pages/getting-started/settings/auto-approving-actions.md
  • packages/kilo-vscode/webview-ui/src/components/settings/PermissionEditor.tsx
  • packages/kilo-vscode/webview-ui/src/i18n/ar.ts, br.ts, bs.ts, da.ts, de.ts, en.ts, es.ts, fr.ts, it.ts, ja.ts, ko.ts, nl.ts, no.ts, pl.ts, ru.ts, th.ts, tr.ts, uk.ts, zh.ts, zht.ts
  • packages/opencode/src/agent/agent.ts
  • packages/opencode/src/kilocode/agent/index.ts
  • packages/opencode/src/kilocode/skills/kilo-config.md
  • packages/opencode/src/permission/index.ts
  • packages/opencode/src/tool/codesearch.ts (deleted)
  • packages/opencode/src/tool/codesearch.txt (deleted)
  • packages/opencode/src/tool/registry.ts
  • packages/opencode/test/kilocode/ask-agent-permissions.test.ts
  • packages/opencode/test/kilocode/scout-codesearch.test.ts (deleted)
  • packages/opencode/test/kilocode/tool-registry-indexing.test.ts

Fix these issues in Kilo Cloud


Reviewed by claude-4.6-sonnet-20260217 · 927,386 tokens

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit e59f886 into main Jun 10, 2026
24 checks passed
@marius-kilocode
marius-kilocode deleted the necessary-open branch June 10, 2026 16:48
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
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