kimi-cli-runner

Execute Kimi Code CLI non-interactively with file-based prompts and output parsed text.

14|6|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/fkguo/nullius --skill kimi-cli-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kimi-cli-runner
Source: https://github.com/fkguo/nullius/tree/main/skills/kimi-cli-runner
Command: npx skills add https://github.com/fkguo/nullius --skill kimi-cli-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kimi-code, and includes scripts (resource) components.

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

Frequently Asked Questions about kimi-cli-runner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Kimi Code CLI non-interactively for automated code reviews?

To run Kimi Code CLI non-interactively, execute the provided shell script with file-based prompt inputs. It parses assistant text and outputs it to a specified file, enabling automated code reviews without an interactive prompt.

What is headless CLI execution with file-based prompt inputs?

Headless CLI execution with file-based prompt inputs is a non-interactive mode that reads prompts from files. This allows automated batch processing and script-driven execution of Kimi Code without requiring manual user interaction.

Do I need Kimi Code CLI installed and configured to use this execution script?

Yes, you need the Kimi Code CLI installed and configured as a prerequisite. The script utilizes Kimi Code's prompt mode for headless execution, meaning the core CLI environment must be properly set up beforehand.

Can I execute Kimi Code commands in an isolated working directory?

Yes, you can execute Kimi Code commands in an isolated working directory to prevent unintended file modifications. The script also optionally allows exposing a specific workspace directory to Kimi Code for more complex tasks.

How does the script handle failures during headless prompt execution?

To handle failures during headless prompt execution, the script includes built-in retry logic and model fallback mechanisms. This ensures robust execution by attempting recovery or switching models if the initial execution fails.

What's the best way to automate batch processing with Kimi Code?

The best way to automate batch processing with Kimi Code is using this script to execute the CLI headlessly. It reads file-based prompts, processes them in isolated directories, and outputs parsed assistant text directly to files for streamlined automation.