OpenClaw-Kilo-Agent
This skill coordinates the Kilo CLI to perform complex execution tasks, from deep codebase refactoring to automated browser interactions.
Core Capabilities
- - Heavy-Lifting Coding: Offload file-intensive tasks to the specialized Kilo agent.
- Browser Automation: Control web browsers via Puppeteer MCP integration.
- Session Continuity: Resume or fork existing Kilo sessions to maintain context.
- Autonomous Execution: Run Kilo with
--auto for hands-free automation in OpenClaw.
Setting Up Kilo
If Kilo is not yet configured, follow the instructions in setup-guide.md.
Key Config Location: INLINECODE1
Workflow Pattern
For a detailed breakdown of the "Brain and Hands" execution strategy, see workflow.md.
1. Basic Task Execution
To run a one-shot task with Kilo:
CODEBLOCK0
2. Browser Automation Task
To run a browser-based task using the Puppeteer MCP:
CODEBLOCK1
3. Session Management
To list, continue, or fork sessions:
CODEBLOCK2
4. Monitoring Progress
If a task takes a long time, use the
process tool to poll the Kilo run.
Best Practices
- - Specify the Model: Always use
--model <provider/model> to ensure consistency (e.g., kilo/minimax/minimax-m2.5:free). - Use Auto-Approval: Always include the
--auto flag when running Kilo from OpenClaw to avoid hanging on permission prompts. - Prompt Engineering: Be specific about the desired output. Kilo is powerful but benefits from clear, structured instructions.
- Check Stats: Use
kilo stats to monitor token usage and costs.
OpenClaw-Kilo-Agent
该技能协调Kilo CLI执行复杂任务,从深度代码库重构到自动化浏览器交互。
核心能力
- - 繁重编码:将文件密集型任务卸载给专门的Kilo代理。
- 浏览器自动化:通过Puppeteer MCP集成控制网页浏览器。
- 会话连续性:恢复或分支现有Kilo会话以保持上下文。
- 自主执行:在OpenClaw中使用--auto参数运行Kilo实现免手动自动化。
配置Kilo
如果Kilo尚未配置,请按照setup-guide.md中的说明进行操作。
关键配置位置: ~/.config/kilo/kilo.json
工作流模式
关于大脑与双手执行策略的详细分解,请参阅workflow.md。
1. 基础任务执行
使用Kilo运行一次性任务:
bash
kilo run --model <模型> --auto <提示词>
2. 浏览器自动化任务
使用Puppeteer MCP运行基于浏览器的任务:
bash
kilo run --model <模型> --auto 使用你的puppeteer MCP工具导航到
,执行<操作>,并报告<结果>。
3. 会话管理
列出、继续或分支会话:
bash
列出所有会话
kilo session list
继续上一个会话
kilo run --continue --model <模型> --auto <下一个任务>
分支特定会话
kilo run --session <会话ID> --fork --model <模型> --auto <实验性任务>
4. 监控进度
如果任务耗时较长,使用process工具轮询Kilo运行状态。
最佳实践
- - 指定模型:始终使用--model <提供商/模型>确保一致性(例如kilo/minimax/minimax-m2.5:free)。
- 使用自动批准:从OpenClaw运行Kilo时始终包含--auto标志,避免因权限提示而挂起。
- 提示工程:明确指定期望输出。Kilo功能强大,但清晰的结构化指令能带来更好效果。
- 检查统计:使用kilo stats监控令牌使用量和成本。