Name: 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.
json
{
"subagents": {
"enabled": true,
"coding_specialist": "pi",
"backend": "pi-subagents"
}
}
Usar Pi cuando:
NO usar Pi cuando:
bash
# 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."
bash
# 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:logbash
# 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
AgentHandoff ScenarioNexus (CTO)Architecture implementationsForge (CDO)Feature developmentSpark (CAO)Complex automationsHybrid ArchitectSystem integrations
~/.openclaw/skills/pi-coding-specialist/SKILL.md (este archivo)~/.openclaw/agents/*/config.json (subagents.enabled: true)/opt/homebrew/bin/pi (Pi CLI binary)bash
# 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