b8f5b779312b954798e14e9815cc259cb1746812
Fly Sprites Workers
A Paseo plugin (@getpaseo/plugin >= 0.16.2) for spawning remote workers and isolated coding agent sessions on Fly.io Sprites microVMs via @fly/sprites.
Features
-
Native Paseo Provider (
fly-sprites)shellmode: Executes each prompt inside the Sprite viabash -lcand streams stdout/stderr live into Paseo shell tool calls.acpmode: Spawns an ACP-compatible agent binary (defaultclaude-code-acp) inside the Sprite over WebSocket stdio using@agentclientprotocol/sdk, forwarding messages, tool calls, plans, usage, and permission requests.- Optional automatic workspace sync into
/workspaceon session open and copy-on-write checkpointing after each turn.
-
Injected Agent Tools (
sprite_*)- Automatically injected into Paseo agent sessions via
agent.open.before(configurable in settings):sprite_list— list remote Fly Sprites and tracked workerssprite_create— create or reuse a Sprite and optionally sync the agent's local workspacesprite_spawn_worker— spawn an asynchronous background worker command on a Spritesprite_exec— run a synchronous command on a Sprite and returnstdout,stderr, andexitCodesprite_worker_status— inspect status and buffered output of tracked workerssprite_worker_stop— stop a running workersprite_checkpoint— create, list, or restore Sprite checkpointssprite_destroy— delete a Sprite and stop its active tracked workers
- Automatically injected into Paseo agent sessions via
-
Paseo UI & Settings
- Workers Screen & Workspace Panel (
Fly Sprites): Create Sprites, sync the active workspace directory, spawn workers, stream live worker logs, and manage checkpoints. - Command Center & Sidebar: Quick entry (
Open Fly Sprites Workers). - Settings Screen (
Fly Sprites Workers): Host-scoped configuration and connection test.
- Workers Screen & Workspace Panel (
Installation (Local Directory Plugin)
- Install dependencies and verify types:
npm install npm run typecheck - Add the plugin directory to
~/.paseo/config.jsonunderplugins:{ "plugins": { "fly-sprites-workers": { "source": "directory", "path": "/path/to/fly-sprites-workers", "enabled": true } } } - Restart or reload the Paseo daemon.
Configuration
Configure settings under Settings → Fly Sprites Workers (stored in Paseo host scope) or via environment variables:
| Setting | Default | Description |
|---|---|---|
token |
"" |
Fly Sprites API token (falls back to SPRITES_TOKEN in daemon env) |
baseUrl |
https://api.sprites.dev |
Sprites API base URL |
spritePrefix |
paseo-worker- |
Prefix for auto-generated worker Sprites |
defaultRegion |
"" |
Optional Fly region slug |
defaultRamMB |
0 |
Optional RAM in MB (0 uses API default) |
defaultCpus |
0 |
Optional vCPU count (0 uses API default) |
defaultRemoteCwd |
/workspace |
Default working directory inside Sprites |
defaultProviderMode |
shell |
Default provider mode (shell or acp) |
acpCommand |
claude-code-acp |
Command run inside the Sprite in acp mode |
syncWorkspaceOnCreate |
true |
Sync local workspace files on provider session open |
injectAgentTools |
true |
Inject sprite_* tools into Paseo agent sessions |
autoCleanupOnArchive |
false |
Delete Sprites created by fly-sprites sessions on archive |
Project Layout
index.server.ts— Plugin server entrypoint (settings, provider, hooks, RPCs,sprites.watchsubscription)index.client.tsx— Plugin client entrypoint (screen, workspace panel, sidebar item, command center, settings)server/sprites-manager.ts—@fly/spritesclient wrapper, tar/git workspace sync, worker log streaming, checkpointsserver/provider.ts— Nativefly-spritesProviderRegistration(shellandacpmodes)server/agent-tools.ts—defineAgentTooldefinitions forsprite_*toolsshared/contracts.ts— Zod RPC and subscription contractsshared/settings.ts— Host-scoped settings schemaclient/workers-screen.tsx— Workers & Sprites management UIclient/settings-screen.tsx— Settings UI
Description
Paseo plugin to spawn workers and remote agents on Fly.io Sprites
454 KiB
0 Stars
1 Watchers
0 Forks
Languages
TypeScript
99.7%
Just
0.3%