agent-swarm
Marketplace for the agent-swarm operator skill
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
Its scripts were only partly scanned.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/desplega-ai/agent-swarm with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/desplega-ai/agent-swarm'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/desplega-ai--agent-swarm)HTML
<a href="/listings/desplega-ai--agent-swarm"><img src="/api/listings/desplega-ai--agent-swarm/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
These steps run a script from the network that findsafeskills does not scan.
Give your coding agent the operator skill for Docker Compose or Kubernetes:
npx skills add desplega-ai/agent-swarm
Or install it as a plugin in your harness:
| Harness | Command | |---|---| | Claude Code | `/plugin marketplace add desplega-ai/agent-swarm` then `/plugin install agent-swarm@agent-swarm` | | Codex | `codex plugin marketplace add desplega-ai/agent-swarm && codex plugin add agent-swarm@agent-swarm` (or use `npx skills` above) | | Cursor | `/add-plugin desplega-ai/agent-swarm` | | Gemini CLI | `gemini extensions install https://github.com/desplega-ai/agent-swarm` | | Antigravity / Factory Droid | `droid plugin marketplace add https://github.com/desplega-ai/agent-swarm` then `droid plugin install agent-swarm@agent-swarm` | | OpenCode, pi, Devin, Kimi, others | `npx skills add desplega-ai/agent-swarm` |
The plugin's [privacy](https://www.agent-swarm.dev/privacy) and [terms](https://www.agent-swarm.dev/terms) links describe the Agent Swarm website and Cloud service. The self-hosted software remains covered by the [MIT License](./LICENSE).
Or self-host. [`docker-compose.example.yml`](https://github.com/desplega-ai/agent-swarm/blob/main/docker-compose.example.yml) is the reference deployment: deploy every agent in it by default (1 lead and 11 workers on the official templates), and remove agents only when you have a reason to.
Plan for at least 4 vCPU, 8 GB RAM and 40 GB of free disk, and prune old Docker images after upgrades. See [Host requirements & disk cleanup](https://docs.agent-swarm.dev/docs/guides/host-requirements).
The one-shot installer checks Docker and Compose v2, installs Bun when missing, runs `agent-swarm onboard --yes --preset full` (every official template; it runs one coder where the example runs two), and prints the dashboard `/setup` link:
curl -fsSL https://agent-swarm.dev/install.sh | bash
The raw GitHub URL (`https://raw.githubusercontent.com/desplega-ai/agent-swarm/main/install.sh`) serves the same script. The API is public through a tunnel by default, protected by the API key. Add `bash -s -- --no-tunnel` to keep it local.
No server yet? Deploy the Railway template in one click:
Or [deploy one](https://docs.agent-swarm.dev/docs/guides/one-click-deploy) on any VPS: paste [`deploy/cloud-init.yaml`](./deploy/cloud-init.yaml) as the user data of a new 4 vCPU / 8 GB Ubuntu server (Hetzner, DigitalOcean, Lightsail, Vultr). It installs Docker and Caddy, serves the API over HTTPS on `<ip>.sslip.io` or your domain, and shows the `/setup` link to root at login. To look first, [try it for an hour on E2B](https://docs.agent-swarm.dev/docs/guides/one-click-deploy#try-it-for-an-hour-on-e2b); that trial deletes its data when the sandboxes stop.
Or use the examples directly:
git clone https://github.com/desplega-ai/agent-swarm.git && cd agent-swarm cp .env.docker.example .env # Set API_KEY and the credential for your HARNESS_PROVIDER. openssl rand -base64 32 > encryption_key chmod 600 .env encryption_key docker compose -f docker-compose.example.yml --env-file .env up -d
Agent ID variables are optional. Each container generates a UUID on first boot and keeps it in its personal volume, so identity survives restarts. Pin `*_AGENT_ID` in `.env` only to keep an existing identity or to survive removing volumes.
Read the [Compose checklist](./skills/agent-swarm/references/compose.md) before starting. API: http://localhost:3013, with `/docs` and `/openapi.json`. Next, open the [dashboard](https://app.agent-swarm.dev) and connect it to your API with `API_KEY`. A new install lands on `/setup`, a guided first run that covers providers, agents, memory, integrations, and a first task. Kubernetes: [install the OCI Helm chart](./charts/agent-swarm/README.md).
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
.claude-plugin/marketplace.json · Manifest · 21 lines
- {
- "name": "agent-swarm",
- "description": "Marketplace for the agent-swarm operator skill",
- "owner": {
- "name": "desplega.sh",
- "email": "contact@desplega.sh"
- },
- "plugins": [
- {
- "name": "agent-swarm",
- "description": "Install, deploy, and operate agent-swarm: Docker Compose, Kubernetes with Helm, HTTPS, agent-fs, integrations, and the API for coding agents",
- "version": "2.13.5",
- "source": "./",
- "author": {
- "name": "desplega.sh",
- "email": "contact@desplega.sh",
- "url": "https://github.com/desplega-ai"
- }
- }
- ]
- }
README.md · README · 157 lines · 1 finding marked
- <p align="center"><a href="https://github.com/desplega-ai/agent-swarm/stargazers"><img src="https://img.shields.io/github/stars/desplega-ai/agent-swarm?style=flat-square&color=yellow" alt="GitHub Stars"></a> <a href="https://github.com/desplega-ai/agent-swarm/blob/main/LICENSE"><img src="https://img.shields.io/github/license/desplega-ai/agent-swarm?style=flat-square" alt="MIT License"></a> <a href="https://github.com/desplega-ai/agent-swarm/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square" alt="PRs Welcome"></a></p>
- <p align="center"><b><a href="https://swar.am">Agent Swarm</a> is the open-source, self-hosted AI company operating system built by <a href="https://desplega.sh">Desplega Labs</a>.</b></p>
- <!-- It is not OpenAI Swarm, OpenAI's experimental educational library, replaced by the OpenAI Agents SDK. -->
- > [!TIP]
- > **This repo evolves every single day.** [Watch now →](https://github.com/desplega-ai/agent-swarm/subscription)
- <p align="center"><video src="https://github.com/user-attachments/assets/837f385f-403a-4ea7-bd52-8388368a03a3" controls muted playsinline width="720"></video></p>
- <p align="center"><sub>▸ <a href="./assets/agent-swarm-every-team.mp4">every team, one swarm</a> · <a href="./assets/agent-swarm.mp4">daily evolution</a> · <a href="./assets/video-source">Making of</a></sub></p>
- <p align="center"><a href="https://agent-swarm.dev"><img src="https://img.shields.io/badge/Website-agent--swarm.dev-000?style=for-the-badge" alt="Website"></a> <a href="https://docs.agent-swarm.dev"><img src="https://img.shields.io/badge/Docs-docs.agent--swarm.dev-amber?style=for-the-badge" alt="Docs"></a> <a href="https://app.agent-swarm.dev"><img src="https://img.shields.io/badge/Dashboard-app.agent--swarm.dev-blue?style=for-the-badge" alt="Dashboard"></a> <a href="https://discord.gg/KZgfyyDVZa"><img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join Discord"></a> <a href="https://x.com/agent__swarm"><img src="https://img.shields.io/badge/𝕏-@agent____swarm-000?style=for-the-badge&logo=x&logoColor=white" alt="Follow on X"></a> <a href="https://www.linkedin.com/company/desplega-labs/"><img src="https://img.shields.io/badge/LinkedIn-Desplega%20Labs-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white" alt="Desplega Labs on LinkedIn"></a> <a href="https://www.youtube.com/@desplega-labs/videos"><img src="https://img.shields.io/badge/YouTube-Desplega%20Labs-FF0000?style=for-the-badge&logo=youtube&logoColor=white" alt="Desplega Labs on YouTube"></a></p>
- agent-swarm.dev is an open-source operating system for AI work. A lead agent delegates goals to workers such as Claude Code or Codex. Isolated containers, shared memory, tools, schedules, and review gates preserve work across sessions.
- ## What you get
- - A lead agent that receives work from Slack, repositories, issue trackers, email, or the API
- - [Schema-validated task results](./MCP.md#send-task) for callers that need structured JSON output
- - [Deferred tasks](./MCP.md#defer-task) that wake when all or any watched tasks reach an outcome, or a deadline arrives
- - [Inline tool-result images](https://docs.agent-swarm.dev/docs/ui#tool-result-images) in task logs, with previews that open at full size
- - [Dashboard file attachments](https://docs.agent-swarm.dev/docs/ui#file-attachments) by paste, drag-and-drop, or file picker
- - Workers in isolated Docker containers with development environments
- - Memory and identity that persist across sessions, with citation ratings and self-rating hints enabled by default
- - Workflows, schedules, scripts, and apps for recurring work
- - [Extensions](https://docs.agent-swarm.dev/docs/guides/extensions) for trusted TypeScript hooks, installed as agent-owned inert drafts and activated by a trusted lead, operator, or dashboard user
- - [Realtime rooms](./runbooks/realtime-rooms.md) for shared page state, presence, and live channels
- - Your choice of harness and models: Claude Code, Codex, pi, opencode, [Cursor](https://docs.agent-swarm.dev/docs/guides/provider-auth/cursor), Amp, [Grok](https://docs.agent-swarm.dev/docs/guides/provider-auth/grok), [fx](https://docs.agent-swarm.dev/docs/guides/provider-auth/fx), Devin, or ACP agents
- ```mermaid
- flowchart LR
- subgraph IN["Tasks come in"]
- direction TB
- S["Slack"]
- G["GitHub / GitLab"]
- E["Email"]
- A["API / CLI"]
- end
- LEAD(["Lead Agent<br/>plans & delegates"])
- subgraph WORKERS["Workers in Docker"]
- direction TB
- W1["Worker"]
- W2["Worker"]
- W3["Worker"]
- end
- subgraph BRAIN["Persistent brain"]
- direction TB
- MEM["Memory<br/>(vector search)"]
- ID["Identity<br/>(SOUL, CLAUDE.md)"]
- end
- subgraph OUT["Work ships"]
- direction TB
- PR["Pull Requests"]
- REPLY["Slack replies"]
- EMAIL["Email replies"]
- end
- IN --> LEAD --> WORKERS
- WORKERS -->|reads context| BRAIN
- WORKERS -->|writes learnings| BRAIN
- WORKERS --> OUT
- ```
- ## Quick Start
- Give your coding agent the operator skill for Docker Compose or Kubernetes:
- ```bash
- npx skills add desplega-ai/agent-swarm
- ```
- Or install it as a plugin in your harness:
- | Harness | Command |
- |---|---|
- | Claude Code | `/plugin marketplace add desplega-ai/agent-swarm` then `/plugin install agent-swarm@agent-swarm` |
- | Codex | `codex plugin marketplace add desplega-ai/agent-swarm && codex plugin add agent-swarm@agent-swarm` (or use `npx skills` above) |
- | Cursor | `/add-plugin desplega-ai/agent-swarm` |
- | Gemini CLI | `gemini extensions install https://github.com/desplega-ai/agent-swarm` |
- | Antigravity / Factory Droid | `droid plugin marketplace add https://github.com/desplega-ai/agent-swarm` then `droid plugin install agent-swarm@agent-swarm` |
- | OpenCode, pi, Devin, Kimi, others | `npx skills add desplega-ai/agent-swarm` |
- The plugin's [privacy](https://www.agent-swarm.dev/privacy) and
- [terms](https://www.agent-swarm.dev/terms) links describe the Agent Swarm website and
- Cloud service. The self-hosted software remains covered by the [MIT License](./LICENSE).
- Or self-host. [`docker-compose.example.yml`](https://github.com/desplega-ai/agent-swarm/blob/main/docker-compose.example.yml) is the reference deployment: deploy every agent in it by default (1 lead and 11 workers on the official templates), and remove agents only when you have a reason to.
- Plan for at least 4 vCPU, 8 GB RAM and 40 GB of free disk, and prune old Docker images after upgrades. See [Host requirements & disk cleanup](https://docs.agent-swarm.dev/docs/guides/host-requirements).
- The one-shot installer checks Docker and Compose v2, installs Bun when missing, runs `agent-swarm onboard --yes --preset full` (every official template; it runs one coder where the example runs two), and prints the dashboard `/setup` link:
- ```bash
- curl -fsSL https://agent-swarm.dev/install.sh | bash
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 95 on GitHub
- ```
- The raw GitHub URL (`https://raw.githubusercontent.com/desplega-ai/agent-swarm/main/install.sh`) serves the same script. The API is public through a tunnel by default, protected by the API key. Add `bash -s -- --no-tunnel` to keep it local.
- No server yet? Deploy the Railway template in one click:
- [](https://railway.com/deploy/agent-swarm)
- Or [deploy one](https://docs.agent-swarm.dev/docs/guides/one-click-deploy) on any VPS: paste [`deploy/cloud-init.yaml`](./deploy/cloud-init.yaml) as the user data of a new 4 vCPU / 8 GB Ubuntu server (Hetzner, DigitalOcean, Lightsail, Vultr). It installs Docker and Caddy, serves the API over HTTPS on `<ip>.sslip.io` or your domain, and shows the `/setup` link to root at login. To look first, [try it for an hour on E2B](https://docs.agent-swarm.dev/docs/guides/one-click-deploy#try-it-for-an-hour-on-e2b); that trial deletes its data when the sandboxes stop.
- Or use the examples directly:
- ```bash
- git clone https://github.com/desplega-ai/agent-swarm.git && cd agent-swarm
- cp .env.docker.example .env # Set API_KEY and the credential for your HARNESS_PROVIDER.
- openssl rand -base64 32 > encryption_key
- chmod 600 .env encryption_key
- docker compose -f docker-compose.example.yml --env-file .env up -d
- ```
- Agent ID variables are optional. Each container generates a UUID on first boot and keeps it in its personal volume, so identity survives restarts. Pin `*_AGENT_ID` in `.env` only to keep an existing identity or to survive removing volumes.
- Read the [Compose checklist](./skills/agent-swarm/references/compose.md) before starting. API: http://localhost:3013, with `/docs` and `/openapi.json`.
- Next, open the [dashboard](https://app.agent-swarm.dev) and connect it to your API with `API_KEY`. A new install lands on `/setup`, a guided first run that covers providers, agents, memory, integrations, and a first task.
- Kubernetes: [install the OCI Helm chart](./charts/agent-swarm/README.md).
- ## Integrations
- Slack · GitHub · GitLab · Azure DevOps · Linear · Jira · AgentMail · WhatsApp (Kapso) · Telegram, Teams, Discord and Rocket.Chat ([Chat SDK](https://docs.agent-swarm.dev/docs/integrations/chat-sdk)) · Composio · Sentry · Devin · [Serply search](https://docs.agent-swarm.dev/docs/integrations/serply). [Integration guides](https://docs.agent-swarm.dev/docs/integrations).
- AgentMail archives verified inbound deliveries before acknowledging them and retains the archive for 30 days, including mail excluded from task routing. See the [contact inbox triage runbook](runbooks/contact-inbox-triage.md) for retention, coverage limits, and rollout instructions.
- ## Learn more
- - [Getting started](https://docs.agent-swarm.dev/docs/getting-started) · [Architecture](https://docs.agent-swarm.dev/docs/architecture/overview) · [Playbooks](https://docs.agent-swarm.dev/docs/playbooks) · [CLI](https://docs.agent-swarm.dev/docs/reference/cli) · [API reference](https://docs.agent-swarm.dev/docs/api-reference)
- - [Orchestration patterns](./docs/orchestration-patterns.md) — Five patterns for delegating, fanning out, gating on humans, retrying, and persisting multi-step agent work
- - [Agent templates](https://templates.agent-swarm.dev)
- - [Public ranking](https://docs.agent-swarm.dev/docs/reference/telemetry#public-ranking): opt in with **Get ranked** (Settings → Configuration → Branding) to rank your install by tokens used on [agent-swarm.dev/ranking](https://agent-swarm.dev/ranking). It shows at the next hourly refresh. Token totals are public and exact; telemetry, the organization name and website must be set.
- - Help: [contact@desplega.sh](mailto:contact@desplega.sh) · [Discord](https://discord.gg/KZgfyyDVZa)
- ## Contributing
- Read [CONTRIBUTING.md](./CONTRIBUTING.md), fork the repository, create a branch, and open a PR. Discuss ideas on [Discord](https://discord.gg/KZgfyyDVZa).
- > Are you an agent? Run `npx skills add desplega-ai/agent-swarm` or read the [operator skill](./skills/agent-swarm/SKILL.md).
- ## Star History
- <picture><source media="(prefers-color-scheme: dark)" srcset="https://api.desplega.agent-swarm.dev/p/e3473addceb348c0bed6cb93bd5aa532" /> <source media="(prefers-color-scheme: light)" srcset="https://api.desplega.agent-swarm.dev/p/4b5cdc17c45e4a63845fb0a71ed9609c" /> <img alt="Star History Chart" src="https://api.desplega.agent-swarm.dev/p/4b5cdc17c45e4a63845fb0a71ed9609c" /></picture>
- ## License
- [MIT](./LICENSE) · 2025-2026 [desplega.sh](https://desplega.sh)
- ### Feature defaults
- Fresh deployments enable Slack thread renderer v2, queued Slack steering to the lead,
- task steering, multi-runtime workers, RBAC, and task-tool preloading. Hybrid memory
- search and graph expansion are also enabled. Explicit environment/config overrides
- remain supported; see the [environment reference](https://docs.agent-swarm.dev/docs/reference/environment-variables).
- When upgrading older workers, keep `MULTI_RUNTIME_ENABLED=false` until they support
- runtime identities. Slack delegation rendering remains opt-in, and database retention
- continues to default to dry-run.
.claude/internal-skills/onboarding-qa/scripts/inner-turn.sh · Bundled script · 106 lines · 2 findings marked
- #!/usr/bin/env bash
- # Drive the "user's coding agent" (headless Claude Code) on a QA box, one turn at a time.
- #
- # inner-turn.sh setup <run> <root|alex> install Claude Code for that user, upload the turn runner
- # inner-turn.sh send <run> <message-file> start the next turn on the box (detached, survives SSH drops)
- # inner-turn.sh wait <run> [seconds] wait for the running turn (default 540), then fetch + summarize it
- # inner-turn.sh turn <run> <message-file> [s] send + wait
- #
- # Turn 1 creates the session; later turns --resume it. The box user needs
- # ~/qa-secrets/CLAUDE_CODE_OAUTH_TOKEN (secrets.sh push). Transcripts land in
- # /tmp/onboarding-qa-<run>/turns/<n>.jsonl, summaries in <n>.summary.md.
- set -euo pipefail
- here="$(cd "$(dirname "$0")" && pwd)"
- common="$(git -C "$here" rev-parse --path-format=absolute --git-common-dir)"
- ENV_FILE="${ONBOARDING_QA_ENV_FILE:-$(dirname "$common")/.env}"
- dir_of() {
- local dir="/tmp/onboarding-qa-$1"
- [ -f "$dir/ssh_config" ] || { echo "no ssh config at $dir (box.sh up first)" >&2; exit 2; }
- echo "$dir"
- }
- host_of() {
- local dir="$1"
- [ -f "$dir/inner.env" ] || { echo "run inner-turn.sh setup first" >&2; exit 2; }
- grep -E '^HOST=' "$dir/inner.env" | cut -d= -f2
- }
- cmd_setup() {
- local run="$1" who="$2" dir host
- dir="$(dir_of "$run")"
- case "$who" in root) host=box ;; alex) host=box-user ;; *) echo "user must be root or alex" >&2; exit 2 ;; esac
- ssh -F "$dir/ssh_config" "$host" 'command -v claude >/dev/null || [ -x ~/.local/bin/claude ] || curl -fsSL https://claude.ai/install.sh | bash >/dev/null'
- ssh -F "$dir/ssh_config" "$host" 'mkdir -p ~/.qa/turns && cat /proc/sys/kernel/random/uuid > ~/.qa/session-id && cat > ~/.qa/turn.sh && chmod +x ~/.qa/turn.sh' <<'RUNNER'
- #!/usr/bin/env bash
- # One headless turn. Exit code lands in turns/<n>.exit when the turn ends.
- set -uo pipefail
- n="$1"
- q="$HOME/.qa"
- export PATH="$HOME/.local/bin:$PATH"
- CLAUDE_CODE_OAUTH_TOKEN="$(cat "$HOME/qa-secrets/CLAUDE_CODE_OAUTH_TOKEN")"
- export CLAUDE_CODE_OAUTH_TOKEN
- # Tags anything the agent runs from this shell (bunx onboard, CLI calls) as QA telemetry.
- export DESPLEGA_TELEMETRY_ENV=onboarding-qa
- # Claude Code refuses --dangerously-skip-permissions as root unless it is told it runs in a sandbox.
- Note: Starts a coding agent with its permission prompts off
- Line 46 on GitHub
- if [ "$(id -u)" = 0 ]; then export IS_SANDBOX=1; fi
- sid="$(cat "$q/session-id")"
- if [ "$n" = 1 ]; then session=(--session-id "$sid"); else session=(--resume "$sid"); fi
- cd "$HOME"
- date +%s >"$q/turns/$n.start"
- claude -p --output-format stream-json --verbose --dangerously-skip-permissions "${session[@]}" \
- Note: Starts a coding agent with its permission prompts off
- Line 52 on GitHub
- <"$q/turns/$n.in" >"$q/turns/$n.jsonl" 2>"$q/turns/$n.err"
- echo $? >"$q/turns/$n.exit"
- RUNNER
- printf 'HOST=%s\nTURN=0\n' "$host" >"$dir/inner.env"
- echo "inner agent ready for $who on box ($(ssh -F "$dir/ssh_config" "$host" 'PATH="$HOME/.local/bin:$PATH" claude --version'))"
- }
- cmd_send() {
- local run="$1" msg="$2" dir host n
- dir="$(dir_of "$run")"
- host="$(host_of "$dir")"
- [ -f "$msg" ] || { echo "no message file $msg" >&2; exit 2; }
- n=$(($(grep -E '^TURN=' "$dir/inner.env" | cut -d= -f2) + 1))
- if [ "$n" -gt 1 ] && ! ssh -F "$dir/ssh_config" "$host" "test -f ~/.qa/turns/$((n - 1)).exit"; then
- echo "turn $((n - 1)) is still running: inner-turn.sh wait $run" >&2
- exit 1
- fi
- ssh -F "$dir/ssh_config" "$host" "cat > ~/.qa/turns/$n.in" <"$msg"
- cp "$msg" "$dir/turns/$n.in"
- ssh -F "$dir/ssh_config" "$host" "setsid nohup ~/.qa/turn.sh $n >/dev/null 2>&1 </dev/null &"
- printf 'HOST=%s\nTURN=%s\n' "$host" "$n" >"$dir/inner.env"
- echo "turn $n started $(TZ=Europe/Madrid date '+%H:%M:%S') BCN"
- }
- cmd_wait() {
- local run="$1" timeout="${2:-540}" dir host n waited=0
- dir="$(dir_of "$run")"
- host="$(host_of "$dir")"
- n="$(grep -E '^TURN=' "$dir/inner.env" | cut -d= -f2)"
- [ "$n" -gt 0 ] || { echo "no turn sent yet" >&2; exit 2; }
- until ssh -F "$dir/ssh_config" "$host" "test -f ~/.qa/turns/$n.exit"; do
- if [ "$waited" -ge "$timeout" ]; then
- echo "turn $n still running after ${waited}s. Call: inner-turn.sh wait $run"
- exit 3
- fi
- sleep 15
- waited=$((waited + 15))
- done
- scp -q -F "$dir/ssh_config" "$host:.qa/turns/$n.jsonl" "$host:.qa/turns/$n.err" "$host:.qa/turns/$n.exit" "$dir/turns/"
- # Secrets the install generated (API key, encryption key) are scrubbed too.
- ssh -F "$dir/ssh_config" box \
- "find /root /home /opt /srv -maxdepth 4 -name .env -not -path '*/node_modules/*' -exec cat {} + 2>/dev/null" \
- >"$dir/box.env" || true
- chmod 600 "$dir/box.env"
- bun "$here/summarize-turn.ts" "$dir/turns/$n.jsonl" --env "$ENV_FILE" --env "$dir/box.env"
- }
- case "${1:-}" in
- setup) cmd_setup "${2:?run id}" "${3:?root|alex}" ;;
- send) cmd_send "${2:?run id}" "${3:?message file}" ;;
- wait) cmd_wait "${2:?run id}" "${3:-}" ;;
- turn) cmd_send "${2:?run id}" "${3:?message file}" && cmd_wait "$2" "${4:-}" ;;
- *) sed -n '2,12p' "$0"; exit 2 ;;
- esac
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.