coding-agent
Run Codex CLI, Claude Code, Kiro CLI, OpenCode, or Pi Coding Agent via background process for programmatic control.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/dandysuper/openclaw-kirocli-coding-agentWhat This Skill Does
The Coding Agent skill provides programmatic control over various AI coding assistants, including Codex CLI, Claude Code, Kiro CLI, OpenCode, and Pi Coding Agent. It allows you to launch and manage these agents as background processes directly from OpenClaw using bash commands. This is essential for integrating AI-powered coding into automated workflows and scripts. The skill leverages a pseudo-terminal (PTY) to ensure proper interaction with these command-line coding tools, preventing common issues like output corruption or process hangs. You can manage sessions, monitor progress, send input, and terminate processes, offering a robust solution for programmatic code generation and assistance.
Installation
To install the Coding Agent skill, use the following command in your OpenClaw environment:
clawhub install openclaw/skills/skills/dandysuper/openclaw-kirocli-coding-agent
Use Cases
This skill is invaluable for a range of development and automation tasks:
- Automated Code Generation: Generate boilerplate code, write unit tests, or create small scripts based on predefined prompts.
- Code Refactoring: Automate the process of refactoring code within existing projects.
- Bug Fixing Assistance: Integrate AI to suggest or implement fixes for detected bugs.
- Prototyping: Quickly generate code for new features or components during the prototyping phase.
- Learning and Exploration: Experiment with different AI coding models and their capabilities programmatically.
- CI/CD Integration: Incorporate AI code reviews or generation steps into your continuous integration and delivery pipelines.
Example Prompts
bash pty:true workdir:~/my_project background:true command:"codex exec 'Generate a Python Flask API endpoint for user registration'"process action:log sessionId:XXX(Replace XXX with the actual session ID)bash pty:true workdir:~/my_project command:"kirocli --prompt 'Refactor this Javascript function to be more efficient'"
Tips & Limitations
- PTY is Crucial: Always use
pty:truewhen running coding agents, as they are interactive terminal applications. Failing to do so will likely result in unpredictable behavior. - Background Processes: Utilize the
background:trueparameter for longer tasks to avoid blocking your main terminal. Remember to use thesessionIdreturned to monitor and control the process. - Working Directory: The
workdirparameter is highly recommended, especially when interacting with existing projects. It sets the context for the AI agent. - Timeout: Be mindful of the
timeoutparameter to prevent processes from running indefinitely if they get stuck or take too long. - Agent Specifics: Each coding agent (Codex, Claude Code, Kiro CLI, etc.) may have its own specific command-line arguments and best practices. Consult their individual documentation for optimal usage.
- Output Interpretation: While the
logaction provides output, you may need to parse and interpret it programmatically, especially for complex code generation tasks. - Resource Intensive: Running AI models, especially large ones, can be resource-intensive. Ensure your environment has sufficient CPU, memory, and potentially GPU resources.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-dandysuper-openclaw-kirocli-coding-agent": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
telegram-sticker-vibes
Automatically send Telegram stickers and emojis that match the mood and vibe of the conversation. Activates on every Telegram message to add expressive, human-like sticker and emoji reactions without being asked. Use this skill whenever you are chatting on Telegram to make conversations feel alive and fun.
Telegram Colored Choices Buttons
Skill by dandysuper
ralphtalk
Self-improving conversational skill. Gets better at talking with every use. Saves what works to memory, evolves identity over time.
Seedance 2 Prompt Engineering Skill
Skill by dandysuper