Lobster
Lobster is a workflow shell that lets Clawdbot run multi-step tool sequences as a single, deterministic operation with explicit approval checkpoints.Hook
Your assistant can build the tools that manage itself. Ask for a workflow, and 30 minutes later you have a CLI plus pipelines that run as one call. Lobster is the missing piece: deterministic pipelines, explicit approvals, and resumable state.Why
Today, complex workflows require many back-and-forth tool calls. Each call costs tokens, and the LLM has to orchestrate every step. Lobster moves that orchestration into a typed runtime:- One call instead of many: Clawdbot runs one Lobster tool call and gets a structured result.
- Approvals built in: Side effects (send email, post comment) halt the workflow until explicitly approved.
- Resumable: Halted workflows return a token; approve and resume without re-running everything.
How it works
Clawdbot launches the locallobster CLI in tool mode and parses a JSON envelope from stdout.
If the pipeline pauses for approval, the tool returns a resumeToken so you can continue later.
Pattern: small CLI + JSON pipes + approvals
Build tiny commands that speak JSON, then chain them into a single Lobster call. (Example command names below — swap in your own.)JSON-only LLM steps (llm-task)
For workflows that need a structured LLM step, enable the optionalllm-task plugin tool and call it from Lobster. This keeps the workflow
deterministic while still letting you classify/summarize/draft with a model.
Enable the tool:
Workflow files (.lobster)
Lobster can run YAML/JSON workflow files withname, args, steps, env, condition, and approval fields. In Clawdbot tool calls, set pipeline to the file path.
stdin: $step.stdoutandstdin: $step.jsonpass a prior step’s output.condition(orwhen) can gate steps on$step.approved.
Install Lobster
Install the Lobster CLI on the same host that runs the Clawdbot Gateway (see the Lobster repo), and ensurelobster is on PATH.
If you want to use a custom binary location, pass an absolute lobsterPath in the tool call.
Enable the tool
Lobster is an optional plugin tool (not enabled by default). Allow it per agent:tools.allow if every agent should see it.
Note: allowlists are opt-in for optional plugins. If your allowlist only names
plugin tools (like lobster), Clawdbot keeps core tools enabled. To restrict core
tools, include the core tools or groups you want in the allowlist too.
Example: Email triage
Without Lobster:Tool parameters
run
Run a pipeline in tool mode.
resume
Continue a halted workflow after approval.
Optional inputs
lobsterPath: Absolute path to the Lobster binary (omit to usePATH).cwd: Working directory for the pipeline (defaults to the current process working directory).timeoutMs: Kill the subprocess if it exceeds this duration (default: 20000).maxStdoutBytes: Kill the subprocess if stdout exceeds this size (default: 512000).argsJson: JSON string passed tolobster run --args-json(workflow files only).
Output envelope
Lobster returns a JSON envelope with one of three statuses:ok→ finished successfullyneeds_approval→ paused;requiresApproval.resumeTokenis required to resumecancelled→ explicitly denied or cancelled
content (pretty JSON) and details (raw object).
Approvals
IfrequiresApproval is present, inspect the prompt and decide:
approve: true→ resume and continue side effectsapprove: false→ cancel and finalize the workflow
approve --preview-from-stdin --limit N to attach a JSON preview to approval requests without custom jq/heredoc glue. Resume tokens are now compact: Lobster stores workflow resume state under its state dir and hands back a small token key.
OpenProse
OpenProse pairs well with Lobster: use/prose to orchestrate multi-agent prep, then run a Lobster pipeline for deterministic approvals. If a Prose program needs Lobster, allow the lobster tool for sub-agents via tools.subagents.tools. See OpenProse.
Safety
- Local subprocess only — no network calls from the plugin itself.
- No secrets — Lobster doesn’t manage OAuth; it calls clawd tools that do.
- Sandbox-aware — disabled when the tool context is sandboxed.
- Hardened —
lobsterPathmust be absolute if specified; timeouts and output caps enforced.
Troubleshooting
lobster subprocess timed out→ increasetimeoutMs, or split a long pipeline.lobster output exceeded maxStdoutBytes→ raisemaxStdoutBytesor reduce output size.lobster returned invalid JSON→ ensure the pipeline runs in tool mode and prints only JSON.lobster failed (code …)→ run the same pipeline in a terminal to inspect stderr.
Learn more
Case study: community workflows
One public example: a “second brain” CLI + Lobster pipelines that manage three Markdown vaults (personal, partner, shared). The CLI emits JSON for stats, inbox listings, and stale scans; Lobster chains those commands into workflows likeweekly-review, inbox-triage, memory-consolidation, and shared-task-sync, each with approval gates. AI handles judgment (categorization) when available and falls back to deterministic rules when not.