
Acp Router
Route plain-language requests for Pi, Claude Code, Codex, OpenCode, Gemini CLI, or ACP...
Install
npx skills add beita6969/ScienceClaw --skill acp-router -g -a claude-code -y- Repository
- beita6969/ScienceClaw1k
- Category
- AI and agents
- Updated
- 5d ago
- License
- MIT
- Context cost
- Mediumabout 1,857 tokens
- Runs scripts
- No, instructions only
What it does
Route plain-language requests for Pi, Claude Code, Codex, OpenCode, Gemini CLI, or ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation.
ACP Harness Router
When user intent is "run this in Pi/Claude Code/Codex/OpenCode/Gemini/Kimi (ACP harness)", do not use subagent runtime or PTY scraping. Route through ACP-aware flows.
Intent detection
Trigger this skill when the user asks OpenClaw to:
- run something in Pi / Claude Code / Codex / OpenCode / Gemini
- continue existing harness work
- relay instructions to an external coding harness
- keep an external harness conversation in a thread-like conversation
Mandatory preflight for coding-agent thread requests:
- Before creating any thread for Pi/Claude/Codex/OpenCode/Gemini work, read this skill first in the same turn.
- After reading, follow
OpenClaw ACP runtime pathbelow; do not usemessage(action="thread-create")for ACP harness thread spawn.
Mode selection
Choose one of these paths:
- OpenClaw ACP runtime path (default): use
sessions_spawn/ ACP runtime tools. - Direct
acpxpath (telephone game): useacpxCLI throughexecto drive the harness session directly.
Use direct acpx when one of these is true:
- user explicitly asks for direct
acpxdriving - ACP runtime/plugin path is unavailable or unhealthy
- the task is "just relay prompts to harness" and no OpenClaw ACP lifecycle features are needed
Do not use:
subagentsruntime for harness control/acpcommand delegation as a requirement for the user- PTY scraping of pi/claude/codex/opencode/gemini/kimi CLIs when
acpxis available
AgentId mapping
Use these defaults when user names a harness directly:
- "pi" ->
agentId: "pi" - "claude" or "claude code" ->
agentId: "claude" - "codex" ->
agentId: "codex" - "opencode" ->
agentId: "opencode" - "gemini" or "gemini cli" ->
agentId: "gemini" - "kimi" or "kimi cli" ->
agentId: "kimi"
These defaults match current acpx built-in aliases.
If policy rejects the chosen id, report the policy error clearly and ask for the allowed ACP agent id.
OpenClaw ACP runtime path
Required behavior:

