360 Secure SkillHub
360 安全技能中心

KiloCode

Kilocode 是一个 AI 编码智能体 CLI:用户以自然语言提示生成代码、重构、调试并运行终端命令,支持交互式 REPL、单次执行、续接会话和无人值守的 auto 模式。它通过 Kilo provider 接入多种模型,可读写文件、执行命令并访问浏览器。

weinguyen1224-glitch
weinguyen1224-glitch
热度 56.70
最近更新 2026-05-11 17:37:31
分类:开发依赖:代码执行 / 读写文件 / 联网浏览搜索 / 内部调用大模型应用场景:代码生成 / 调试排错 / 自动化脚本 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add kilocode
Metadata
name
kilocode
description
AI coding agent CLI tool for generating code from natural language, automating tasks, and running terminal commands. Use when user wants to perform coding tasks, generate code, refactor, debug, or automate development workflows via CLI. Supports 500+ AI models via Kilo provider.

Kilocode

Kilocode is an AI coding agent CLI tool that generates code from natural language, automates tasks, and runs terminal commands.

Basic Usage

Run in any project directory:

kilo

Non-interactive mode

Execute a single prompt without entering interactive REPL:

kilo run '<prompt>'

Continue previous conversation:

kilo run --continue '<prompt>'

Fully autonomous mode (CI/CD, no prompts):

kilo run --auto '<prompt>'

Common Commands

Command Description
kilo Start interactive REPL
kilo run "prompt" Execute single prompt
kilo run --continue "prompt" Continue with previous context
kilo run --auto "prompt" Autonomous mode (no permission prompts)
kilo --help Show help

Examples

Generate code

kilo run "Create a Python function to calculate fibonacci sequence with memoization"

Debug

kilo run "Fix the bug in index.js where the async function returns undefined"

Refactor

kilo run "Refactor the React component to use hooks instead of class"

Run terminal commands

kilo run "Run npm test and fix any failing tests"

CI/CD automation

kilo run --auto "Run linting, tests, and build the project"

Models

Kilocode supports 500+ AI models via the Kilo provider (configured in auth-profiles). Popular models:

  • Gemini 3.1 Pro (default, fast)
  • Claude 4.6 Sonnet & Opus (high quality)
  • GPT-5.2 (OpenAI)

Model selection is handled automatically based on provider configuration. No need to specify model unless required.

Tips

  • Use --auto flag only in trusted environments (CI/CD)
  • Provide clear, specific prompts for better results
  • Kilo can read and write files, run commands, and interact with browser
  • Check kilo.ai for documentation and updates