fix(config): kilo.json schema validation + z.ai/MiniMax provider setup - #1477
Conversation
Remove 8 unrecognized keys that cause config validation failure: - name, description, version, node (not valid top-level fields) - agents, commands (defined via .kilo/agent/*.md and .kilo/command/*.md) - context (replaced with instructions glob array) - mcpServers (remapped to mcp with corrected sub-key names) - references (not a valid config key) Schema-corrected remapping: - agents.primary -> default_agent - context paths -> instructions glob array - mcpServers -> mcp (stdio->local, streamable-http->remote, args->command, env->environment) - description fields removed from MCP entries (not valid in schema) - Authorization headers from origin/main preserved on remote MCP servers Adds: permission block (bash/edit/read + z.ai MCP tool auto-approve), skills paths declaration. Refs: kilo-config skill schema, PMOVES-ClawZ/docs/providers/zai.md
…l registry Register two custom providers in kilo.json: z.ai (Z.AI Platform): - baseURL: https://api.z.ai/api/coding/paas/v4 (dedicated coding API) - Models: glm-5-turbo, glm-5.1, glm-4.7, glm-4.6, glm-4.6v, glm-4-air - Default model: zai/glm-5-turbo (primary coding model) - Small model: zai/glm-4-air (titles/summaries) - Whitelist: glm-* (auto-approve all GLM variants) MiniMax: - baseURL: https://api.minimax.chat/v1 - Models: minimax-m2.7 (1M context), minimax-m2.1 (100K context) - Whitelist: minimax-* - Per MINIMAX_INTEGRATION.md and minimax_provider_cascade.yaml Model mapping (per kilocode-glm.md agent doc): - Claude sonnet/opus -> glm-5.1, haiku -> glm-4.5-air (for interop) - MiniMax used for: long-context research, hyperdimensional ops, AGENT TRAILS, wave-function collapse, writing/vibes overflow Refs: pmoves/docs/MINIMAX_INTEGRATION.md, pmoves/tools/models/minimax_provider_cascade.yaml, pmoves/docs/AGENTS/MINIMAX_GLM_PARITY_ANALYSIS.md
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughKilo.json undergoes a comprehensive configuration schema migration: legacy metadata and orchestration fields are replaced with a unified provider-centric structure, MCP servers are redefined as either local commands or remote endpoints, and capabilities are now gated by explicit skills and permission rules. ChangesConfiguration Schema Migration
🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b7d8da9a4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b7d8da9a4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Both custom OpenAI-compatible providers were missing options.apiKey, causing unauthenticated requests that fail with 401. Refs Z_AI_API_KEY and MINIMAX_API_KEY consistent with existing MCP Authorization headers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
Changes
Commit 1: fix(config): migrate kilo.json to valid Kilo schema
Removes 8 invalid keys and remaps to valid schema fields. Adds permission block and skills paths. Preserves Authorization headers on remote MCP servers.
Commit 2: feat(config): add z.ai and MiniMax provider definitions
Adds provider block with two custom providers and model/small_model defaults.
Testing
Summary by CodeRabbit