coordinate-external-ag…
Coordinate independently operated external agents through durable handoffs. Use when work crosses hosts, sessions, accounts, services, queues, boards, pull…
runpod-flash SDK and CLI for deploying AI workloads on Runpod serverless GPUs/CPUs.
$ npx -y skills add gaelic-ghost/socket --skill flash --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/flashContext preview
The summary Claude sees to decide when to auto-load this skill.
runpod-flash SDK and CLI for deploying AI workloads on Runpod serverless GPUs/CPUs.
name: flash description: runpod-flash SDK and CLI for deploying AI workloads on Runpod serverless GPUs/CPUs. user-invocable: true
Write code locally, iterate with `flash dev` — it runs your functions on remote Runpod GPUs/CPUs with hot-reload and live worker logs — then `flash deploy` to ship. `Endpoint` handles provisioning.
# install the CLI — requires Python 3.10-3.13 uv tool install runpod-flash pip install runpod-flash # auth option 1: browser-based login (saves token locally) flash login # headless: print URL instead of opening a browser flash login --no-open # max seconds to wait for browser auth (default 600) flash login --timeout 300 # auth option 2: API key via environment variable export RUNPOD_API_KEY=your_key # scaffold a new project in ./my-project (writes AGENTS.md + CLAUDE.md) flash init my-project # scaffold in the current directory flash init . # overwrite existing files (-f) flash init my-project --force # update the CLI to the latest version flash update # pin a specific version (-V also works) flash update --version 1.16.0
`flash init` writes `AGENTS.md` (+ a `CLAUDE.md` symlink). To add them to an existing project: `python -c "from runpod_flash.rules import install_agent_files; from pathlib import Path; install_agent_files(Path.cwd())"`.
`flash dev` is the canonical dev-server command (`flash run` still works as a hidden alias).
# local server at :8888, but functions run on REMOTE GPU/CPU workers; # hot-reloads on save and streams the worker's logs live to your terminal flash dev # same, but pre-provision endpoints (no cold start on first call) flash dev --auto-provision # custom port/host; --reload/--no-reload toggles autoreload flash dev --port 9000 --host 0.0.0.0 # build + deploy (auto-selects env if only one) flash deploy # build + deploy to "staging" environment flash deploy --env staging # deploy a specific app to an environment flash deploy --app my-app --env prod # build + launch local preview in Docker flash deploy --preview # build flags below also apply to deploy flash deploy --no-deps --python-version 3.11 # list deployment environments flash env list # create "staging" environment flash env create staging # show environment details + resources flash env get staging # delete environment + tear down resources flash env delete staging # list flash apps in your account flash app list # create a flash app flash app create my-app # show an app's environments + builds flash app get my-app # delete an app and all its resources flash app delete my-app # list all active endpoints flash undeploy list # remove a specific endpoint flash undeploy my-endpoint # remove all endpoints (--interactive/-i to pick, --force/-f to skip prompts) flash undeploy --all # remove endpoints whose code no longer exists locally flash undeploy --cleanup-stale # build-only (no deploy) — mainly for debugging the artifact; `flash deploy` builds for you # package the artifact without deploying (1500MB limit; torch auto-excluded) flash build # build flags: --no-deps, --exclude pkg1,pkg2, --output name.tar.gz, --python-version 3.11 flash build --no-deps
execute on **remote GPU/CPU workers**. Hot-reloads on save and **streams the worker's logs live** to the terminal. No build/upload/deploy wait — use this the whole time you develop.
(build + upload + provision); only do this once the code works under `flash dev`.
`flash dev` ships **only the function body** to the worker, so a `NameError` for a module-level name surfaces immediately here. `flash deploy` imports the whole module and can mask that bug (see Gotcha #1). Develop against `flash dev` and you catch it first.
`flash dev` is a long-running server — run it in the background (don't block on it), capture its output, and drive it over HTTP. The captured log is the remote worker's live stream (cold start, model load, `print`s, tracebacks) — read it to debug.
flash dev > /tmp/flash-dev.log 2>&1 & # background; never run it blocking
until grep -q "flash dev localhost:" /tmp/flash-dev.log; do sleep 2; done # wait for startup
URL=$(grep -o "localhost:[0-9]*" /tmp/flash-dev.log | head -1) # actual port (8888 bumps if taken)
curl -s "$URL/main/predict" -d '{"data": {...}}' # dispatches to the remote workerprints `✓ flash dev localhost:<port>` plus the route table.
`{"data": {...}}`, not the bare object (otherwise 422).
redeploy. Add `--auto-provision` to skip the first-call cold start. `kill %1` when done.
One function = one endpoint with its own workers.
from runpod_flash import Endpoint, GpuGroup
@Endpoint(name="my-worker", gpu=GpuGroup.AMPERE_80, workers=5, dependencies=["torch"])
async def compute(data):
import torch # MUST import inside function (cloudpickle)
return {"sum": torch.tensor(data, device="cuda").sum().item()}
result = await compute([1, 2, 3])Multiple HTTP routes share one pool of workers.
from runpod_flash import Endpoint, GpuGroup
api = Endpoint(name="my-api", gpu=GpuGroup.ADA_24, workers=(1, 5), dependencies=["torch"])
@api.post("/predict")
async def predict(data: list[float]):
import torch
return {"result": torch.tensor(data, device="cuda").sum().iteStuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo
Coordinate independently operated external agents through durable handoffs. Use when work crosses hosts, sessions, accounts, services, queues, boards, pull…
Assign worktree, branch, write, validation, integration, and cleanup ownership before parallel repository work. Use when a worker will inspect or modify…
Design framework-neutral agent and automation workflows before implementation. Use when choosing between Codex app automations, codex exec, Codex subagents,…
Design evaluation workflows for agent, skill, prompt, and automation behavior before implementation. Use when choosing eval cases, graders, thresholds,…
Design safe n8n workflows with deterministic routing, credentials, idempotency, recovery, local-model checks, drafts, and exact approval gates.
Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning, resuming, steering, cancelling,…