Skip to content

feat(benchmark): compare Kimi coding plan over Anthropic and OpenAI protocols #1269

Closed

Description

@Astro-Han

Problem

The Terminal-Bench v11 comparison in #1217 used different API protocols:

  • Maka used the Anthropic-compatible Messages protocol.
  • Kimi Code used the OpenAI-compatible Chat Completions protocol.

Kimi supports both protocols, but Maka's Kimi connection is currently fixed to the Anthropic adapter. Protocol choice may change request serialization, reasoning replay, tool-call representation, usage reporting, and cache behavior.

A Maka-versus-Kimi-Code comparison cannot isolate that effect because the two harnesses also differ in system prompt, tools, and context policy.

Desired outcome

Allow the existing Kimi provider to select either protocol, then run a single-variable A/B within Maka.

Do not add a second Kimi provider or duplicate the model registry entry.

Before the benchmark, verify that both paths preserve:

  • max reasoning effort and reasoning replay;
  • tool-call IDs, arguments, and result pairing across multiple steps;
  • normalized usage and cache fields.

The A/B should hold the model, endpoint, prompt, tools, context policy, tasks, and time budget constant. Report pass rate, requests, input/cache/output tokens, latency, and cost where available.

Acceptance criteria

  • The existing Kimi provider supports explicit Anthropic or OpenAI protocol selection.
  • Contract tests cover reasoning replay, a multi-step tool loop, and usage normalization on both paths.
  • A smoke trace proves that protocol is the only intended request-shape difference.
  • The experiment uses request-level telemetry from feat(runtime): trace per-request provider usage and cache attribution #1268.
  • Raw results and paired task outcomes are retained.
  • The default protocol changes only if correctness is unchanged and absolute token, latency, or cost metrics improve.

Related

Activity

  1. added
    enhancement
    on Jul 20, 2026
  2. Nyvo-io commented on Jul 22, 2026

    @Nyvo-io
    Contributor

    I would like to take #1269 as the next implementation slice after #1336.

    I audited the current Kimi provider and the request-level telemetry boundary from #1268/#1277. I propose this implementation/evidence boundary:

    1. Add an explicit protocol selection to the existing Kimi connection/provider path; do not add a second Kimi provider or duplicate model registry entries.
    2. Preserve the current default protocol and existing user configurations. Make the protocol choice visible and backward-compatible.
    3. Add focused contract coverage for Anthropic-compatible and OpenAI-compatible multi-step tool loops, reasoning replay, tool-call/result pairing, normalized usage, cache fields, and request shape.
    4. Run a controlled paired A/B with the model, endpoint, prompt, tools, context policy, tasks, and time budget held constant. Retain raw request telemetry, paired outcomes, token/cache/latency/cost metrics, and the exact protocol difference.
    5. Change the default only if correctness is unchanged and the measured absolute token, latency, or cost metrics improve.

    I will keep the first PR focused on protocol selection, provider contract tests, and benchmark harness/reporting. No provider duplication, silent default change, or unrelated model UX work. Please assign me if this boundary matches the current intent.

  3. Astro-Han commented on Jul 22, 2026

    @Astro-Han
    ContributorAuthor

    Assigned, look forward to your PR~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions