feat: add kode migrate command and drop legacy .claude reading - #206
Merged
Conversation
- Centered hero section with cleaner badge layout - Added table of contents for navigation - Reorganized content with tables and collapsible details - Condensed multi-model section (ASCII diagram + tables) - Reduced EN from 682 to ~330 lines, CN from 590 to ~340 lines - Used GitHub Alert syntax for important notices - Unified keyboard shortcuts and config as tables
- Add sampling.ts with CreateMessage request handler that routes through queryLLM for multi-provider LLM support - Declare sampling capability in getMcpClientCapabilities() so MCP servers know the client supports sampling - Register/unregister sampling handler in client lifecycle - Convert between MCP SamplingMessage and internal Anthropic format - Resolve model from server's modelPreferences hints - Map stop_reason between internal and MCP spec formats - Export sampling control APIs (enable/disable/test helpers) - Update capability tests for sampling enabled/disabled states
- Add /migrate command to copy .claude/ → .kode/ and CLAUDE.md → AGENTS.md Supports --project (default), --user, and --all flags - Remove CLAUDE.md reading from context system (getProjectDocsForCwd, getInstructionFilesNote) - Remove .claude/commands and .claude/skills loading from custom commands - Remove .claude directory watching from command watcher - Remove CLAUDE.md sync-write from hashCommand (only writes AGENTS.md) - Update HelpScreen to remove legacy directory listing BREAKING CHANGE: Kode no longer reads from .claude/ or CLAUDE.md by default. Run `kode migrate` to move existing configs to .kode/AGENTS.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
/migratecommand and remove default.claudereading, making.kodethe sole configuration source.Changes
New:
kode migratecommand.claude/directory contents (commands, skills, agents, output-styles, settings) →.kode/CLAUDE.md→AGENTS.md--project(default),--user,--allflagsBreaking: Drop legacy
.claudereadinggetProjectDocsForCwd()/getInstructionFilesNote()no longer readCLAUDE.md.claude/commandsor.claude/skills.claudedirectorieshandleHashCommand()only writes toAGENTS.md(no CLAUDE.md sync)Migration path
Users with existing
.claudeconfigs should run:This copies everything to
.kode//AGENTS.md. Old files can then be safely removed.BREAKING CHANGE
Kode no longer reads from
.claude/orCLAUDE.mdby default. Runkode migratefirst.