/automations
Schedule or manage recurring and one-shot BB agent or script automations.
Claude Code
$ npx -y skills add get-bb/bb --skill automations --agent claude-code
Codex
$ npx skills add get-bb/bb --skill automations -a codex -y
Cursor
$ npx skills add get-bb/bb --skill automations -a cursor -y
Gemini CLI
$ npx skills add get-bb/bb --skill automations -a gemini-cli -y
GitHub Copilot
$ npx skills add get-bb/bb --skill automations -a github-copilot -y
OpenCode
$ npx skills add get-bb/bb --skill automations -a opencode -y
Windsurf
$ npx skills add get-bb/bb --skill automations -a windsurf -y
SKILL.md
automations.SKILL.mdname: automations
description: "Schedule or manage recurring and one-shot BB agent or script automations."
Automations
An automation is a scheduled task. When due it runs in one of two modes:
agent Spawn a thread or re-prompt a target thread with a configured prompt. script Run a stored server-side script and capture stdout/stderr/exit.
Use the top-level `bb automation` command. The CLI routes it to this plugin.
Pass `--project` explicitly for every automation command. Inside a thread, automations are stamped origin `agent` and record the creating thread automatically. Threads created by automations cannot create automations, and neither can a thread while an automation run is executing in it; once that run finishes, the thread can create automations again.
Personal supports automations with `--project proj_personal`. Use `bb project list --include-personal --json` to include it in discovery; an empty default project list does not mean Personal is unavailable.
Choosing a mode:
Use `script` when the output is fully determined by code: watchdogs, threshold alerts, health checks, heartbeats, and API pollers with a fixed output shape. Scripts run on the bb server. New standard-project scripts use the server-host project source when one exists; Personal and projects without one run in the plugin's shared script storage directory. Existing scripts without a saved policy also run there. Use `--working-directory automation-storage|project|<absolute-server-path>` to select the policy. Script automations do not have an environment field and do not accept environment flags.
Design the script to print nothing when there is nothing to report: an exit-0 run with empty stdout/stderr, or a last non-empty line of `{"wakeAgent": false}`, is recorded as a skipped silent tick. Any other output is captured; non-zero exit or timeout is recorded as a failed run.
Use `agent` when the run needs reasoning: summarize a feed, pick interesting items, draft a human-friendly message, or branch on content.
Creating:
bb automation create --project <id> --name "..." [schedule flags] [mode flags]
For creation flags and mode-specific defaults, read [references/creation.md](references/creation.md).
Read `references/script-runtime.md` before you use a script file, depend on injected variables, or diagnose retries, timeouts, restarts, and silent runs.
Managing:
bb automation list --project <id>
bb automation list --target-thread <threadId>
bb automation show <automationId> --project <id>
bb automation update <automationId> --project <id> [--name <name>] [schedule flags] [partial agent or script flags | complete execution flags]
bb automation pause <automationId> --project <id>
bb automation resume <automationId> --project <id>
bb automation run <automationId> --project <id> [--idempotency-key <key>]
bb automation runs <automationId> --project <id> [--limit <count>] [--output <runId>]
bb automation delete <automationId> --project <id> --yes
`list --target-thread` returns automations in any project that re-prompt that thread; the thread's Info tab shows the same list. It does not include automations the thread merely created.
For partial updates, mode replacement, execution targets, or damaged records, read [references/updates.md](references/updates.md). Every command supports `--json`.
`bb automation <command> --help` prints that command's exact arguments, options, accepted values, and rules. Unknown commands, unknown options, and stray arguments are rejected rather than ignored, and a failure under `--json` also prints a `{"ok":false,"error":{"code","message","hint"}}` envelope on stdout.
Read more
name: automations description: "Schedule or manage recurring and one-shot BB agent or script automations."
Automations
An automation is a scheduled task. When due it runs in one of two modes:
agent Spawn a thread or re-prompt a target thread with a configured prompt. script Run a stored server-side script and capture stdout/stderr/exit.
Use the top-level `bb automation` command. The CLI routes it to this plugin.
Pass `--project` explicitly for every automation command. Inside a thread, automations are stamped origin `agent` and record the creating thread automatically. Threads created by automations cannot create automations, and neither can a thread while an automation run is executing in it; once that run finishes, the thread can create automations again.
Personal supports automations with `--project proj_personal`. Use `bb project list --include-personal --json` to include it in discovery; an empty default project list does not mean Personal is unavailable.
Choosing a mode:
Use `script` when the output is fully determined by code: watchdogs, threshold alerts, health checks, heartbeats, and API pollers with a fixed output shape. Scripts run on the bb server. New standard-project scripts use the server-host project source when one exists; Personal and projects without one run in the plugin's shared script storage directory. Existing scripts without a saved policy also run there. Use `--working-directory automation-storage|project|<absolute-server-path>` to select the policy. Script automations do not have an environment field and do not accept environment flags.
Design the script to print nothing when there is nothing to report: an exit-0 run with empty stdout/stderr, or a last non-empty line of `{"wakeAgent": false}`, is recorded as a skipped silent tick. Any other output is captured; non-zero exit or timeout is recorded as a failed run.
Use `agent` when the run needs reasoning: summarize a feed, pick interesting items, draft a human-friendly message, or branch on content.
Creating:
bb automation create --project <id> --name "..." [schedule flags] [mode flags]
For creation flags and mode-specific defaults, read [references/creation.md](references/creation.md).
Read `references/script-runtime.md` before you use a script file, depend on injected variables, or diagnose retries, timeouts, restarts, and silent runs.
Managing:
bb automation list --project <id> bb automation list --target-thread <threadId> bb automation show <automationId> --project <id> bb automation update <automationId> --project <id> [--name <name>] [schedule flags] [partial agent or script flags | complete execution flags] bb automation pause <automationId> --project <id> bb automation resume <automationId> --project <id> bb automation run <automationId> --project <id> [--idempotency-key <key>] bb automation runs <automationId> --project <id> [--limit <count>] [--output <runId>] bb automation delete <automationId> --project <id> --yes
`list --target-thread` returns automations in any project that re-prompt that thread; the thread's Info tab shows the same list. It does not include automations the thread merely created.
For partial updates, mode replacement, execution targets, or damaged records, read [references/updates.md](references/updates.md). Every command supports `--json`.
`bb automation <command> --help` prints that command's exact arguments, options, accepted values, and rules. Unknown commands, unknown options, and stray arguments are rejected rather than ignored, and a failure under `--json` also prints a `{"ok":false,"error":{"code","message","hint"}}` envelope on stdout.
bb is an agentic IDE that builds itself. It can control, customize, and automate itself, laying the groundwork for your own software factory. Every surface — the desktop app, web app, CLI, and HTTP API — is a first-class way to drive bb.
Other skills on bb.
More skills from other plugins.
agentmail
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
adr-create
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Questions about automations.
- Which coding agents can use automations?
- automations installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

