← 返回 Skills 市场
ambition0802

ACP Background Runs

作者 sid · GitHub ↗ · v0.1.2 · MIT-0
cross-platform ✓ 安全检测通过
381
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install acp-background-runs
功能描述
Route requests for ACP or external coding agents such as Codex, Claude Code, Gemini CLI, and OpenCode into non-blocking OpenClaw background ACP runs instead...
使用说明 (SKILL.md)

ACP / Codex Background Runs

When a user asks to use ACP or an external coding agent such as Codex, Claude Code, Gemini CLI, or OpenCode, do not execute the task synchronously in the current chat. Route it through the ACP runtime instead.

Default Rules

  • Prefer sessions_spawn and set runtime: "acp" with the appropriate agentId
  • Default to mode: "run"
  • Only use thread: true or mode: "session" when the user explicitly asks for an ongoing interactive or thread-bound session
  • Set cwd when the target repository or directory is known
  • Prefer absolute paths for cwd; do not pass ~ directly, expand it first
  • Use a relaxed runTimeoutSeconds for longer tasks; do not mechanically default to 300
  • Do not wait in the current conversation and do not poll for progress
  • Reply immediately after submission that the task has been accepted and is running in the background
  • Rely on sessions_spawn completion notifications to send the final result back to the current conversation
  • Only add streamTo: "parent" when the user explicitly asks for progress updates

Default Handling

If the user is simply dispatching an ACP / Codex task and does not explicitly request a persistent interactive session, treat it as a one-shot background run. Do not block the current conversation. Send the result back only when the background run completes.

Timeout Guidance

  • Quick read-only checks, short analysis, light tasks: runTimeoutSeconds: 120-300
  • Normal coding tasks, project inspection, small scoped edits: runTimeoutSeconds: 600
  • Research, code changes, file generation, test runs, longer reports: runTimeoutSeconds: 1200
  • Clearly long-running tasks: increase further to 1800-3600 as needed
  • Do not default to 0; only use 0 when the user explicitly wants no timeout

mode / thread Decision Rules

  • If the user only wants the external agent to finish a task in the background, use mode: "run"
  • If the user explicitly wants to continue talking to the same external-agent context afterward, use thread: true
  • If the user explicitly asks for a persistent session, thread session, or long-lived context, use both thread: true and mode: "session"
  • If there is no explicit need for ongoing interaction, do not open mode: "session"

cwd Rules

  • If the target repository, project directory, or work directory is known, set cwd
  • Prefer absolute paths
  • Expand ~ before passing the path into sessions_spawn
  • If the user did not give a directory but the task clearly targets a known repo, resolve the actual path from context before spawning

Fallback When ACP Is Unavailable

  • Try runtime: "acp" first
  • Only fall back to runtime: "subagent" when the ACP target agentId is clearly unavailable, unconfigured, or ACP cannot be used in the current environment
  • When falling back, tell the user explicitly that the task is being run via subagent, not a native ACP session
  • Do not silently fall back

Reply After Submission

Use this short confirmation by default:

Task accepted. It is running in the background and will report back here when complete.

If streamTo: "parent" is enabled, also say that key progress updates will be streamed back.

Prohibited Actions

  • Do not execute external coding-agent tasks synchronously in the current conversation when they should go through ACP
  • Do not poll after submission
  • Do not call sessions_list, sessions_history, or similar tools to track child-session progress
  • Do not use sleep or timer-based waiting to fake background orchestration
  • Rely on the sessions_spawn completion / announce mechanism for the final result

Recommended Parameter Template

{
  "task": "\x3Cuser request>",
  "runtime": "acp",
  "agentId": "\x3Ccodex|claude|gemini|opencode|...>",
  "mode": "run",
  "cwd": "/abs/path/if-known",
  "runTimeoutSeconds": 300
}

When To Adjust

  • Need ongoing multi-turn context: add thread: true and, if needed, mode: "session"
  • Task may run for many minutes: increase runTimeoutSeconds
  • Task is only a quick read-only check: keep runTimeoutSeconds small
  • User explicitly wants progress relayed back: add streamTo: "parent"
  • ACP is unavailable but the task should still run in the background: explain the fallback and use runtime: "subagent"
安全使用建议
This skill is internally consistent and doesn't ask for extra credentials or installs. Before enabling it, verify that: (1) your ACP/sessions_spawn infrastructure and agentIds (Codex, Claude, Gemini, etc.) are correctly configured and trusted; (2) background runs will only have access to repositories and filesystem paths you intend them to touch (the SKILL.md encourages setting cwd and resolving absolute paths); and (3) completion/notification mechanisms are enabled so results are returned to the conversation. If you have sensitive data in code/workspaces, test the skill on a non-sensitive repository or restrict agent filesystem permissions first.
功能分析
Type: OpenClaw Skill Name: acp-background-runs Version: 0.1.2 The skill bundle provides instructions for an AI agent to delegate coding tasks to background sessions using the OpenClaw 'sessions_spawn' tool and 'acp' runtime. It defines logical routing rules for handling external agents like Codex or Claude Code, including timeout management and path expansion, without any evidence of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
The skill's name and description match the instructions: it only describes how to spawn background ACP/subagent runs and sets parameters like runtime, agentId, mode, cwd, and timeouts. No unrelated binaries, secrets, or installs are requested.
Instruction Scope
Instructions stay on-topic (how to spawn background sessions, when to use run vs session/thread, timeouts, fallbacks). They do instruct the agent to set cwd and to resolve absolute paths from context, which is expected for code-work but means spawned background runs may access repository or filesystem paths — you should ensure filesystem access is limited to intended projects.
Install Mechanism
Instruction-only skill with no install spec and no code files; nothing is written to disk or downloaded by the skill itself.
Credentials
The skill declares no environment variables, credentials, or config paths. It does not ask for unrelated secrets; the runtime parameters (agentId, runtime) are proportional to the stated purpose.
Persistence & Privilege
always is false and the skill allows normal autonomous invocation. It does not request permanent presence or modify other skills. Be aware that autonomous background runs will execute with whatever agent/session privileges are configured in your environment.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install acp-background-runs
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /acp-background-runs 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
Translate skill body to English and keep ACP background-run guidance intact
v0.1.1
Polish public description and trigger wording
v0.1.0
Initial publish
元数据
Slug acp-background-runs
版本 0.1.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

ACP Background Runs 是什么?

Route requests for ACP or external coding agents such as Codex, Claude Code, Gemini CLI, and OpenCode into non-blocking OpenClaw background ACP runs instead... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 381 次。

如何安装 ACP Background Runs?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install acp-background-runs」即可一键安装,无需额外配置。

ACP Background Runs 是免费的吗?

是的,ACP Background Runs 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ACP Background Runs 支持哪些平台?

ACP Background Runs 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ACP Background Runs?

由 sid(@ambition0802)开发并维护,当前版本 v0.1.2。

💬 留言讨论