Enhances the Kilocode IDE setup handler to generate a complete configuration structure similar to Claude Code, including:
**Custom Modes** (Enhanced):
- Improved metadata extraction from agent files
- Better roleDefinition and customInstructions
- Instructions to read agent file, execute activation, load config
- Access to read, edit, and terminal permissions
**Workflows** (.kilocode/workflows/):
- Generates markdown files for each standalone workflow
- Includes workflow description, execution instructions, and steps
- Slash command compatible format
- Organized documentation for each workflow
**Memory Bank** (.kilocode/rules/memory-bank/):
- brief.md - Project overview with installed modules
- product.md - Product context and user goals
- context.md - Current development state (with timestamp)
- architecture.md - Technical architecture and decisions
- tech.md - Technology stack and setup
- Only creates files if they don't exist (preserves user edits)
**Custom Rules** (.kilocode/rules/):
- bmad-conventions.md - BMAD framework conventions and best practices
- bmad-workflow-execution.md - Workflow execution guidelines
- Project-specific rules for consistent AI behavior
**Documentation**:
- Comprehensive README.md explaining the structure
- Usage instructions for modes, workflows, and Memory Bank
- Links to Kilocode documentation
**Cleanup**:
- Enhanced cleanup method removes both .kilocodemodes entries and .kilocode directory
This brings Kilocode integration to feature parity with Claude Code, providing users with:
- Context-aware AI through Memory Bank
- Specialized modes for each BMAD agent
- Automated workflow execution
- Consistent development standards
Based on Kilocode documentation:
- https://kilocode.ai/docs/features/custom-modes
- https://kilocode.ai/docs/features/slash-commands/workflows
- https://kilocode.ai/docs/advanced-usage/memory-bank
- https://kilocode.ai/docs/advanced-usage/custom-rules
- Added docs/ide-info/opencode.md
- Added tool/cli/installers/lib/ide/opencode.js
- Modified tools/installers/lib/ide/core/detector.js to include
detection for opencode command dir
- Modified tools/cli/platform-codes.yaml to include opencode config
- Modified tools/cli/installers/lib/ide/workflow-command-template.md to
include frontmatter with description as opencode requires this for
commands and adding it to the template by default does not seem to
impact other IDEs
- Modified src/modules/bmm/workflows/workflow-status/workflow.yaml
description so that it properly escapes quotes when interpolated in the
teplate
- Unify BMad directory name from 'BMad' to lowercase 'bmad'
- Use shared utility functions [getAgentsFromBmad] and [getTasksFromBmad] to fetch agents and tasks
- Create independent subdirectory structures (agents, tasks) for each module
- Update file writing paths to store TOML files by module classification
- Remove legacy QWEN.md merged documentation generation logic
- Add TOML metadata header support (not available in previous versions)
- Clean up old version configuration directories (including uppercase BMad and bmad-method)
Previously, the installer created empty tasks/ directories under
.claude/commands/bmad/{module}/ and attempted to copy task files.
Since getTasksFromDir() filters for .md files only and all actual
tasks are .xml files, these directories remained empty.
Tasks are utility files referenced by agents via exec attributes
(e.g., exec="{project-root}/bmad/core/tasks/workflow.xml") and
should remain in the bmad/ directory - they are not slash commands.
Changes:
- Removed tasks directory creation in module setup
- Removed tasks copying logic (15 lines)
- Removed taskCount from console output
- Removed tasks property from return value
- Removed unused getTasksFromBmad and getTasksFromDir imports
- Updated comment to clarify agents-only installation
Verified: No tasks/ directories created in .claude/commands/bmad/
while task files remain accessible in bmad/core/tasks/
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>