agent-swarm
Install, self-host, deploy, operate, or use agent-swarm. Covers Docker Compose, Kubernetes, configuration, coding agents, the…
Build and iterate on schema-backed Swarm Apps with live models, named queries, custom actions, and json-render interfaces using the app-upsert, app-get, app-list, and app-patch tools.
Claude Code
$ npx -y skills add desplega-ai/agent-swarm --skill apps --agent claude-code
Codex
$ npx skills add desplega-ai/agent-swarm --skill apps -a codex -y
Cursor
$ npx skills add desplega-ai/agent-swarm --skill apps -a cursor -y
Gemini CLI
$ npx skills add desplega-ai/agent-swarm --skill apps -a gemini-cli -y
GitHub Copilot
$ npx skills add desplega-ai/agent-swarm --skill apps -a github-copilot -y
OpenCode
$ npx skills add desplega-ai/agent-swarm --skill apps -a opencode -y
Windsurf
$ npx skills add desplega-ai/agent-swarm --skill apps -a windsurf -y
name: apps description: Build and iterate on schema-backed Swarm Apps with live models, named queries, custom actions, and json-render interfaces using the app-upsert, app-get, app-list, and app-patch tools.
Swarm Apps are persistent, agent-authored internal applications: a schema-backed row store, named queries, custom script/task actions, and a validated json-render interface served at `/apps/<id>`. Use an app when people need to view and change live records; use `create_page` for a static snapshot.
**When to use a sheet or board instead:** a tracker or grid people keep editing, with no queries or actions, is a sheet. A plan, diagram or map to think through is a board. Both are editable agent-fs files; see the `boards-and-sheets` skill. To show one inside an app, use the `ObjectEmbed` component (section "Embed a sheet or board").
> **Capability gate**: app tools are available when the server's `CAPABILITIES` includes `pages` (for example `CAPABILITIES=core,task-pool,pages`). There is no separate `apps` capability. If these tools are absent from your MCP list, this is why.
| Tool | Use it for | |---|---| | `app-list` | Discover apps by id, name, description, and timestamps. Definitions are omitted. | | `app-get` | Read one complete stored definition before changing it. | | `app-upsert` | Create an app, or replace an existing app's entire definition when you intentionally have the full desired state. | | `app-patch` | Make a focused change while preserving everything not mentioned in the patch. Prefer this for iteration. | | `app-query` | Run one declared named query and return its rows. Use this when an agent or saved script needs to consume app data rather than render the app UI. | | `app-rows-list` | List rows with typed equality filters, sorting, and a limit. Returns `{ rows, total }`. | | `app-row-get` | Read a row by `rowId`. Returns `{ row }`. | | `app-row-create` | Create a row from `values`. Returns `{ row }`. | | `app-rows-create` | Create 1 to 500 rows from a `rows: values[]` array, within 10 MiB. Returns `{ rows }`. | | `app-row-patch` | Patch a row by `rowId` with `values`. Returns `{ row }`. | | `app-row-delete` | Delete a row by `rowId`. Returns `{ ok: true }`. | | `app-rows-delete` | Delete matching rows with a non-empty `equals` filter. Returns `{ deleted }`. | | `app-action-run` | Run a declared script, task, or sync action with `{ appId, action, input? }`. Agents can invoke it through MCP only. | | `app-history` | List definition snapshots and their compact model/column digests before choosing a restore point. | | `app-diff` | Show a unified definition diff; defaults to newest snapshot → CURRENT. | | `app-rollback` | Restore a snapshot through the normal schema-migration engine. |
For every edit: `app-get` -> modify the smallest coherent subtree -> `app-patch` -> if rejected, fix every returned `issues[]` entry (`path` + `message`) and retry. Validation happens before storage, so a rejected update leaves the saved app unchanged. Do not guess at the current definition or use `app-upsert` with a partial definition.
When refreshing row data, write only the diff: read the current rows with `app-rows-list`, then `app-row-patch` the changed rows, `app-rows-create` the new ones, and `app-row-delete` the removed ones. Do not delete every row and recreate it, or recreate the model: a large rewrite can be interrupted partway and leave the app half-populated.
`app-patch` can also change `name`; omit `description` to preserve it or pass `description: null` to clear it.
One `app-get` returns everything needed to drive an app you did not write: `definition.queries` are runnable with `app-query` (supply every `$param` the query references), and `definition.actions` are invocable with `app-action-run` or `POST /api/apps/<id>/actions/<name>` (a `script` action runs its script, a `task` action spawns a task, a `sync` action refreshes sources). Read the query parameters and action arguments from the definition before invocation. Do not guess parameter names.
Script actions receive `caller` as a reserved, server-stamped argument. The server overwrites `caller` from definition defaults and request input.
type AppActionCaller = {
kind: "user" | "agent" | "operator" | "guest";
id: string | null;
name?: string;
pageId?: string;
};The caller identifies the authenticated user or agent. Operator and guest callers have `id: null`. A signed page session adds `pageId`. With the swarm key, a registered `X-Agent-ID` produces an agent caller and `agent:<id>` row provenance. Missing or unknown agent IDs remain operator callers. Task actions include the same caller as server-verified JSON in the task prompt. Script execution still uses the saved script owner's bindings.
Script actions receive `caller` as a reserved, server-stamped argument. The server overwrites `caller` from definition defaults and request input.
type AppActionCaller = {
kind: "user" | "agent" | "operator" | "guest";
id: string | null;
name?: string;
pageId?: string;
};The caller identifies the authenticated user or agent. Operator and guest callers have `id: null`. A signed page session adds `pageId`. With the swarm key, a registered `X-Agent-ID` produces an agent caller and `agent:<id>` row provenance. Missing or unknown agent IDs remain operator callers. Task actions include the same caller as server-verified JSON in the task prompt. Script execution still uses the saved script owner's bindings.
Prefer **hiding** a column over deleting it. A hidden column's values stay on every existing row, so an unhide or rollback can make it visible again. Hiding is metadata-only: hidden columns cannot be used in queries, page bindings, `app.mutate` values, or new row writes, and `required` is ign
Install, self-host, deploy, operate, or use agent-swarm. Covers Docker Compose, Kubernetes, configuration, coding agents, the…
Rebuild the feel of a reference motion-design clip (camera, depth of field, easing, captions, outro) as an on-brand agent-swarm…
Reverse-engineer a short motion-design / product-update video (animation technique, timing and easing, composition, transitions,…
Make a design-led motion-graphics video (showreel, eval comparison, feature or bug-hunt story) from one open prompt. Claude Opus…
How to generate repo-committed video content (README hero videos, case-study clips, landing demos) with Remotion. Covers project…
Read the task-digest extension's output. Use when someone asks how many tasks completed or failed recently, or which agents did…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration