acpx
Skill1 starsChanged 9 months agoMITView on GitHub
Use acpx as a headless ACP CLI for agent-to-agent communication, including prompt/exec/sessions workflows, session scoping, queueing, permissions, and output formats.
- Installs packages
In this repository3 other files it gives its agents.
- wave-planner-acpxSkill
- wave-planner-claudeSkill
- wave-plannerSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use this skill when you need to run coding agents through acpx, manage persistent ACP sessions, queue prompts, or consume structured output …
- Very specific: line 14
Use it especially for Wave-Driven Development execution after wave-planner-acpx is approved.
- Very specific: line 42
Prefer global install over npx for stable session reuse.
- Very specific: line 75
Default agent is codex.
- Very specific: line 78
Do not combine positional agent token with --agent.
- Distinctive: line 127
When running worker agents in waves:
- Very specific: line 129
Create one named session per worker (-s <agent-name>).
- Distinctive: line 132
Wait for marker before merge.
- Distinctive: line 134
Run integration checks before next wave.
- Distinctive: line 171
Use named sessions for parallel streams in one repo.
- Very specific: line 172
Use --cwd carefully; changing cwd changes session scope.
- Very specific: line 173
Use status and sessions show/history to debug state.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
acpx
When to use this skill
Use this skill when you need to run coding agents through acpx, manage persistent ACP sessions, queue prompts, or consume structured output from scripts.
Use it especially for Wave-Driven Development execution after wave-planner-acpx is approved.
What acpx is
acpx is a headless, scriptable CLI client for ACP (Agent Client Protocol) designed for agent-to-agent automation without PTY scraping.
Core capabilities:
- Persistent multi-turn sessions per repo/cwd
- One-shot execution mode (
exec) - Named parallel sessions (
-s/--session) - Queue-aware prompt submission with optional fire-and-forget (
--no-wait) - Cooperative cancel (
cancel) for in-flight turns - Session control (
set-mode,set <key> <value>) - Session metadata/history inspection (
sessions show,sessions history) - Local agent process checks (
status) - Structured output formats (
text,json,quiet) --suppress-readsfor cleaner orchestration output--prompt-retriesfor retrying transient prompt failures- Generic model selection via ACP
session/set_model --modelsupport for Codex sessions- Experimental flows runtime and replay-related tooling in
v0.4.0
Install
npm i -g acpxPrefer global install over npx for stable session reuse.
Command model
prompt is default.
acpx [global_options] [prompt_text...]
acpx [global_options] prompt [prompt_options] [prompt_text...]
acpx [global_options] exec [prompt_options] [prompt_text...]
acpx [global_options] cancel [-s <name>]
acpx [global_options] set-mode <mode> [-s <name>]
acpx [global_options] set <key> <value> [-s <name>]
acpx [global_options] status [-s <name>]
acpx [global_options] sessions [list | new [--name <name>] | close [name] | show [name] | history [name] [--limit <count>]]
acpx [global_options] config [show | init]
acpx [global_options] <agent> [prompt_options] [prompt_text...]
acpx [global_options] <agent> exec [prompt_options] [prompt_text...]Built-in agent registry
Friendly names:
codex->npx @zed-industries/codex-acpclaude->npx @zed-industries/claude-agent-acpgemini->geminiopencode->npx opencode-aipi->npx pi-acpqoder->qodercli --acptrae->traecli acp serve
Rules:
- Default agent is
codex. - Unknown positional agent tokens are treated as raw commands.
--agent <command>is explicit raw command mode.- Do not combine positional agent token with
--agent.
Core workflows
Persistent prompt session
acpx codex 'inspect failing tests and propose fix plan'
acpx codex 'apply minimal fix and run tests'One-shot exec
acpx exec 'summarize this repo'
acpx codex exec 'review changed files'Sessions
acpx sessions new --name backend
acpx codex -s backend 'fix API pagination bug'
acpx codex sessions history backend --limit 20
acpx codex sessions close backendQueueing and no-wait
acpx codex 'run full test suite and investigate failures'
acpx codex --no-wait 'after tests, summarize root causes and next steps'Structured output for orchestration
acpx --format json codex exec 'review changed files' > events.ndjsonRetries and quieter logs
acpx codex --prompt-retries 2 'run targeted tests and summarize failures'
acpx --format json --suppress-reads codex exec 'review changed files'Wave-Driven orchestration guidance
When running worker agents in waves:
- Create one named session per worker (
-s <agent-name>). - Send worker prompt with strict ownership boundaries.
- Require explicit completion marker in each response.
- Wait for marker before merge.
- Merge per wave order.
- Run integration checks before next wave.
Recommended completion marker:
WAVE {WAVE_ID} / {AGENT_NAME} DONE
Recommended worker handoff format:
- Summary
- Files changed
- Patch/diffs
- How to test (commands + expected results)
- Risks/TODOs/Dependency Notes
Global options
--agent <command>raw ACP adapter command--cwd <dir>session scope directory--approve-allauto-approve all requests--approve-readsapprove reads/searches, prompt for writes--deny-alldeny all requests--model <id>request a model when supported by the target agent/session--format <fmt>output:text,json,quiet--suppress-readshide raw read/search output when cleaner logs are useful--prompt-retries <count>retry transient prompt failures automatically--timeout <seconds>max wait--ttl <seconds>queue owner idle TTL--verbosedebug logs
Permission flags are mutually exclusive.
Session behavior
Persistent prompt sessions are scoped by:
agentCommand- absolute
cwd - optional
sessionname
Tips:
- Use named sessions for parallel streams in one repo.
- Use
--cwdcarefully; changing cwd changes session scope. - Use
statusandsessions show/historyto debug state.
Practical examples
Parallel named streams:
acpx codex -s backend 'implement contract types for Wave 0'
acpx claude -s docs 'draft migration notes for Wave 0'Repo-scoped review with permissive mode:
acpx --cwd ~/repos/shop --approve-all codex -s pr-842 \
'review PR #842 for regressions and propose minimal patch'Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

