You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taking this one. Good news versus the usual new-provider flow: I have a live Kimi Code CLI install (0.27.0) with real sessions generated locally, so the provider is being built against a verified store schema from day one, not reverse engineering.
What the store looks like (verified on disk): ~/.kimi-code/sessions/wd_<project>_<hash>/session_<uuid>/ with a state.json (title, workDir, agents map) and per-agent agents/<id>/wire.jsonl event streams. Per-turn usage comes from usage.record events (inputOther, output, inputCacheRead, inputCacheCreation), the real model id (e.g. kimi-k3) lives on llm.request events (the usage.record.model field is the config alias, a trap worth knowing about), there are no cost fields so cost is computed from tokens (kimi-k3 pricing is already in the fallback since #709), and failed sessions leave retry-only streams with no usage records. Subagents get their own wire.jsonl, and multi-turn continuations append to the same stream.
Note for scoping: kimi-cli (the predecessor) is being wound down and Kimi Code CLI migrates its config and sessions on install, so this provider targets the ~/.kimi-code store only.
PR to follow shortly with sanitized fixtures for all the observed shapes (success, multi-tool, multi-turn, retry-only, subagent, malformed lines).
PR is up: #750. Built and validated against a real local Kimi Code CLI store (details in the PR body), fixture-based tests for every observed session shape, hardened after an adversarial multi-model review. @tingles2233 if you have real kimi-k3 usage in ~/.kimi-code, giving the branch a spin and confirming your numbers look right would be a great extra data point before merge.
Activity
ozymandiashh commentedon Jul 18, 2026
Taking this one. Good news versus the usual new-provider flow: I have a live Kimi Code CLI install (0.27.0) with real sessions generated locally, so the provider is being built against a verified store schema from day one, not reverse engineering.
What the store looks like (verified on disk):
~/.kimi-code/sessions/wd_<project>_<hash>/session_<uuid>/with astate.json(title, workDir, agents map) and per-agentagents/<id>/wire.jsonlevent streams. Per-turn usage comes fromusage.recordevents (inputOther,output,inputCacheRead,inputCacheCreation), the real model id (e.g.kimi-k3) lives onllm.requestevents (theusage.record.modelfield is the config alias, a trap worth knowing about), there are no cost fields so cost is computed from tokens (kimi-k3 pricing is already in the fallback since #709), and failed sessions leave retry-only streams with no usage records. Subagents get their own wire.jsonl, and multi-turn continuations append to the same stream.Note for scoping: kimi-cli (the predecessor) is being wound down and Kimi Code CLI migrates its config and sessions on install, so this provider targets the
~/.kimi-codestore only.PR to follow shortly with sanitized fixtures for all the observed shapes (success, multi-tool, multi-turn, retry-only, subagent, malformed lines).
ozymandiashh commentedon Jul 18, 2026
PR is up: #750. Built and validated against a real local Kimi Code CLI store (details in the PR body), fixture-based tests for every observed session shape, hardened after an adversarial multi-model review. @tingles2233 if you have real kimi-k3 usage in ~/.kimi-code, giving the branch a spin and confirming your numbers look right would be a great extra data point before merge.
feat(kimicode): Kimi Code CLI provider, parse ~/.kimi-code wire sessi…