Agent status hooks for Kimi Code CLI — installer target or cookbook recipe? #332
Replies: 1 comment
|
cookbook recipe, (b). the installer can't cover every agent out of the box, so the bar is how many agterm users actually run the thing, weighed against what the target costs to carry. Each of the current four needs app-side code: a bundled wrapper or extension file, an ownership marker, a merge that parses and rewrites someone's existing kimi is niche in this user base today, and it also needs none of that machinery. The stock for the PR:
on the longer term: recipes are not a synchronized surface, they pin a version and get fixed when someone reports a break. If kimi picks up enough agterm users for the recipe to be reported broken often, that is the signal to revisit the installer. |
Uh oh!
There was an error while loading. Please reload this page.
Problem: the agent-status hooks installer (Help ▸ Install Agent Status Hooks…) covers Claude Code, Codex, Pi, and OpenCode — but not Kimi Code CLI (
kimi), Moonshot's coding agent. Kimi sessions running inside agterm show no sidebar glyphs, so among mixed agent sessions the kimi rows are the ones you can't triage at a glance.Why it looks cheap to add: Kimi Code has a Claude-Code-style hook system (docs) —
[[hooks]]entries in~/.kimi-code/config.toml, JSON payload on stdin, and the event names line up almost one-to-one with what the Claude hooks already use:UserPromptSubmit,PostToolUsepermission_prompt)PermissionRequestStopVerified locally (kimi-code 0.31.0, agterm 0.19.1): I pointed the four events above at the stock
agterm-agent-status.sh— unmodified — and the glyphs behave correctly: blink during a live turn, green check on Stop,--auto-resetclears on visit. Config used:Two kimi-specific facts worth knowing before deciding anything:
Stophook's stdout can be fed back as context — so the status script's existing always-exit-0 / suppress-output discipline is exactly right for kimi too, and worth keeping strict.PermissionRequestis observation-only and fires right before the approval prompt — no Auto-Review-style false-flag problem, so kimi should not need the pane-watcher workaround the Codex hook carries. Caveat: my test runs used kimi's auto permission mode, so I've verified active/completed live but not yet seenPermissionRequestfire — I'd exercise that path properly before any PR.The question: would you want kimi support as (a) a new target in the installer alongside the existing four, (b) a cookbook recipe (config snippet + README), or (c) not in scope? Happy to build and PR whichever shape fits — asking first per CONTRIBUTING before writing anything.
All reactions