Skip to content

feat(vscode): experimental CLAUDE code migration - #13929

Merged
WebReflection merged 10 commits into
mainfrom
claude-migration
Sep 9, 2026
Merged

WebReflection merged 10 commits into
mainfrom
claude-migration

Conversation

@WebReflection

Copy link
Copy Markdown
Contributor

What Problem This Solves

Global Claude Code configuration has no controlled path into Kilo. Compatibility fallback can also leave global Claude and Kilo instructions or skills active at the same time.

Why This Change Was Made

This adds an opt-in, one-time migration for the supported global Claude Code subset:

  • Imports global CLAUDE.md, standalone skills, and top-level MCP definitions only.
  • Uses a receipt and global config lock to guarantee one attempt with no automatic retry.
  • Preserves Claude source files byte-for-byte and never deletes them.
  • Skips unsupported syntax, symlinks, bundles, conflicts, unsafe destinations, and custom routing contexts.
  • Preserves literal MCP values while importing all MCP servers disabled.
  • Keeps existing Kilo instructions, skills, commands, and MCP names authoritative.
  • Stops automatic global Claude fallback after the migration attempt while preserving project-level Claude compatibility.
  • Reports complete, partial, skipped, failed, and incomplete outcomes through the existing notification feed.

User Impact

Enable Claude Code Migration (Experimental) under Kilo's Experimental settings. The migration runs on the next backend start. Claude source files remain unchanged for users who continue using Claude Code, while future global configuration changes are expected in Kilo.

@WebReflection
WebReflection marked this pull request as ready for review September 9, 2026 09:34
Comment thread packages/opencode/src/kilocode/config/claude-migration.ts Outdated
@kilo-code-bot

kilo-code-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • packages/opencode/src/kilocode/config/claude-migration.ts
  • packages/opencode/src/kilocode/skills/inject.ts
  • packages/opencode/test/kilocode/config/claude-migration.test.ts
Previous Review Summary (commit 7df22bb)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 7df22bb)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • packages/opencode/src/kilocode/config/claude-migration.ts
  • packages/opencode/src/kilocode/skills/inject.ts
  • packages/opencode/test/kilocode/config/claude-migration.test.ts

Reviewed by grok-4.6 · Input: 221.9K · Output: 20.2K · Cached: 437.5K

Review guidance: REVIEW.md from base branch main

Comment thread packages/opencode/src/kilocode/config/claude-migration.ts
Comment thread packages/opencode/src/kilocode/config/claude-migration.ts Outdated
Comment thread packages/opencode/src/kilocode/config/claude-migration.ts Outdated
Comment thread packages/opencode/src/kilocode/config/claude-migration.ts
Comment thread packages/opencode/src/kilocode/config/claude-migration.ts Outdated
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