feat: add Kimi CLI support for spawn backends#36
Merged
tjb-tech merged 3 commits intoHKUDS:mainfrom Mar 20, 2026
Merged
Conversation
Adds first-class support for Moonshot AI's Kimi CLI as a spawn target. Both tmux and subprocess backends now handle: - Command detection (`kimi` binary) - Permission skipping via `--yolo` flag - Workspace directory via `-w` flag (like nanobot) - Prompt injection via `--print -p` flags - Workspace trust confirmation (same pattern as Claude) 3 new tests, 187 total passing.
kimi-cli has no Claude-like "trust this folder" startup dialog. The --yolo flag already handles all permission bypassing. The trust prompt strings were incorrectly assumed from Claude Code's behavior.
4 tasks
a24ibrah
pushed a commit
to a24ibrah/ClawTeam
that referenced
this pull request
Mar 30, 2026
feat: add Kimi CLI support for spawn backends
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 first-class support for Kimi CLI (Moonshot AI) as a spawn target, alongside Claude, Codex, Nanobot, and Gemini.
Changes
Both backends (
tmux_backend.py,subprocess_backend.py):_is_kimi_command()— detectskimibinary--yoloflag-wflag (same pattern as nanobot)--print -pflags (non-interactive mode with prompt)Tmux backend additionally:
_is_interactive_cli()updated to include KimiTests: 3 new tests covering tmux spawn, subprocess spawn, and workspace trust detection. All 187 tests pass.
Usage
Key Kimi CLI flags used
--yolo--dangerously-skip-permissions)-w PATH--print-p "prompt"Test plan
pytest tests/test_spawn_backends.py— 17/17 passpytest(full suite) — 187/187 passruff check— clean