Install
openclaw skills install acpx-agent-playbookPractical playbook for running agents through acpx in persistent sessions, especially when Claude, Codex, Pi, Gemini, OpenCode, or other ACP-compatible agents need reliable file creation, local installs, shell-based writes, or structured deliverables such as PPTX, reports, generated assets, and multi-step coding work. Use when work should be done via acpx rather than direct edits, or when prior acpx attempts failed because of quoting, session mode, permission policy, fs/write_text_file issues, sandbox boundaries, agent-specific CLI differences, or confusion about full-access vs true system privilege.
openclaw skills install acpx-agent-playbookUse acpx as a structured control plane for delivery-oriented agent work. Prefer persistent sessions, prompt files, explicit validation, and shell/Python fallback writes over fragile one-shot prompts and optimistic tool assumptions.
Run this default flow for any non-trivial task:
acpx <agent> sessions new --name task
acpx <agent> set-mode -s task full-access
acpx <agent> -s task -f prompt.txt
Replace <agent> with codex, claude, pi, gemini, opencode, or another supported agent.
Prefer this over acpx <agent> exec ... when the task needs iteration, file output, validation, or retries.
Pick the agent based on workflow risk, not branding preference alone.
Default heuristics in this workspace:
If reliability matters more than style, prefer the agent with the freshest passing artifact-generation proof in the current environment.
Use exec only for small one-shot tasks.
Use a persistent session when the task involves any of the following:
.pptx, .docx, reports, videos, or scriptsFor practical work, set mode before prompting:
acpx <agent> set-mode -s task full-access
Interpretation:
read-only: inspect onlyauto: moderate default behaviorfull-access: broader session capability, including easier file edits and broader path/network freedomDo not assume full-access means sudo or root. It relaxes the ACP session; it does not guarantee system-level privilege escalation.
For long or delicate instructions, always write a prompt file and pass -f:
cat > prompt.txt <<'TXT'
Task: ...
Constraints: ...
Outputs: ...
Validation: ...
TXT
acpx <agent> -s task -f prompt.txt
This avoids shell quoting failures and makes retries reproducible.
If the agent can answer text but cannot write files, inspect acpx permission configuration first.
In this workspace, a blocking configuration was:
{
"defaultPermissions": "approve-reads",
"nonInteractivePermissions": "fail"
}
A working baseline for non-interactive delivery flows was:
{
"defaultPermissions": "approve-all",
"nonInteractivePermissions": "deny"
}
Do not assume the failure is prompt quality or provider incompatibility until this is checked.
Do not assume all agents accept the same flags on the same subcommand.
Example from this environment:
acpx supports --cwdacpx claude may reject --cwd on the agent subcommandIf a command fails before the model meaningfully starts, verify CLI shape before diagnosing provider or model problems.
If the task must create or rewrite files, instruct the agent to prefer:
python - <<'PY' ... PYPrefer these over tool-native fs/write_text_file style edits when prior attempts showed permission failures.
Recommended instruction snippet:
If built-in file-editing tools fail, write files via shell heredoc or Python scripts instead of ACP fs write calls.
For fragile generation tasks, write outputs under /tmp first, validate them, then move/copy them into the target workspace.
Recommended pattern:
/tmp/...This is especially useful for generated binaries like .pptx.
Always ask the agent to verify outputs.
Examples:
.pptxFor PPT/report/document generation, require all of the following in the prompt:
See references/ppt-playbook.md for a concrete template.
If non-stdlib packages are needed, prefer project-local installs:
python3 -m venv .venv
. .venv/bin/activate
pip install <package>
Avoid assuming global install rights. Use system-level installs only when explicitly intended and actually permitted by the host.
Before trusting a new agent or relay for delivery work, run this sequence:
If any stage fails, do not market the path as production-ready.
exec is acceptable.-f prompt.txt..venv install before changing system state./tmp, validate, then move.Avoid these common failure modes:
full-access equals sudo/rootreferences/ppt-playbook.md when the task is to generate a PPT or similar structured binary deliverable via acpx.references/troubleshooting.md when acpx sessions start but file creation, mode behavior, permissions, or sandbox boundaries are unclear.references/provider-compat.md when comparing agents for provider compatibility, relay flakiness, file-write reliability, or ACPX permission confusion.references/agent-matrix.md when you need a quick choice among Codex, Claude, and other agents for delivery work in this workspace.references/migration.md when older prompts, habits, or automations still mention acpx-codex-playbook and you need to preserve compatibility while using the new canonical skill.