Run Codex CLI, Claude Code, Kiro CLI, OpenCode, or Pi Coding Agent via background process for programmatic control.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install openclaw-kirocli-coding-agent或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install openclaw-kirocli-coding-agent⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/openclaw-kirocli-coding-agent/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: coding-agent description: Run Codex CLI, Claude Code, Kiro CLI, OpenCode, or Pi Coding Agent via background process for programmatic control. metadata: { "openclaw": { "emoji": "🧩", "requires": { "anyBins": ["claude", "codex", "opencode", "pi", "kiro-cli"] } }, } ---
Launch and manage AI coding agents (Codex, Claude Code, Kiro CLI, OpenCode, Pi) from OpenClaw using bash with background process control.
Coding agents are interactive terminal applications that need a pseudo-terminal (PTY). Without it, output breaks or the agent hangs.
Always set pty:true:
# Correct — with PTY
bash pty:true command:"codex exec 'Your prompt'"
# Wrong — agent may break or hang
bash command:"codex exec 'Your prompt'"
| Parameter | Type | Description | | ------------ | ------- | ----------------------------------------------------------- | | command | string | Shell command to run | | pty | boolean | Allocate a pseudo-terminal (required for coding agents) | | workdir | string | Working directory (agent sees only this folder) | | background | boolean | Run in background; returns sessionId for monitoring | | timeout | number | Timeout in seconds (kills process on expiry) | | elevated | boolean | Run on host instead of sandbox (if allowed) |
| Action | Description | | ----------- | ---------------------------------------------------- | | list | List all running/recent sessions | | poll | Check if a session is still running | | log | Get session output (optional offset/limit) | | write | Send raw data to stdin (no newline) | | submit | Send data + newline (like typing and pressing Enter) | | send-keys | Send key tokens or hex bytes | | paste | Paste text (optional bracketed mode) | | kill | Terminate the session |
---
# Codex needs a git repo — create a temp one for scratch work
SCRATCH=$(mktemp -d) && cd $SCRATCH && git init && codex exec "Your prompt"
# Run inside an existing project (with PTY)
bash pty:true workdir:~/project command:"codex exec 'Add error handling to the API calls'"
---
For longer tasks, combine all three:
# 1. Start the agent
bash pty:true workdir:~/project background:true command:"codex exec --full-auto 'Build a snake game'"
# → returns sessionId
# 2. Monitor progress
process action:log sessionId:XXX
# 3. Check completion
process action:poll sessionId:XXX
# 4. Send input if the agent asks a question
process action:submit sessionId:XXX data:"yes" # text + Enter
process action:write sessionId:XXX data:"y" # raw keystroke
# 5. Kill if stuck
process action:kill sessionId:XXX
Why workdir? The agent starts in a focused directory and won't wander into unrelated files.
---
Default model: gpt-5.2-codex (set in ~/.codex/config.toml)
| Flag | Effect | | --------------- | -------------------------------------------------- | | exec "prompt" | One-shot execution, exits when done | | --full-auto | Sandboxed, auto-approves within workspace | | --yolo | No sandbox, no approvals (fastest, most dangerous) |
# One-shot with auto-approve
bash pty:true workdir:~/project command:"codex exec --full-auto 'Build a dark mode toggle'"
# Background for longer work
bash pty:true workdir:~/project background:true command:"codex --yolo 'Refactor the auth module'"
Never review PRs in OpenClaw's own project folder. Clone to a temp directory or use a git worktree.
# Clone to temp
REVIEW_DIR=$(mktemp -d)
git clone https://github.com/user/repo.git $REVIEW_DIR
cd $REVIEW_DIR && gh pr checkout 130
bash pty:true workdir:$REVIEW_DIR command:"codex review --base origin/main"
# Or use git worktree (keeps main intact)
git worktree add /tmp/pr-130-review pr-130-branch
bash pty:true workdir:/tmp/pr-130-review command:"codex review --base main"
# Fetch all PR refs
git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
# Launch one Codex per PR (all background + PTY)
bash pty:true workdir:~/project background:true command:"codex exec 'Review PR #86. git diff origin/main...origin/pr/86'"
bash pty:true workdir:~/project background:true command:"codex exec 'Review PR #87. git diff origin/main...origin/pr/87'"
# Monitor
process action:list
# Post results
gh pr comment <PR#> --body "<review content>"
---
# One-shot
bash pty:true workdir:~/project command:"claude 'Your task'"
# Background
bash pty:true workdir:~/project background:true command:"claude 'Your task'"
---
AWS AI coding assistant with session persistence, custom agents, skills, hooks, steering, subagents, planning mode, and MCP integration.
Install: https://kiro.dev/docs/cli/installation
kiro-cli # Interactive chat (default)
kiro-cli chat "Your question" # Direct question
kiro-cli --agent my-agent # Use a specific agent
kiro-cli chat --resume # Resume last session (per-directory)
kiro-cli chat --resume-picker # Pick from saved sessions
kiro-cli chat --list-sessions # List all sessions
For scripting and automation — outputs a single response to STDOUT, then exits.
# Single response
kiro-cli chat --no-interactive "Show current directory"
# Trust all tools (no confirmation prompts)
kiro-cli chat --no-interactive --trust-all-tools "Create hello.py"
# Trust specific tools only
kiro-cli chat --no-interactive --trust-tools "fs_read,fs_write" "Read package.json"
Tool trust: --trust-all-tools for full automation. For untrusted input, use --trust-tools "fs_read,fs_write,shell" to limit scope.
# Interactive session (background)
bash pty:true workdir:~/project background:true command:"kiro-cli"
# One-shot query (non-interactive)
bash pty:true workdir:~/project command:"kiro-cli chat --no-interactive --trust-all-tools 'List all TODO comments in src/'"
# With a specific agent
bash pty:true workdir:~/project background:true command:"kiro-cli --agent aws-expert 'Set up Lambda'"
# Resume previous session
bash pty:true workdir:~/project command:"kiro-cli chat --resume"
Skills are portable instruction packages that extend what Kiro knows. When a request matches a skill's description, Kiro automatically loads and follows its instructions — no slash command needed.
| Location | Scope | Notes | | --- | --- | --- | | .kiro/skills/ | Workspace (project) | Shared via version control | | ~/.kiro/skills/ | Global (all projects) | Personal workflows |
Workspace skills take priority when names collide.
A skill is a folder with a SKILL.md file:
my-skill/
├── SKILL.md # Required — frontmatter + instructions
└── references/ # Optional — detailed docs loaded on demand
└── guide.md
SKILL.md format:
---
name: pr-review
description: Review pull requests for code quality, security issues, and test coverage.
---
## Review checklist
...安装 openclaw-kirocli-coding-agent 后,可以对 AI 说这些话来触发它
Help me get started with openclaw-kirocli-coding-agent
Explains what openclaw-kirocli-coding-agent does, walks through the setup, and runs a quick demo based on your current project
Use openclaw-kirocli-coding-agent to run Codex CLI, Claude Code, Kiro CLI, OpenCode, or Pi Coding Agent ...
Invokes openclaw-kirocli-coding-agent with the right parameters and returns the result directly in the conversation
What can I do with openclaw-kirocli-coding-agent in my developer & devops workflow?
Lists the top use cases for openclaw-kirocli-coding-agent, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/openclaw-kirocli-coding-agent/ 目录(个人级,所有项目可用),或 .claude/skills/openclaw-kirocli-coding-agent/(项目级)。重启 AI 客户端后,用 /openclaw-kirocli-coding-agent 主动调用,或让 AI 根据上下文自动发现并使用。
openclaw-kirocli-coding-agent 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
openclaw-kirocli-coding-agent 可免费安装使用。请查阅仓库了解许可证信息。
Run Codex CLI, Claude Code, Kiro CLI, OpenCode, or Pi Coding Agent via background process for programmatic control.
openclaw-kirocli-coding-agent 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using openclaw-kirocli-coding-agent
Identifies repetitive steps in your workflow and sets up openclaw-kirocli-coding-agent to handle them automatically