Skip to content

v0.0.23 — Kimi CLI & OpenCode Support

Choose a tag to compare

@brandomagnani brandomagnani released this 13 Feb 01:15

Added

  • Kimi CLI agent support (type: "kimi")

    • Parser for Kosong Messages format (--print --output-format stream-json)
    • Wire Protocol fallback for future compatibility
    • Models: moonshot/kimi-k2.5, moonshot/kimi-k2-turbo-preview
    • MCP config at ~/.kimi/mcp.json
  • OpenCode agent support (type: "opencode")

    • Parser for JSONL stream format (--format json)
    • Multi-provider model routing (openai/, anthropic/, google/ prefixes)
    • Models: openai/gpt-5.2, anthropic/claude-sonnet-4-5, anthropic/claude-opus-4-6, google/gemini-3-pro-preview
    • MCP config at ./opencode.json (project-level)
  • checkpointDirs registry field for agents with non-standard state directories

    • OpenCode uses XDG Base Directory spec: ~/.local/share/opencode/, ~/.config/opencode/, ~/.local/state/opencode/
    • buildTarCommand() includes all checkpoint dirs in tar archive
  • Python SDK type surface updated with 'kimi' and 'opencode' in AgentType literal

Fixed

  • OpenCode multi-provider BYOK env resolutionresolveAgentConfig() now checks providerEnvMap (model-specific key) before generic apiKeyEnv, so anthropic/... models resolve to ANTHROPIC_API_KEY instead of incorrectly using OPENAI_API_KEY
  • Kimi parser Kosong format — rewrote from Wire Protocol to actual Kosong Messages format (role-based assistant/tool messages with content arrays)
  • Kimi single-TextPart serialization — handle Kosong edge case where single TextPart is serialized as plain string instead of array