Install
openclaw skills install pi-coding-specialistManage Pi Agent as sub-agent for complex coding tasks involving multiple files, extensive refactoring, or systemic debugging.
openclaw skills install pi-coding-specialistName: pi-coding-specialist
Description: Orchestrate Pi Agent as coding specialist for complex tasks (>5 files)
Trigger: Coding tasks requiring multi-file changes, refactoring, or complex implementations
Integrar Pi Agent como sub-agent preferido para tareas de coding complejas desde OpenClaw.
{
"subagents": {
"enabled": true,
"coding_specialist": "pi",
"backend": "pi-subagents"
}
}
Usar Pi cuando:
NO usar Pi cuando:
# Spawn Pi como sub-agent
openclaw sessions spawn \
--name="pi-coding-task" \
--model="qwen3.5:397b-cloud" \
--workdir="/path/to/project" \
--prompt="Pi, implementa [task description]. Usa pi CLI para coding."
# Install (si no existe)
npm install -g @mariozechner/pi-coding-agent
# Execute con PTY
bash pty:true workdir:/path/to/project command:"pi 'Task description'"
# Background mode para tareas largas
bash pty:true workdir:/path/to/project background:true command:"pi 'Complex implementation'"
process:log# 1. Detectar necesidad
if files_changed > 5; then
# 2. Spawn Pi
bash pty:true workdir:$PROJECT background:true command:"pi '$TASK'"
# 3. Monitor
process action:log sessionId:$ID
# 4. Complete
# Pi auto-notifies on completion
fi
| Agent | Handoff Scenario |
|---|---|
| Nexus (CTO) | Architecture implementations |
| Forge (CDO) | Feature development |
| Spark (CAO) | Complex automations |
| Hybrid Architect | System integrations |
~/.openclaw/skills/pi-coding-specialist/SKILL.md (este archivo)~/.openclaw/agents/*/config.json (subagents.enabled: true)/opt/homebrew/bin/pi (Pi CLI binary)# Check Pi installed
which pi
# Test Pi execution
pi -p "Hello world"
# Verify subagent config
cat ~/.openclaw/agents/nexus/agent/config.json | grep -A3 subagents
Version: 1.0
Status: ACTIVE
Created: 2026-03-31