feat(soul): add /reload-skills command to discover new skills without session restart - #2097
feat(soul): add /reload-skills command to discover new skills without session restart#2097cyliu0 wants to merge 3 commits into
Conversation
|
Addressed all review comments in ff5111a:
All fixes verified locally: , , and pass. |
ff5111a to
72daae8
Compare
|
All review comments addressed and rebased onto latest main:
Verified locally: ruff, pyright, and pytest all pass. |
73b1028 to
2fa83ae
Compare
a566b1b to
4e5defa
Compare
4e5defa to
725e2be
Compare
# Conflicts: # docs/en/configuration/config-files.md # docs/zh/configuration/config-files.md
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com> Signed-off-by: Chengyou Liu <35356271+cyliu0@users.noreply.github.com>
Related Issue
N/A
Description
Add
/reload-skillssoul-level slash command that rescans skill directories and rebuilds the slash command registry without restarting the session.Changes
/reload-skills: New soul-level slash command. Reloads skills from disk, updates the LLM context with the new skill list, and refreshes shell tab-completion.Runtime.reload_skills(): Rescans all skill directories and updates theKIMI_SKILLSbuiltin argument.Runtime.override_skills_dirs: New field to preserve the CLI--skills-dirintent. This fixes a bug whereskills_dirs(used for Glob access) was incorrectly passed toresolve_skills_roots, causing project-level skills to be skipped during reload when user-level skills exist.KimiSoul.refresh_slash_commands(): Rebuilds the slash command registry after skills change.tests/core/test_reload_skills.pycovering runtime reload, soul refresh, and builtin args update.Checklist
make gen-changelogto update the changelog.make gen-docsto update the user documentation.