Check and ensure multi-location loading for MCPs, Commands, and other resources (similar to Skills/Plugins refactor).
- Analyzed
server/index.js:- Found
loadAggregatedConfigfunction (lines 735-786). - Found
getSearchRootsfunction (lines 583-614).
- Found
- MCPs:
- Status: ✅ Already Multi-location.
- Logic:
loadAggregatedConfigiterates all search roots and mergesmcpServers.
- Commands:
- Status: ✅ Already Multi-location (JSON only).
- Logic:
loadAggregatedConfigiterates all search roots and mergescommand. - Directory: No
command/directory exists. Commands are strictly defined inopencode.json.
- Agents:
- Status:
⚠️ Mixed. - Markdown Agents: ✅ Aggregated via
getAgentDirs. - JSON Agents: ❌ Not aggregated (only active config).
- Status:
- Models/Providers:
- Status: ❌ Not aggregated (only active config via
loadConfig).
- Status: ❌ Not aggregated (only active config via
- The refactor for MCPs and Commands was effectively already in place via
loadAggregatedConfig. - No
command/directory logic exists or is needed unless requested. - "Etc etc" (Models, JSON Agents) are the only non-aggregated resources remaining.
- User Decision: confirm if JSON Agents and Models should be aggregated.
- Implementation: If yes, update
loadAggregatedConfigor consumer endpoints to merge them.