Tools
Ai Delegation
OpenClaw plugin for native Claude Code and Kimi Code delegation tools
Configuration Example
{
"plugins": {
"entries": [
{
"path": "ai-delegation",
"config": {
"claudeScriptsDir": "/home/user/coder-scripts",
"kimiScriptsDir": "/home/user/kimi-scripts",
"defaultClaudeTimeout": 600,
"defaultKimiTimeout": 300
}
}
]
}
}
README
# OpenClaw AI Delegation Plugin
Native **claude_exec** and **kimi_exec** tools for OpenClaw — replaces generic `exec` calls with purpose-built delegation to Claude Code and Kimi Code.
## What it does
- **claude_exec** — delegates complex coding tasks to Claude Code (Anthropic) via Coder Tasks
- **kimi_exec** — delegates system-level tasks to Kimi Code (native host agent)
Instead of generic `exec` calls, you get structured tools with proper schemas, validation, and streamlined workflows.
## File Structure
```
├── openclaw.plugin.json # Plugin manifest
├── index.ts # Plugin entry point
├── tools/
│ ├── claude-code.ts # Claude Code delegation tool
│ └── kimi-code.ts # Kimi Code delegation tool
├── README.md # This file
└── .gitignore
```
## Installation
### Option A: Symlink (recommended for development)
```bash
# Remove existing extension if present
rm -rf ~/.openclaw/extensions/ai-delegation
# Create symlink
ln -s /path/to/this/repo ~/.openclaw/extensions/ai-delegation
```
### Option B: Copy
```bash
cp -r /path/to/this/repo ~/.openclaw/extensions/ai-delegation
```
## Configuration
Add to your `~/.openclaw/config.json` under `plugins.entries`:
```json
{
"plugins": {
"entries": [
{
"path": "ai-delegation",
"config": {
"claudeScriptsDir": "/home/user/coder-scripts",
"kimiScriptsDir": "/home/user/kimi-scripts",
"defaultClaudeTimeout": 600,
"defaultKimiTimeout": 300
}
}
]
}
}
```
### Config Options
| Option | Type | Description |
|--------|------|-------------|
| `claudeScriptsDir` | string | Directory for Claude Code task scripts |
| `kimiScriptsDir` | string | Directory for Kimi Code task scripts |
| `defaultClaudeTimeout` | number | Default timeout for Claude tasks (seconds) |
| `defaultKimiTimeout` | number | Default timeout for Kimi tasks (seconds) |
## Usage
Once installed, the tools are available automatically:
```
claude_exec(action="delegate", prompt="Refactor this codebase", timeout=600)
kimi_exec(action="delegate", prompt="Check system logs", timeout=300)
```
## License
MIT
tools
Comments
Sign in to leave a comment