feat: add KiloCode agent support#45
Conversation
- Add Kilo enum variant to tool.rs with kilo-start/status/read/stop hooks - Create hooks/kilo.rs with full lifecycle handlers (start, status, read, stop) - Create tools/kilo_preprocessing.rs for hcom bash auto-approval env vars - Add LaunchTool::Kilo to launcher.rs with PTY dispatch and plugin check - Add kilo to bootstrap.rs spawn list and delivery auto-check - Add kilo_args field to config.rs with HCOM_KILO_ARGS env and [launch.kilo] toml - Add kilo to router.rs LAUNCH_TOOLS and hook dispatch - Add kilo to commands/launch.rs preview and arg merging - Create hcom_kilo.ts plugin (kilocode-specific adaptation of hcom.ts) - Handle cross-agent merge conflicts with KiloCode naming
|
good idea but has some issues: PR #45 - KiloCode IntegrationBranch: Approximate size: VerdictDo not merge as-is. KiloCode is structurally an OpenCode-family tool, but the PR implements it as a mostly duplicated new tool with inconsistent names, wrong upstream paths, broken hook command names, and resume/fork drift. The contributor's instinct to reuse OpenCode-style integration is right; the execution multiplies everything instead of parameterizing the OpenCode family. What The PR Adds
Blockers
What To Keep
Required Shape
Merge RecommendationReject. Counter-propose a much smaller OpenCode-family integration, roughly a few hundred lines, using the correct upstream |
Summary
Add KiloCode as a supported AI coding CLI in hcom (like Claude, Gemini, Codex, OpenCode). Includes Tool enum variant, LaunchTool, PTY launcher, hook lifecycle handlers, preprocessing, config support, help entries, status checks, and TUI support.
Changes
Tool::Kilovariant insrc/tool.rssrc/hooks/kilo.rs(start/status/read/stop)src/tools/kilo_preprocessing.rs— bash auto-approval env varssrc/opencode_plugin/kilo-hcom.tsandhcom_kilo.ts— KiloCode plugins