Conversation
…gement Add GET /kilocode/command/files and POST /kilocode/command/remove, backed by a Kilo-owned discovery module that lists commands with editable file locations (and marks non-file commands as read-only built-ins). Wire the matching shared RPC contract, backend RPC implementation, DTO, and parser in the JetBrains plugin so clients can consume the endpoints. Regenerate the SDK.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Incremental review of commit Re-verified against current HEAD: the previous workflow-precedence warning on Files Reviewed (1 file)
Previous Review Summaries (3 snapshots, latest commit 5231fe5)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 5231fe5)Status: No Issues Found | Recommendation: Merge Incremental review of commit Re-verified against current HEAD: the previous workflow-precedence warning on Files Reviewed (1 file)
Previous review (commit fa9f4a5)Status: 4 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (19 files)
Fix these issues in Kilo Cloud Previous review (commit c7fd843)Status: 4 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (19 files)
Reviewed by kimi-k3 · Input: 41.8K · Output: 4.4K · Cached: 244.7K Review guidance: REVIEW.md from base branch |
feat(cli): add command file management parity with skills
Context
Brings file-backed commands/workflows to CLI API parity with skills.
GET /commandis built for slash-command execution and does not expose file locations or deletion, so editor clients could not safely manage command/workflow files the same way they manage skills.This PR adds Kilo-owned command-file endpoints that expose editable file locations, content, and command execution metadata (
agent,model,variant,subtask). That lets clients preserve model/variant settings and distinguish editable.mdfiles from built-in, MCP, skill-backed, or inline commands.location+contentGET /skillGET /kilocode/command/filesPOST /kilocode/skill/removePOST /kilocode/command/removePOST /instance/reloadPOST /instance/reloadImplementation
Added
GET /kilocode/command/filesandPOST /kilocode/command/remove. Discovery maps runtime commands back to command/workflow.mdfiles where possible, marks non-file commands read-only, follows the same symlink-aware command glob as runtime loading, and preserves command-file precedence over same-named legacy workflows. Remove validates the location and unlinks only the command.mdfile, mirroring skill removal.Regenerated SDK/OpenAPI output for the new
CommandFileshape and added a CLI changeset.Updated JetBrains shared/backend RPC contracts, DTOs, parsers, and tests so the plugin can list/save/delete/reload command files and receive command metadata through both workspace command lists and command-file lists. New command saves now accept the CLI discovery roots for project
.kilo/.kilocodecommand directories plus global/home config command roots. No JetBrains settings UI is included.Added HttpApi exerciser coverage for both new endpoints and stabilized a Windows cleanup-runner test that timed out in CI.
Verification
bun run typecheckinpackages/opencodebun test ./test/kilocode/command-files.test.tsinpackages/opencodebun run script/httpapi-exercise.ts --mode coverage --fail-on-missing --fail-on-skipinpackages/opencodebun test ./test/kilocode/test-runner-cleanup.test.tsinpackages/opencode./gradlew :backend:test --tests ai.kilocode.backend.rpc.KiloAgentBehaviorRpcApiImplTest --tests ai.kilocode.backend.cli.KiloCliDataParserTestinpackages/kilo-jetbrains./gradlew typecheckinpackages/kilo-jetbrainsChecklist