`review-lane plan` resolved every cross-AI reviewer lane's reasoning effort by spawning `query resolve-execution gsd-plan-checker --host <slug>`. The agent id was a hardcoded literal, so `--host` chose only the argv RENDERING while the LEVEL always came from the installed plan-checker's frontmatter — `low` under every shipped model profile. Every prompt-fed lane therefore ran at a fast structural verifier's effort, and because the rendered argument is a CLI config override it silently beat the effort the operator had configured for that CLI. At `low` a large source-grounded prompt makes a model end its turn with no final message, so the lane came back empty and its stub read as a crash. Effort is a property of the review, so the lane declares it. Two new fields on ReviewerLane — `effortConfigKey` (`review.effort.<slug>`) and `defaultEffort` — carried through each capability manifest and the generated registry, set on the three lanes with an argv effort channel and null on the other nine. A new pure `resolveLaneEffort()` resolves config key -> lane default -> nothing, where "nothing" emits no effort argument at all and the reviewer CLI's own configuration decides; `inherit` selects that path explicitly and an unrecognized level falls back to the lane default rather than being forwarded to a CLI that would reject it. The host's negotiated effortSurface still gates the rendering, so ADR-1239/#2481's trust boundary holds on this path too. Resolving in-process also removes up to twelve subprocess spawns per review. The empty-output stub now names the effort the lane ran at and distinguishes a clean exit from a timeout kill, a non-zero exit, and a process that never ran — `status` is null for both a timeout and a signal, so those were indistinguishable before. The hint is hedged: a clean empty exit is most often a model stopping short, but it is also consistent with a CLI writing its output elsewhere. Also: the capability validator now knows both fields, rejects a malformed key or an out-of-vocabulary default, and rejects a default declared without a config key (a level the operator could never override). An existing end-to-end row in tests/effort-surface-axis.test.cjs asserted the old coupling; it now configures the lane's own key and pins the decoupling in the same real spawn, with the agent execution tier set to a level that must not appear. Emitted-Drift-Ack-Growth: review.md — the effort/model resolution-order table this fix adds. The workflow is where an operator looks to find out which knob set a lane's model and effort; leaving the new key undocumented there is the same invisibility that made the plan-checker coupling survive this long. Emitted-Drift-Ack-Growth: review.md — the effort/model resolution-order table this fix adds. The workflow is where an operator looks to find out which knob set a lane's model and effort, so leaving the new key undocumented there is the same invisibility that let the plan-checker coupling survive. Claude-Session: https://claude.ai/code/session_01CRMEuzNMWn3gs5uUW2ghcF Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Tom Boucher <trekkie@nomorestars.com>
168 lines
5.1 KiB
JSON
168 lines
5.1 KiB
JSON
{
|
|
"id": "kimi-code",
|
|
"role": "runtime",
|
|
"version": "1.12.0",
|
|
"title": "Kimi Code CLI",
|
|
"description": "Kimi Code CLI (Moonshot AI, Node) — Agent Skills auto-discovered at ~/.kimi-code/skills; global AGENTS.md at ~/.kimi-code/AGENTS.md; native config.toml + [[hooks]] bus; three built-in subagents (coder/explore/plan), NO custom named subagents; background dispatch; tier-2 support. Distinct from Python kimi-cli (the 'kimi' capability) per ADR-1239 EoS — Kimi Code cannot dispatch named subagents so the kimi-agents YAML layout does NOT apply; persona injection rides the existing ${AGENT_SKILLS_*} workflow fallback. Install-layout, agent-install-check, and install-time decision (kimi vs kimi-code) land in follow-up PRs; this descriptor is the EoS foundation.",
|
|
"tier": "core",
|
|
"requires": [],
|
|
"engines": {
|
|
"gsd": ">=1.7.0"
|
|
},
|
|
"runtime": {
|
|
"configHome": {
|
|
"kind": "dot-home",
|
|
"name": ".kimi-code",
|
|
"env": [
|
|
"KIMI_CODE_HOME"
|
|
],
|
|
"probe": [
|
|
"~/.kimi-code"
|
|
],
|
|
"probeExists": "config.toml"
|
|
},
|
|
"localConfigDir": ".kimi-code",
|
|
"configFormat": "none",
|
|
"artifactLayout": {
|
|
"global": [
|
|
{
|
|
"kind": "skills",
|
|
"destSubpath": "skills",
|
|
"prefix": "gsd-",
|
|
"nesting": "flat",
|
|
"recursive": false,
|
|
"converter": "convertClaudeCommandToKimiCodeSkill"
|
|
},
|
|
{
|
|
"kind": "agents",
|
|
"destSubpath": "agents",
|
|
"prefix": "gsd-",
|
|
"nesting": "flat",
|
|
"recursive": false,
|
|
"converter": null
|
|
}
|
|
],
|
|
"local": [
|
|
{
|
|
"kind": "agents",
|
|
"destSubpath": "agents",
|
|
"prefix": "gsd-",
|
|
"nesting": "flat",
|
|
"recursive": false,
|
|
"converter": null
|
|
}
|
|
]
|
|
},
|
|
"triggerPrecedence": [
|
|
"skills",
|
|
"commands"
|
|
],
|
|
"commandStyle": "slash-hyphen",
|
|
"hooksSurface": "kimi-hooks-toml",
|
|
"hookEvents": "claude",
|
|
"sandboxTier": "none",
|
|
"supportTier": 2,
|
|
"installSurface": "profile-marker-only",
|
|
"writesSharedSettings": false,
|
|
"permissionWriter": null,
|
|
"extendedHookEvents": [
|
|
"SubagentStop",
|
|
"Stop",
|
|
"PreCompact",
|
|
"SubagentStart"
|
|
],
|
|
"hostIntegration": {
|
|
"embeddingMode": "declarative",
|
|
"commandSurface": "slash-file",
|
|
"dispatch": {
|
|
"namedDispatch": false,
|
|
"nested": true,
|
|
"maxDepth": "undocumented",
|
|
"background": true,
|
|
"subagentToolkit": "built-in-only",
|
|
"backgroundDispatch": true,
|
|
"builtInSubagents": [
|
|
"coder",
|
|
"explore",
|
|
"plan"
|
|
],
|
|
"isolation": "orchestrator-worktree",
|
|
"maxConcurrency": "undocumented"
|
|
},
|
|
"modelMode": "passive",
|
|
"hookBus": "host",
|
|
"stateIO": "filesystem",
|
|
"transport": "mcp",
|
|
"runtime": "node"
|
|
},
|
|
"orchestratorExec": {
|
|
"command": "kimi",
|
|
"args": [],
|
|
"cwdFlag": null,
|
|
"promptFlag": "--prompt"
|
|
},
|
|
"hostBehaviors": {
|
|
"reapplyCommand": "/skill:gsd-update --reapply",
|
|
"localInstallDeferred": true,
|
|
"verificationStyle": "kimi-code",
|
|
"agentManifestStyle": "none",
|
|
"doneBannerStyle": "kimi-code",
|
|
"skipSharedHooksInstall": true,
|
|
"namedSubagentsSupported": false
|
|
}
|
|
},
|
|
"reviewer": {
|
|
"slug": "kimi-code",
|
|
"flags": [
|
|
"--kimi-code"
|
|
],
|
|
"transport": "spawn",
|
|
"probe": {
|
|
"kind": "command-capability",
|
|
"binary": "kimi",
|
|
"needle": "--output-format",
|
|
"timeoutMs": 5000
|
|
},
|
|
"invoke": {
|
|
"binary": "kimi",
|
|
"args": [
|
|
"{{model}}",
|
|
"-p",
|
|
"{{prompt}}"
|
|
],
|
|
"promptChannel": "argv-file-ref",
|
|
"outputChannel": "stdout",
|
|
"modelArg": "-m",
|
|
"effortChannel": "none"
|
|
},
|
|
"timeoutFloorMs": 900000,
|
|
"timeoutConfigKey": "review.timeouts.kimi-code",
|
|
"emptyOutput": "stub-with-stderr",
|
|
"reviewsSection": "Kimi Code",
|
|
"evidenceClass": "source-grounded",
|
|
"requiresBinaries": [],
|
|
"promptBudgetKey": "review.max_prompt_tokens_per_reviewer.kimi-code",
|
|
"modelConfigKey": "review.models.kimi-code",
|
|
"effortConfigKey": null,
|
|
"defaultEffort": null,
|
|
"handler": null
|
|
},
|
|
"config": {
|
|
"review.models.kimi-code": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Model passed to the Kimi Code reviewer lane."
|
|
},
|
|
"review.max_prompt_tokens_per_reviewer.kimi-code": {
|
|
"type": "number",
|
|
"default": -1,
|
|
"description": "Prompt-token budget for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
|
},
|
|
"review.timeouts.kimi-code": {
|
|
"type": "number",
|
|
"default": -1,
|
|
"description": "Outer wall-clock timeout override (seconds) for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
|
}
|
|
}
|
|
}
|