/saarius-skills:grok-acp-delegationfrom saarius-skills
Use Grok ACP MCP to delegate bounded implementation or verification to the local Grok CLI (`grok agent stdio`) through ACpx grok-build, or diagnose missing Grok ACP tools. Distinct from cursor-acp (cursor-agent acp) and from Puppet grok tmux. Not a Grok Bot VM route.
Ships in saarius-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the grok-acp MCP server as an optional local worker route for one
bounded implementation or verification slice. The parent harness stays the
host. ACpx is the local ACP client. The child is the installed Grok CLI
stdio agent, ACpx built-in grok-build (grok agent stdio). This is not
the Cursor ACP lane, not Puppet's grok tmux harness, and not a Grok Bot
computer.
For generic “use the SaariusSkills ACP plugin” requests, start with the ACP entry skill. This lane's preferences and selectors do not prohibit the other harnesses. For mode changes, follow the shared permission setup and verify the effective mode before dispatch; retain prior user authorization. A generic entry-skill request permits another discovered native ACP lane after this lane fails, unless the user constrained substitution. The restrictions on alternative transports below still apply to explicit lane requests and to non-native substitutes.
The grok-acp MCP server comes from the separate ai-shed plugin
(saari-co/ai-shed), not from this
saarius-skills plugin, which ships skills and instructions only. Do not
bundle or re-add the server here; both plugins would register it and start two
brokers. Install, prepare, and reload steps are in
the ai-shed plugin reference.
Tool names have a plugin/server prefix: in Claude Code this lane's readiness
tool is mcp__plugin_ai-shed_grok-acp__grok_acp_readiness. Search the available/deferred
tool catalog for grok_acp_readiness before concluding the route is unavailable; a short
initial tool list is not proof.
If no callable tool is found, diagnose setup: confirm the ai-shed plugin is
installed, then run the package check from the installed ai-shed root:
node "<ai-shed root>/grok-acp/scripts/setup.mjs" --check
DEPENDENCIES_MISSING includes an exact repair command. When local setup is
authorized, run that command with --install; it installs locked Node
dependencies with lifecycle scripts disabled and verifies MCP initialization
and all six tools. It does not open a Grok login or send a model turn.
The child is whatever GROK_EXECUTABLE names, or grok on PATH. Plugin
manifests do not ship a machine-specific path. Login is a precondition of the
installed Grok CLI, not something this bridge starts. After every
ai-shed install/update, prepare the persistent runtime:
npm run setup-runtime --prefix "<ai-shed root>/grok-acp"
After repair, reload the host app or start a fresh task so its native tool
inventory is rebuilt. MCP_READY proves server startup, not that the current
task has reloaded it. If still unavailable, report MCP_UNAVAILABLE with the
setup result and the specific install/reload action needed. Do not replace
this route with Cursor ACP, Puppet grok, Herdr, or tmux unless the user
explicitly authorizes that alternative.
grok_acp_readiness for the exact workspace when the route has
not been checked in the current task. Require the local grok agent stdio
child through ACpx grok-build. The plugin default, when model is omitted,
selects the first advertised id among grok-4.7, then grok-4.6, then
grok-4.5. Optional fallbackModels (at most two exact ids) replaces
grok-4.6 and grok-4.5; an empty list is strict grok-4.7. An explicit
model such as grok-4.6, grok-4.7, or grok-4.7-build-fast stays exact
and never substitutes. Do not send model together with fallbackModels,
and do not treat the session's current model as a selection. Readiness
returns catalogReady, selectionReady, the full advertised catalog, the
requested policy, and the selected model. Missing every allowed id, invalid
input, or auth failure fails with no prompt. The ACP reasoning_effort
option stays pinned to high (SAARIUS_GROK_ACP_REASONING_EFFORT overrides;
inherit keeps the CLI default). Never silently fall back to
cursor-agent acp, generic acp, Luna, another executable, or another
workspace. Native Grok does not run Luna. grok_acp_delegate hard-refuses
when that readiness is red (runtime / auth / model / workspace). Do not treat
a red readiness report as advice and submit anyway.grok_acp_delegate with one absolute workspace path, one parent
conversation id (hostConversationId or SAARIUS_ACP_HOST_CONVERSATION_ID),
the optional model or fallbackModels policy from readiness, one bounded
prompt, and a bounded timeout (timeoutMs is the wall-clock
budget for that one ACP turn: 60 minutes when omitted, up to 4 hours when
explicitly requested; it is not session duration or grok_acp_result
waitMs). The requested policy and resolved exact model are bound to that
job and rechecked on the session immediately before the prompt. If the
catalog no longer advertises that exact id, the job fails with no prompt and
does not switch models. One parent conversation owns one
worker. Rebind is owner-gated (binderId / SAARIUS_ACP_BINDER_ID); cwd is
not exclusive. Prefer an isolated worktree for source mutations. Do not fan
out by default. Live MCP permissions default to approve-reads plus fail on
write/exec that would prompt. SAARIUS_ACP_PERMISSION_MODE=approve-all is
explicit break-glass. On a Claude Code host the plugin manifest passes
SAARIUS_ACP_PERMISSION_MODE from Claude Code's own environment through to
the bridge and defaults it to approve-reads; a plugin update plus a fresh
Claude Code session is required before that takes effect.
grok_acp_readiness reports the resolved permission.permissionMode and a
permission.warning when it is approve-reads; grok_acp_delegate echoes
the same permission object in its submission receipt. Do not use one-path
allow_once on this live MCP lane. Conversation admission persists the
job, including exact broker
ownership, before the binding is published. Only confirmed unstarted or
released admissions may be replaced by the same owner; once worker startup
is attempted, the admission stays fenced until cleanup is explicitly proven.
Live or unobservable workers stay fenced. Do not retry or delete uncertain
ownership.grok_acp_status for progress and
grok_acp_result with a bounded wait for the canonical outcome. A
submitted job, process exit, or progress event is not task success.grok_acp_steer fails closed with STEERING_UNSUPPORTED. Wait for the
canonical terminal result, then explicitly delegate a bounded follow-up. Use
grok_acp_cancel when the parent decision changes or the bounded budget is
no longer justified. A missing active session is a fail-closed result, not a
reason to create a replacement session.completed, failed, cancelled, and needs-input as distinct
outcomes. Escalate needs-input to the user with the bounded reason; do not
invent a login flow, API-key fallback, or hidden approval..env files, or tokens.SAARIUS_ACP_HOP_ARGV JSON argv on the parent
launcher): same six tools; ACpx stays a local child on the worker;
workspace is worker-absolute. Do not hop with acpx --agent. Prepare and
Grok login stay on the worker. A live hopped delegate still needs an
isolated worktree, one intended path, and a stated budget.When using Grok Build's native X search tools (x_user_search,
x_keyword_search) through grok-acp:
<=15 X tool calls on
grok-4.7-build-fast (typically finishes in 15–40s). Asking one turn to
verify 30–60+ handles individually causes serial tool loops and risks wall-clock
timeouts.OR-batched x_keyword_search (Latest mode, limit-10 page) queries by
similar posting cadence (2–3 handles per query) or query key handles
individually so high-frequency accounts do not crowd lower-cadence accounts
out of the 10-post page.2,400 chars). For larger structured
rosters, JSON, or status URL lists, have the worker write to an explicit
output path and return only the path and summary counts in the handoff.PROOF.md (Tool calls observed and Tool calls by name) to verify
native X search tools actually executed rather than falling back to memory or
generic web_search.This is an experimental local MCP slice. Local unset hop is L/A1. Set hop is B (host-owned SSH/container argv). It does not rebuild ACP or ACpx, start a Parallels/VM, reach a Grok Bot computer, qualify Puppet's grok harness, or authorize deployment, publication, external sends, spending, account/security changes, or destructive cleanup. A separate host that owns phone or browser chat (for example Swarm Intercom) may start this bridge as its parent; that host is not part of this plugin and is not proven here.
Read taskComplete, cleanupReady, complete, admissionEligible, and
remediation separately. A terminal task or BRIDGE_RESTARTED error never
proves child cleanup. complete requires both task termination and observed
cleanup. admissionEligible describes this job's cleanup gate; normal binder
and current-binding checks still apply. Unsupported session/close can count
as local cleanup only when every exact owned child launch has a matching exit;
backend history discard remains explicitly unsupported.
The default binder is stable for the same host-controlled state root across
broker restarts. Explicit SAARIUS_ACP_BINDER_ID still wins. Keep the genuine
conversation ID. Never provide a previous binder as an impersonation override,
rewrite job records, or delete a binding to bypass admission.
For stranded old process-default binders or interrupted cleanup, use the plan-first utility documented in ACP lifecycle recovery. A human must approve the exact plan before applying to live state. It retains job outcome/history, observes only recorded owned workers, and refuses live, foreign, ambiguous, missing, or unobservable evidence. No broad PID killing, plugin reload, permission reset, or timeout increase is a recovery operation.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saariuslystoned/saariusskills --plugin saarius-skills48 skills in this plugin
/acp-delegationRoute generic requests to use the SaariusSkills ACP plugin or delegate through ACP. The MCP servers come from the separate ai-shed plugin. Discover Grok CLI, Cursor, Antigravity, and Muse native tools, select a suitable harness, verify effective permissions, and submit a bounded task. Use a lane skill directly for an already selected harness./agy-sidebar-sessionStart, message, hand off, inspect, fork, wait on, stop, and export top-level Antigravity 2.0 sidebar sessions across local or SSH-reachable machines using agentapi and LanguageServerService ConnectRPC endpoints. Use when asked to open or manage a sidebar session, hand off work to another Antigravity host, compare quota across subscriptions, message another conversation, or call LanguageServerService RPCs./