fix(kilocode): install commands under .kilo/commands#3672
Open
WOLIKIMCHENG wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Kilo Code command installation to its current .kilo/commands location while retaining legacy registration compatibility.
Changes:
- Moves generated Kilo commands to
.kilo/commands. - Adds
.kilocode/workflowsfallback handling. - Updates focused tests and documentation.
Show a summary per file
| File | Description |
|---|---|
src/specify_cli/integrations/kilocode/__init__.py |
Updates Kilo paths and legacy fallback. |
tests/integrations/test_integration_kilocode.py |
Tests canonical and legacy paths. |
tests/integrations/test_integration_forge.py |
Updates Kilo registrar expectation. |
docs/reference/integrations.md |
Documents the new command location. |
docs/upgrade.md |
Updates Kilo cleanup examples. |
AGENTS.md |
Updates integration guidance examples. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
docs/upgrade.md:252
- This duplicate-command cleanup example also omits the legacy
.kilocode/workflowsdirectory, which is where stale Kilo commands from pre-migration installations may remain. Show both Kilo command locations so the documented remediation actually finds the duplicates.
# Find the agent folder (example: .kilo/commands/)
cd .kilo/commands/
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Medium
Comment on lines
+16
to
+17
| "dir": ".kilo/commands", | ||
| "legacy_dir": ".kilocode/workflows", |
| ```bash | ||
| # Navigate to the agent's commands folder | ||
| cd .kilocode/workflows/ | ||
| cd .kilo/commands/ |
Collaborator
|
Please address Copilot feedback |
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.
Description
Closes #3635
Updates the Kilo Code integration to install Spec Kit command files under
.kilo/commands, matching Kilo Code's current project command location.This keeps the existing
kilocodeintegration key andrequires_cli=False, while adding.kilocode/workflowsas a legacy fallback for extension and preset command registration/removal in existing projects.Also updates focused tests and docs examples that referenced the old command directory.
Testing
.venv/bin/python -m pytest tests/integrations/test_integration_kilocode.py -v.venv/bin/python -m pytest tests/integrations/test_integration_forge.py::TestForgeCommandRegistrar::test_registrar_does_not_affect_other_agents -v.venv/bin/python -m pytest tests/test_agent_config_consistency.py -v.venv/bin/python -m pytest tests/integrations/test_registry.py -v.venv/bin/python -m pytest tests/integrations/test_integration_subcommand.py::TestIntegrationUpgrade::test_upgrade_migrates_opencode_legacy_dir -vgit diff --check -- AGENTS.md docs/reference/integrations.md docs/upgrade.md src/specify_cli/integrations/kilocode/__init__.py tests/integrations/test_integration_forge.py tests/integrations/test_integration_kilocode.py