What problem does it solve?
This Skill allows users to run the Kimi Code CLI in a non-interactive prompt mode, supporting file-based inputs and isolated working directories.
Core Features & Use Cases
- Headless CLI Execution: Execute Kimi Code CLI commands from the command line without an interactive prompt.
- File-based Inputs: Supports reading prompts from files, making it suitable for automated tasks and batch processing.
- Isolated Working Directory: Runs commands in an isolated directory to prevent unintended file modifications.
- Optional Workspace Exposure: Allows exposure of a workspace directory to Kimi Code for more complex tasks.
- Retries and Model Fallback: Includes retry logic and model fallback for robust execution.
- Use Case: Use this Skill to automate complex code reviews, generate drafts, or synthesize information across multiple models.
Quick Start
To run Kimi Code CLI headlessly, use the following command:
run_kimi.sh --prompt-file /path/to/prompt.txt --out /path/to/output.txt