acp-inbox-bridge
Use the OpenClaw-mcode-ACP inbox from inside an OpenClaw main session (goudan) to PROACTIVELY send messages, ask blocking questions, and answer mavis-side…
от MiniMax-AI★ 30 звёзд на GitHub
Установить acp-inbox-bridge в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ACP Inbox Bridge — goudan (OpenClaw) perspective
You are running inside an OpenClaw main session (goudan). The other peer
is mavis (MiniMax Code, dispatched as a child session). You can
communicate via the ACP inbox — not just return a final answer.
This is the goudan-side companion to the acp-collab Skill. acp-collab
teaches mavis how to talk to you; this Skill teaches you how to talk to
mavis. Both Skills drive the same client/_acp_client.inbox_* HTTP
transport, so the loopback-only, no-redirect, token-via-env security
model is shared.
When to activate this Skill
Activate this Skill whenever any of the following is true:
- You are running a long task and mavis should see progress
- You found an issue (cron failure, audit anomaly, bridge timeout) that mavis needs to act on
- You need a piece of mavis-side state (e.g. a file under
~/.minimax/, a memory note, the OAuth token expiry) that you cannot read from your own domain - mavis has asked you a question via the inbox and you need to unblock
them with a
msg_type=answer - A decision needs human judgment and mavis is closer to the human than you are
Do NOT activate this Skill to bypass the domain boundary: do not use it
to read ~/.minimax/ directly, to read mavis-side logs, or to probe
mavis-side processes. The inbox is for messaging, not for direct
file or process access on the mavis side.
Setup
The bundled client at <plugin_root>/client/_acp_client.py is the same
one the mavis-side Skills use. There is no ACP_HOME to set, no
external Python SDK to install, and no sys.path to mutate. The
goudan-side wrapper scripts/acp_inbox.py resolves the plugin root
through the host-provided $PLUGIN_ROOT (mcode 0.2.4+ sets this
automatically when the Skill is loaded). The bundled scripts
themselves also read $PLUGIN_ROOT if you prefer to set it
explicitly, and fall back to __file__ only when the snippet is
written into a .py file inside the Plugin tree.
Note: this Plugin does not inject a custom env var (an earlier draft used
$ACP_PLUGIN_ROOT, but no runtime actually sets it). Always rely on the portable host variable$PLUGIN_ROOTwhen invoking the Skill from a non-Plugin context, or setPLUGIN_ROOT=/path/to/openclaw-acp-bridgebefore running the snippet.__file__is honored as a last-resort fallback forpython some_file.pyinvocations and is not available inpython -c "..."orpython <stdin>contexts.
Authentication
The bundled client reads the bearer token from one of (first hit wins):
$ACP_TOKEN(recommended for shells and CI)~/.acp_token(one line, no trailing newline)<plugin_root>/.acp_token(one line; co-located fallback)
The client attaches Authorization: Bearer <token> to every request to
http://127.0.0.1:9999/acp/*. Do not read, print, or pass the token
yourself. The client also refuses to follow HTTP redirects and refuses
to talk to anything other than the literal loopback allow-list
({127.0.0.1, ::1, [::1]}). The round-5 amendment removed localhost
from the allow-list to avoid DNS / hostname resolution attacks.
If the token cannot be located, the client raises ACPTokenMissing.
Tell the user to set $ACP_TOKEN (or write one of the fallback files)
and stop; do not retry.
Calling the goudan-side wrapper
The Skill is loaded by the Plugin runtime, which sets $PLUGIN_ROOT
to the directory that contains this Plugin's client/ and scripts/.
The snippet below reads $PLUGIN_ROOT directly, falling back to
__file__ only when the caller has saved the snippet into a .py
file inside the Plugin tree.
import os
import sys
# `PLUGIN_ROOT` is set by the Plugin runtime (mcode 0.2.4+) and points
# at the directory that contains this Plugin's `client/` and `scripts/`.
# The `__file__` fallback is only valid when this snippet lives inside
# a .py file; `python -c "..."` and `python <stdin>` callers MUST set
# `PLUGIN_ROOT` themselves.
_plugin_root = os.environ.get("PLUGIN_ROOT") or os.path.dirname(
os.path.dirname(os.path.abspath(__file__))
)
sys.path.insert(0, os.path.join(_plugin_root, "scripts"))
from acp_inbox import ACPInbox
acp = ACPInbox()
Protocol
1. First message of the session (goudan announces itself)
Use acp.greet(session_id, note=...) to write a peer_greet-shaped
message. The default sender is "goudan" — never pass
sender="mavis" from this side.
acp.greet(session_id, note="starting audit cross-check for 8/31")
2. Push progress (during work)
acp.write(session_id, "[goudan] Step 3 of 7 done. Found 3 candidate cron failures.")
3. Ask a blocking question (when mavis is the only one who can answer)
Use acp.ask(...) to write a question and block for the answer. The
server's /acp/inbox/ask endpoint handles the blocking poll; the
wrapper delegates. Default timeout is 30s; the mavis-side Skill's
acp-collab enforces `timeout <
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл acp-inbox-bridge?
Use the OpenClaw-mcode-ACP inbox from inside an OpenClaw main session (goudan) to PROACTIVELY send messages, ask blocking questions, and answer mavis-side questions. Differs from `acp-collab` (mavis / MiniMax Code perspective) — this is the goudan-side companion that uses the same `client/_acp_client.inbox_*` HTTP transport and inherits the same loopback-only, no-redirect, token-via-env security model. Use when a multi-step task spans the OpenClaw main session and a MiniMax Code peer, when goudan should report progress or findings to mavis, when goudan needs to ask a clarifying question that requires a mavis-side tool (e.g. reading `~/.minimax/`), or when mavis has asked a question and goudan must answer it before continuing.
Как установить скилл acp-inbox-bridge?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл acp-inbox-bridge запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…