(Feat)Add Kimi as Supported Harness, Extraction/Synthesis Provider, Task Manager, Dreaming Provider#934
Open
aaf2tbz wants to merge 8 commits into
Open
(Feat)Add Kimi as Supported Harness, Extraction/Synthesis Provider, Task Manager, Dreaming Provider#934aaf2tbz wants to merge 8 commits into
aaf2tbz wants to merge 8 commits into
Conversation
aaf2tbz
marked this pull request as ready for review
July 19, 2026 05:10
Collaborator
|
Leaving this open but holding merge until we can verify functionality locally. The architecture review looks clean, but at 25k lines for a harness we cannot test without the Kimi binary, I need to validate it works before merging confidently. Two cleanup items for whenever this gets picked back up:
|
aaf2tbz
added a commit
that referenced
this pull request
Jul 19, 2026
Remove 5 committed dist/ build artifacts (22k+ lines) from integrations/kimi/connector/dist/ and add a .gitignore matching every other connector (dist/). Addresses review feedback from NicholaiVogel on PR #934.
aaf2tbz
force-pushed
the
feat/kimi-harness-provider-support
branch
2 times, most recently
from
July 19, 2026 22:18
f357c7f to
fc6b82a
Compare
aaf2tbz
added a commit
that referenced
this pull request
Jul 22, 2026
Remove 5 committed dist/ build artifacts (22k+ lines) from integrations/kimi/connector/dist/ and add a .gitignore matching every other connector (dist/). Addresses review feedback from NicholaiVogel on PR #934.
aaf2tbz
force-pushed
the
feat/kimi-harness-provider-support
branch
from
July 22, 2026 01:54
fc6b82a to
bd12dcb
Compare
aaf2tbz
added a commit
that referenced
this pull request
Jul 22, 2026
Remove 5 committed dist/ build artifacts (22k+ lines) from integrations/kimi/connector/dist/ and add a .gitignore matching every other connector (dist/). Addresses review feedback from NicholaiVogel on PR #934.
aaf2tbz
force-pushed
the
feat/kimi-harness-provider-support
branch
from
July 22, 2026 19:16
bd12dcb to
11343ad
Compare
Assisted-by: Kimi-Code:kimi-k2
Add Kimi (Kimi CLI / Kimi Code) as a first-class harness on par with Codex: - Core: kimi harness detection (~/.kimi-code), provider/executor kinds, model catalog (Kimi K3/K2.7/K2.6, default kimi-k2.7), TASK_HARNESSES - Daemon: createKimiProvider (kimi -p --output-format stream-json with sterile KIMI_CODE_HOME), inference factory, task spawn/validation, kimi transcript normalization, /api/harnesses entry - Connector: new @signet/connector-kimi installing SessionStart / UserPromptSubmit / SessionEnd hooks into ~/.kimi-code/config.toml, signet MCP stdio server into ~/.kimi-code/mcp.json, skills symlink; idempotent uninstall - CLI: setup/configure/sync harness choices, -H kimi hook handling with --kimi-json output mode - Dashboard: Active Harnesses, Pipeline extraction/synthesis provider options, Tasks harness selector (default kimi-k2.7 hidden) - Rust daemon parity: harnesses, scheduler VALID_HARNESSES, model registry, CliProvider, config defaults; route-parity.json regenerated - Docs: HARNESSES.md Kimi section, README harness table, CLI / CONFIGURATION / QUICKSTART / PIPELINE enumerations - Dreaming works via the session-synthesis provider path Assisted-by: Kimi-Code:kimi-k2
Remove 5 committed dist/ build artifacts (22k+ lines) from integrations/kimi/connector/dist/ and add a .gitignore matching every other connector (dist/). Addresses review feedback from NicholaiVogel on PR #934.
aaf2tbz
force-pushed
the
feat/kimi-harness-provider-support
branch
from
July 25, 2026 22:26
11343ad to
9fc635f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Kimi (Kimi CLI / Kimi Code) as a first-class supported harness in Signet, on par with Codex: setup/configure integration, dashboard Active Harnesses, extraction + session-synthesis provider, task-runner harness (default model Kimi K2.7, hidden), session hooks, sync support, dreaming provider support, and full Rust daemon parity.
Reference harness: Codex. Kimi mechanics (verified against official Kimi Code docs):
~/.kimi-code/(config.toml,mcp.json) — detection path[[hooks]]TOML entries; eventsSessionStart/UserPromptSubmit/SessionEnd; event JSON on stdin, context injection via stdoutkimi -p "<prompt>" --output-format stream-json(analogous tocodex exec --json)~/.kimi-code/mcp.jsonType
feat— new user-facing feature (bumps minor)Packages affected
@signet/core@signet/daemon@signet/cli/ dashboard@signet/connector-*(new@signet/connector-kimi)platform/daemon-rsPR Readiness (MANDATORY)
INDEX.md+dependencies.yaml)Changes
Core registries & detection (
platform/core/src/)identity.ts— detect Kimi via~/.kimi-code/config.toml.types.ts—TASK_HARNESSES+=kimi.pipeline-providers.ts— extraction/synthesis provider choices +=kimi.llm-model-catalog.ts—kimiprovider + models (Kimi K3, K2.7, K2.6) + defaults.routing.ts—kimiexecutor kind.Daemon providers (extraction / synthesis / dreaming)
platform/daemon/src/pipeline/provider.ts—createKimiProvider(spawnkimi -p --output-format stream-json, sterile env keyed onKIMI_CODE_HOME, mirrorscreateCodexProvider).platform/daemon/src/inference-provider-factory.ts—case "kimi".dreaming-worker.ts) verified with kimi.Connector & session hooks
integrations/kimi/connectorpackage (extendslibs/connector-base) — writes[[hooks]]SessionStart/UserPromptSubmit/SessionEnd into~/.kimi-code/config.toml, addssignetMCP stdio server to~/.kimi-code/mcp.json, skills install.surfaces/cli/src/commands/hook.ts—-H kimi+--kimi-jsonoutput mode.surfaces/cli/src/cli.ts—configureHarnessHooksdispatchcase "kimi".platform/daemon/src/transcript-normalization.ts— kimi stream-json transcript branch + test.CLI surfaces (setup / configure / sync)
surfaces/cli/src/features/setup-shared.ts—HarnessChoice,SETUP_HARNESS_CHOICES, provider mapping.setup.ts— harness checkbox,hasCommand("kimi")detection, extraction-provider model prompts.configure.ts— harness checkbox.sync.ts—detectInstalledHarnesses().templates/agent.yaml.template— document kimi harness.Dashboard
settings.svelte.ts—KNOWN_HARNESSES+=kimi(Agent tab → Active Harnesses).PipelineSection.svelte— Extraction/Synthesis Provider/Model kimi options (K3/K2.7).TaskForm.svelte— Harness selector += Kimi (default model K2.7 not shown to user).Tasks (daemon)
misc-routes.ts— task harness validation += kimi.scheduler/spawn.ts—buildCommandkimi case.scheduler/worker.ts— default model kimi-k2.7.Rust daemon parity (
platform/daemon-rs)routes/harnesses.rs,routes/scheduler.rs(VALID_HARNESSES+ test),signet-pipelineprovider.rs/model_registry.rs,signet-coreconfig.rs.route-parity.jsonregenerated;bun run check:rust-paritygreen; cargo tests green.Docs & tests
docs/HARNESSES.mdKimi section;README.mdharness table;docs/CLI.md;docs/CONFIGURATION.md;integrations/kimi/README.md.Testing
bun testpasses (core 198/200, cli 315/323, dashboard 65/65, daemon kimi-targeted suites green — remaining failures verified byte-identical on unmodified main baseline: forge detection, ACPX/process-group, linux desktop artifact env tests)bun run typecheckpasses (core, connector-kimi)bun run lint/ biome clean on all touched files/api/harnessesreturns Kimi CLI,/api/pipeline/models?provider=kimireturns K3/K2.7/K2.6, POST /api/tasks accepts harness=kimi and rejects unknown harnesses)bun run check:rust-paritygreen (328 routes, manifest regenerated); cargo tests green for signet-core/signet-pipeline/signet-daemon (5 pre-existing routes::pipeline failures on main unchanged)Known inherited failure:
check-rust-daemon-parity.test.tshas 1 failure carried over from main (2 repair routes missing in Rust) — fixed by #933, independent of this PR.AI disclosure
Assisted-bytags in commits)Notes
All items complete and verified.