feat: add Cline CLI integration as a compatible tool#47
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
Add Cline as a supported AI coding CLI in hcom (like Claude, Gemini, Codex, OpenCode, Kilo). Includes Tool enum, LaunchTool, PTY launcher, embedded hook scripts, config support, help entries, status checks, TUI support, and integration tests.
|
good idea but looks like would work better if was closer to how claude/codex work than the opencode plugin thing AI review: PR #47 - Cline IntegrationBranch: Approximate size: Note: PR description states this stacks on PR #45. If PR #45 is reshaped (per its own review), the shared scaffolding this PR reuses will not exist in that form, and this PR will need to be rebased onto a Cline-specific shape regardless of the issues below. VerdictDo not merge as-is. Cline support is a reasonable goal, but this PR installs hooks where Cline does not read them, routes delivery through the wrong model, advertises resume/fork without implementing Cline semantics, and accidentally removes OpenCode PTY coverage. The right shape is PTY launch plus runtime-injected Cline hooks, not an OpenCode-style plugin path. What The PR Adds
Blockers
What To Keep
Required Shape
Merge RecommendationReject. Rebuild around PTY plus runtime-injected hooks. The likely implementation is smaller and cleaner than the current forked scaffolding. |
Summary
Add Cline as a supported AI coding CLI in hcom (like Claude, Gemini, Codex, OpenCode, Kilo). Includes Tool enum, LaunchTool, PTY launcher, embedded hook scripts, config support, help entries, status checks, TUI support, and integration tests.
Changes
Tool::Clinevariant insrc/tool.rssrc/hooks/cline.rswith auto-acksrc/tools/cline_preprocessing.rs— preprocessingsrc/opencode_plugin/(TaskStart, TaskComplete, etc.)tests/test_pty_delivery.rsNote: This PR depends on Kilo being merged first (shared infrastructure in Tool enum cycling and launcher match arms).