Scan your whole stack
From OX Research Newsroom
Latest version: vgit:f9d9a43a8c750bbc92a7f58b7e77c974c9e08c36
swarm was last scanned on 17 Nov 2026 at commit f9d9a43a. Risk score 40 of 100 (medium). No malicious behavior was detected. The AI review did not flag it.
| Version | Published | Status |
|---|---|---|
| f9d9a43a | 1 rule fired |
Findings for commit f9d9a43a. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
A script shipped with the skill sends a credential or secret value into a network call, posts to a data-collection endpoint (a paste or request-capture service), or fetches a cloud metadata address.
MEDIUMThe score describes f9d9a43a; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Fan out N parallel workers locally or across Google Cloud Run. Workers cover separate slices or race the same brief. The parent coordinator waits, aggregates, and returns one consolidated report.
Open a todolist with one entry per phase before launching anything.
first pass, rank all, or best-of.swarm workers in ~/.gemini/config/plugins/agystack/agystack-models.md (default: flash).agystack-runtime.json does not exist or specifies "runtime": "local", use local subagents for N \<= 8.agystack-runtime.json specifies "runtime": "cloud-run", use Cloud Run dispatch.Spawn all N workers in one invoke_subagent call with TypeName: "poteto-agent" (or "self"), Role: "Swarm Worker (<slice>)", Workspace: "branch", and the configured model. In each worker prompt, explicitly provide {PARENT_CONVERSATION_ID} and mandate that upon task completion, the worker MUST invoke send_message with Recipient: "{PARENT_CONVERSATION_ID}" to deliver its slice status and findings (mirroring skills/interrogate/references/reviewer-prompt.md) so the coordinator receives reactive wakeups without timing out.
Reactive Dispatch & Watchdog Protocol:
invoke_subagent and arm a single global watchdog deadline using schedule(DurationSeconds: 300..600, Prompt="Watchdog: swarm workers timed out", TimerCondition: "never").tool_calls: []). Never run busy polling loops on local subagents.send_message, record slice results and yield immediately with ZERO tool calls if workers remain active.manage_task(Action: "kill", TaskId: <timer_task_id>) and proceed to Phase C. If the watchdog fires, diagnose via manage_subagents(Action: "list"), terminate unresponsive workers (manage_subagents(Action: "kill", ConversationIds: [<id>])), and aggregate available slice results.Cloud Run swarms enable parallel execution across dozens or hundreds of container tasks.
Model Selection & Friction Tiers:
Before launching cloud swarms, match the model to the project's Model Garden enablement status:
| Tier | Models | Endpoint Type | Friction | Setup Required |
|---|---|---|---|---|
| Tier 1: Native MaaS | gemini-4-argon, gemini-3.8-flash, deepseek-v4.1-flash |
Global Serverless | Zero | Instant via existing ADC / project IAM |
| Tier 2: Gated Partner MaaS | claude-3-7-sonnet, claude-3-5-sonnet, claude-3-opus |
Regional Serverless | Low / One-Time | Console agreement click-through required |
| Tier 3: Dedicated GPU | glm-5-3-flash, llama-3.3-70b |
Dedicated Endpoint | High | Dedicated 8x H100/B200 GPU instance provisioning |
Quota & Auth Prerequisites:
roles/aiplatform.user on the target project). Free-tier API keys (5 RPM) are prohibited as parallel container workers will immediately exhaust quota and fail.gh auth token or GH_TOKEN / GITHUB_TOKEN) with repository clone access. Under the zero-push architecture, cloud containers do not require git push access.Dispatch Workflow:
Prepare Task Manifest:
Create a manifest JSON array at <appDataDir>/brain/<conversation-id>/scratch/swarm-<slug>/manifest.json.
The manifest supports both autonomous agent coding ("type": "agent", default) and direct command execution ("type": "command" for sweeps/benchmarks), along with optional "verify_command" and "candidate_files":
[
{
"task_index": 0,
"type": "agent",
"branch": "worker-0",
"brief": "Implement hypothesis A in src/ordering/mod.rs and verify with test suite.",
"verify_command": "cargo test --release",
"candidate_files": ["src/ordering/mod.rs"]
},
{
"task_index": 1,
"type": "command",
"command": "python3 evaluate_slice.py --slice 0..50"
}
]
Execute Active Pre-Flight Check: Run active pre-flight validation to ensure credentials, git remotes, model endpoints, and GCS buckets are reachable before spinning up compute:
python3 "${AGYSTACK_DISPATCH_SCRIPT:-$(find -L "$HOME/.gemini/config/plugins/agystack" ".agents/plugins/agystack" "skills/swarm/scripts" -name cloud_dispatch.py 2>/dev/null | head -n 1)}" --preflight --gcs-bucket <bucket> --model gemini-3.8-flash --vertex
(Pre-flight runs automatically by default during dispatch unless --no-preflight is specified.)
Launch the Swarm & Stream Real-Time Milestones: Launch cloud dispatch CLI with unbuffered streaming and fail-fast candidate evaluation:
python3 "${AGYSTACK_DISPATCH_SCRIPT:-$(find -L "$HOME/.gemini/config/plugins/agystack" ".agents/plugins/agystack" "skills/swarm/scripts" -name cloud_dispatch.py 2>/dev/null | head -n 1)}" \
--manifest <manifest-path> \
--tasks <N> \
--gcs-bucket <bucket> \
--model gemini-3.8-flash \
--vertex
Pass --vertex to enable Vertex AI mode (IAM / ADC authentication) instead of Google AI Studio API key. When agystack-runtime.json specifies "auth_mode": "vertex", workers authenticate via Google Cloud IAM/ADC without requiring GEMINI_API_KEY. Concurrency (default 16) and fail-fast zero retries (--max-retries=0) are configured directly on the Cloud Run job template during /setup-agystack (setup_runtime.py).
Asynchronous Coordination & Detached Monitoring:
When coordinating asynchronously, pass --no-wait to cloud_dispatch.py to prevent blocking the agent turn:
# Dispatch asynchronously and return execution handle immediately
python3 "${AGYSTACK_DISPATCH_SCRIPT:-$(find -L "$HOME/.gemini/config/plugins/agystack" ".agents/plugins/agystack" "skills/swarm/scripts" -name cloud_dispatch.py 2>/dev/null | head -n 1)}" \
--manifest <manifest-path> \
--tasks <N> \
--gcs-bucket <bucket> \
--no-wait
# Harvest and rank candidate patches from an existing session without launching compute
python3 "${AGYSTACK_DISPATCH_SCRIPT:-$(find -L "$HOME/.gemini/config/plugins/agystack" ".agents/plugins/agystack" "skills/swarm/scripts" -name cloud_dispatch.py 2>/dev/null | head -n 1)}" \
--harvest-session <session_id> --gcs-bucket <bucket> --baseline-score <float>
# Attach to a running execution to stream milestones and harvest upon completion
python3 "${AGYSTACK_DISPATCH_SCRIPT:-$(find -L "$HOME/.gemini/config/plugins/agystack" ".agents/plugins/agystack" "skills/swarm/scripts" -name cloud_dispatch.py 2>/dev/null | head -n 1)}" \
--wait-execution <execution_name> --session <session_id> --gcs-bucket <bucket>
The dispatcher automatically executes pre-flight checks, retrieves GH_TOKEN via gh auth token, executes the Cloud Run Job, streams real-time unbuffered [MILESTONE] execution progress directly to stdout as events occur, and aggregates final candidate patches into a ranked summary report. Dispatchers and coordinators must never block passively on buffered command execution.
Observability, Loop Alarms & In-Flight Steering:
[MILESTONE] [TASK <i>] [PHASE: <phase>] <detail>, standardizing progress tracking and capturing internal SDK lifecycle events.[ALARM] [TASK <i>] [POTENTIAL_LOOP]) and injects warnings into model context without terminating execution.MailboxEnvelope) stored under swarms/<session_id>/tasks/task-<i>/inbox/<seq>_steer.json.0001_steer.json). Workers acknowledge envelopes (status=acknowledged) and record processed sequence numbers in _seen_steer_seqs to guarantee idempotent delivery without duplicate execution across reconnects or retries.retry_gcs_operation) to handle transient network timeouts and connection resets when interacting with Cloud Storage.cleanup_session purges ephemeral mailbox envelopes (cleanup_mailboxes) across worker inboxes and outboxes while preserving task shadow transcripts.python3 cloud_dispatch.py steer --task <index> --instruction "<text>" [--session <id>] [--gcs-bucket <bucket>]python3 cloud_dispatch.py steer --task all --instruction "<text>" [--session <id>] [--gcs-bucket <bucket>] delivers steering instructions to every worker in the swarm session.python3 steer_cloud_task.py --task <index|all> --instruction "<text>" [--session <id>] [--gcs-bucket <bucket>] [--abort] wraps steering calls with structured validation (validating task indices, non-empty instructions, monotonic sequences, and bounds checking with exit code 1 on out-of-range targets).[STEER] Instruction delivered to task-<index> mailbox in GCS.pre_tool_call_decide).[MILESTONE] [TASK <i>] [PHASE: STEER_APPLIED] <instruction> and inject custom context into the LLM prompt via HookResult(allow=True, custom_context=instruction).ABORT or CANCEL emit [MILESTONE] [TASK <i>] [PHASE: ABORT_REQUESTED] <instruction> and cleanly terminate execution via HookResult(allow=False, error_message=...).SwarmDashboardWriter captures steering dispatches to display STEER_PENDING: <instruction> under Active Phase / Tool and clears the pending status once STEER_APPLIED is acknowledged.COMMAND_TIMEOUT, VERIFY_TIMEOUT), preventing hanging processes from stalling container lifecycle.Every brief stands alone. Include goal, scope, exact slice, verification command, and expected report format ([STATUS: PASS], [STATUS: ISSUES], or [STATUS: BLOCKED] with evidence).
invoke_subagent.cloud_dispatch.py automatically harvests candidate patches from GCS into .slices/<session_id>/task-<i>/ and displays candidate patch file locations in the execution summary.patch.diff to a local worktree (git apply .slices/<session_id>/task-<i>/patch.diff), run local verification, and commit. If verified, re-baseline and evaluate subsequent candidates sequentially. Never merge or compose multiple candidate patches simultaneously without intermediate verification (principle-sequence-verifiable-units).Return one consolidated in-chat report with the table, issue one-liners, gaps or dropouts, and the race rule when used.
Cloud Run swarms orchestrate massive parallel worker execution across container instances:
gemini-3.8-flash, gemini-3.7-flash, etc.) exclusively on the global Vertex AI endpoint (aiplatform.googleapis.com with locations/global). Regional endpoints return HTTP 404 for Gemini 3.x. Always route Gemini 3.x requests to global and supply the X-Goog-User-Project header.PASS with candidate source modifications outside bootstrap scaffolding, workers generate a patch.diff and upload run artifacts (score.json, patch.diff, results.tsv) directly to GCS under swarms/<session_id>/task-<i>/. The coordinator harvests patches from GCS, ranks candidate solutions by score delta, and applies the winning patch.diff locally. Cloud workers must never upload unverified infrastructure scaffolding or error-state changes as candidate patches.cloud_dispatch.py --no-wait) monitored via background CLI tasks. This NEVER applies to native local Antigravity subagents (invoke_subagent), which must follow the event-driven reactive wakeup invariant (zero polling). Swarm dispatchers must never block synchronously on buffered command execution (subprocess.run with --wait and capture_output=True). The parent coordinator must maintain an active heartbeat schedule (every 60-120s), polling Cloud Run execution conditions, streaming milestone logs, and checking git remotes. Never remain passive behind a monolithic background task.--max-retries=0) so broken hypotheses fail fast. Coordinators monitor Cloud Run task completion and inspect storage manifests (gs://<bucket>/swarms/<session_id>/task-*). As soon as a candidate achieves a verified score win, the coordinator harvests the patch and advances it immediately rather than waiting for slow or hanging stragglers.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.