Skip to content

feat(providers): add Kimi, subagents, and usage analytics - #8

Merged
awtprod merged 258 commits into
mainfrom
upstream-sync/bfc31507f848
Aug 1, 2026
Merged

feat(providers): add Kimi, subagents, and usage analytics#8
awtprod merged 258 commits into
mainfrom
upstream-sync/bfc31507f848

Conversation

@awtprod

@awtprod awtprod commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Problem

T3 Code did not support Kimi K3, and provider-native subagents, prompt-cache telemetry, and historical usage analytics were not represented consistently across providers. Command Center also needed a fail-closed isolation boundary before Kimi could be used for automations.

Fix

  • Add Kimi K3 as a first-class provider using the local Kimi REST/WebSocket runtime, including session continuity, approvals, questions, steering, interruption, attachments, model discovery, authentication state, and text generation.
  • Normalize native subagent lifecycle activity for Codex, Claude, ACP providers, OpenCode, and Kimi, with stable replay-safe cards and per-component usage.
  • Add provider-neutral cache capabilities and nullable cache read/write, token, context, duration, tool-use, and cost accounting without inventing unavailable telemetry.
  • Persist idempotent turn usage projections, effective-dated pricing and overrides, query filters, breakdowns, cache statistics, and K3 API-equivalent estimates.
  • Add responsive web and mobile Usage views plus expanded context meters, provider capability messaging, and documentation.
  • Gate Kimi Command Center routing behind Linux native-ELF and sandbox probes, with isolated homes, sanitized profiles, scoped workspace tools, and fail-closed cleanup.

Impact

Interactive Kimi threads are available across supported clients. All providers can retain native sessions for provider-managed prompt caching and report usage/subagent data to the extent their protocols expose it. Unknown metrics and pricing remain explicitly unavailable or partial. Kimi automations remain interactive-only unless the Linux isolation qualification succeeds.

Validation

  • Server, contracts, web, and mobile typechecks passed.
  • Focused provider, usage, migration, pricing, replay, ACP, and Kimi isolation/runtime tests passed.
  • Server and web production builds passed.
  • Lint passed with only pre-existing unrelated warnings.
  • Pre-commit public-repository safety scan, secret scan, formatting, and diff checks passed.

Follow-up verification

  • Live Kimi smoke testing was not possible on this host because no qualified Kimi installation/sandbox namespace is available.
  • UI screenshots are not attached because browser/computer-use verification was not authorized for this task.

Implemented with Codex (GPT-5) in the Codex desktop harness.

McMelonTV and others added 30 commits July 20, 2026 08:35
)

Co-authored-by: Shoaib Ansari <shoaibansari@Shoaibs-Mac-mini.local>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#2093)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <jmarminge@gmail.com>
Co-authored-by: root <root@localhost.localdomain>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…tgg#4163)

Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…tarting an empty one (pingdotgg#3617)

Co-authored-by: codex <codex@users.noreply.github.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Co-authored-by: Rhiz3K <rhiz3k@protonmail.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#4140)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…up (pingdotgg#4177)

Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…g#4113)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…#4217)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…om origin main (pingdotgg#4240)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…arning rows (pingdotgg#4244)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…cle (pingdotgg#4026)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
juliusmarminge and others added 22 commits July 31, 2026 01:11
… to new tasks (pingdotgg#5064)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…ngdotgg#4955)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…oot (pingdotgg#5102)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: T3 Code Test <t3code-test@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Aug 1, 2026
@awtprod
awtprod marked this pull request as ready for review August 1, 2026 18:56
@awtprod
awtprod merged commit 870dd76 into main Aug 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.