Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
177 changes: 177 additions & 0 deletions specs/factory-help-links-and-standalone-triggers.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/content/docs/factories/api-and-sdk/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ You created a cloud agent run over HTTP and tracked it from `QUEUED` to `SUCCEED
* **Read the endpoint guide** - [Agent & run endpoints](/factories/api-and-sdk/) documents the configuration and run lifecycle, while the [{VARS.WARP_PLATFORM_API} reference](/api/) lists all parameters, query filters, and response schemas.
* **Explore the SDKs** - [`warp-platform-sdk` for Python](https://pypi.org/project/warp-platform-sdk/) and [`@warp-dot-dev/warp-platform-sdk` for TypeScript](https://www.npmjs.com/package/@warp-dot-dev/warp-platform-sdk) include typed request/response models, retries, and error handling.
* **See a real-world example** - [Demo: Sentry monitoring with SDK](/factories/api-and-sdk/demo-sentry-monitoring-with-sdk/) shows how to build a webhook handler that triggers agents from production errors.
* **Schedule and automate** - See the [Scheduled Agents quickstart](/platform/triggers/scheduled-agents-quickstart/) to run agents on a cron, or the [Integrations quickstart](/platform/integrations/quickstart/) to trigger agents from Slack or Linear.
* **Schedule and automate standalone runs** - See the [Scheduled Agents quickstart](https://docs.warp.dev/platform/triggers/scheduled-agents-quickstart/) to run agents on a cron, or the [Integrations quickstart](https://docs.warp.dev/platform/integrations/quickstart/) to trigger agents from Slack or Linear without a factory.
20 changes: 20 additions & 0 deletions src/content/docs/factories/automations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description: >-
sidebar:
label: Factory automations
---
import { VARS } from '@data/vars';

An **automation** starts factory work from a trigger. Filters narrow which events start work, and the target selects a worker or a [Factory Blueprints stage](/factories/blueprints/stages/). For example, send newly opened pull requests to review, but only for one repository's `main` branch.

Expand Down Expand Up @@ -59,6 +60,25 @@ To edit an existing automation's filters:
{/* VISUAL: An automation's trigger editor with More filters expanded. */}


## Schedule a factory automation

Use a scheduled automation for recurring factory work, such as a weekly repository report. You need permission to edit automations and an existing [factory worker](/factories/factory-agents/) with the repositories, tools, and credentials the task needs.

If your factory definition is repository-managed, edit or add an `automations/NAME/automation.md` file using the [schedule schema](/factories/factory-as-code/#triggersschedule), then commit and push it. The Automations page is read-only for those definitions.

For automations managed in the web app:

1. In the <a href={VARS.FACTORY_WEB_APP_URL}>{VARS.FACTORY_WEB_APP}</a>, expand your factory and click **Automations**. Open an existing automation to reuse it, or click **New** and give it a name.
2. Under "Workers", select the existing worker that will handle the task (or select a stage under "Stages" if your factory uses a blueprint). In "Worker prompt", enter instructions for each run. For a controlled first test, use: "List the repository's top-level files and report the current branch. Do not modify files, create issues, or open pull requests."
3. In "Triggers", click **Add trigger** > **Scheduled** and select **Hourly**, **Daily**, **Weekly**, or **Custom (cron)**. Set the time or cron expression. For preset frequencies, check "Next run"; new custom cron expressions have no next-run preview.
4. Click **Save**, then reopen the automation. Confirm the schedule is present before clicking **Run now**. This tests the worker's instructions, not the scheduled firing time.
5. In the automation's **Runs** tab, open the test run. Confirm its output lists the repository files and branch, rather than only repeating the prompt. Once that works, replace the test instructions with your recurring task and save.
6. To stop future scheduled runs, click **Pause** on the automation and confirm its status is "Inactive" and the action changes to **Resume**. Pausing doesn't cancel runs already started. Click **Resume** to enable it again.

Daily and weekly controls show your browser's local timezone. Warp saves schedules as UTC cron expressions, so the local firing time can shift when daylight saving time changes. Custom cron expressions use UTC; for example, `0 9 * * 1` runs every Monday at 09:00 UTC. Recheck the preset next-run preview after changing the time or timezone.

If you reuse an automation, review its other triggers and instructions before saving: those triggers also use the updated instructions.

## Filters in definitions as code

In a factory definition, an automation's `triggers` entries declare the provider, event, and filters. Start with the [labeled-issue example](/factories/factory-as-code/#automationsnameautomationmd), then look up supported keys in [Events and filters for factory automations](/factories/automation-triggers/).
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/factories/connect-your-factory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The [Factory MCP](/factories/factory-mcp/) connects local coding agents and othe
Not every task starts in an external tool:

* Start a direct run for one-off work. Click **New** on the factory's Runs page and describe the task to the foreman, the same way you would from Slack or an issue tracker.
* Create a scheduled automation for recurring work, such as maintenance or reports. See the [Triggers overview](/platform/triggers/) for how schedules and other triggers work across the platform.
* [Schedule a factory automation](/factories/automations/#schedule-a-factory-automation) for recurring work, such as maintenance or reports. For repository-managed definitions, use the [schedule schema](/factories/factory-as-code/#triggersschedule).

This automation from [`common-automations`](https://github.com/warpdotdev/warp-factory-examples/tree/484a8b431d79407a4623b57503be1dd983080cf5/examples/common-automations) runs a dependency audit every Monday:

Expand Down
3 changes: 2 additions & 1 deletion src/content/docs/factories/environments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ Linux container runs use a non-root user by default. See [configuring container
* [Configuring cloud agent environments](/factories/environments/configuring-environments/) - Create, configure, and manage environments
* [Troubleshooting cloud agent environments](/factories/environments/troubleshooting-environments/) - Fix setup, authorization, permissions, and image failures
* [Runners](/factories/runners/) - Configure the compute that hosts environments
* [Scheduled agents](/platform/triggers/scheduled-agents/) - Run cloud agents on a recurring cadence in a shared environment
* [Schedule a factory automation](/factories/automations/#schedule-a-factory-automation) - Configure recurring work for a factory
* [Standalone scheduled agents](https://docs.warp.dev/platform/triggers/scheduled-agents/) - Run recurring cloud agents without a factory
* [Deployment patterns](/factories/deployment-patterns/) - Choose between Warp-hosted and self-hosted execution
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ The setup example uses `backend` and `frontend` profiles with the same implement
esac
```

2. If the environment does setup for each run, add `bash /opt/setup/select-profile.sh` to its [setup commands](https://docs.warp.dev/platform/environments/configuring-environments/). Warp sets `WARP_METADATA_SETUP_PROFILE` for the `setup_profile` key before per-run setup and the worker start.
2. If the environment does setup for each run, add `bash /opt/setup/select-profile.sh` to its [setup commands](/factories/environments/configuring-environments/). Warp sets `WARP_METADATA_SETUP_PROFILE` for the `setup_profile` key before per-run setup and the worker start.

Pre-warmed sandboxes do their initial setup before Warp selects them for a run. This setup does not receive the metadata for that run. Warp does not do this setup again when it selects the sandbox for a run.

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/factories/guides/jira-to-pull-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This guide applies to Jira Cloud. Jira Server and Data Center are not supported.
* A [factory](/factories/quickstart/) with access to the target repository and permission to push branches and open pull requests.
* Warp for Jira installed on your Jira Cloud site and connected to your Warp workspace by a Jira site admin.
* Jira [connected to the factory](/factories/integrations/jira/#connect-jira-and-add-an-automation). A factory connects to Jira or Linear, not both.
* An [Atlassian account linked to Warp](/platform/integrations/jira/#connecting-your-jira-account-to-warp) for each requester.
* An [Atlassian account linked to Warp](/factories/integrations/jira/#connecting-your-jira-account-to-warp) for each requester.
* Available shared team usage for factory runs. Add usage if needed. See [funding factory runs](/support-and-community/plans-and-billing/plans-pricing-refunds/#funding-factory-runs).
* Permission to edit the [factory definition](/factories/factory-as-code/#where-the-definition-lives).

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/factories/harnesses/claude-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Claude Code also runs as a standalone cloud agent without a factory. To run the

## Key features

* **Cloud orchestration** - Launch Claude Code from any {VARS.WARP_AUTOMATION_PLATFORM} trigger: the Warp app, the {VARS.WEB_APP}, the {VARS.WARP_AGENT_CLI}, the REST API, [schedules](/platform/triggers/scheduled-agents/), [Slack](/platform/integrations/slack/) mentions, [Linear](/platform/integrations/linear/) issues, or [GitHub Actions](/platform/integrations/github-actions/).
* **Cloud orchestration** - Launch Claude Code from [factory automations](/factories/automations/) or standalone workflows: the Warp app, the {VARS.WEB_APP}, the {VARS.WARP_AGENT_CLI}, the REST API, [schedules](https://docs.warp.dev/platform/triggers/scheduled-agents/), [Slack](https://docs.warp.dev/platform/integrations/slack/) mentions, [Linear](https://docs.warp.dev/platform/integrations/linear/) issues, or [GitHub Actions](https://docs.warp.dev/platform/integrations/github-actions/).
* **Claude model picker** - Choose from the Claude Code models available in the model picker.
* **Parent and child roles** - A Warp Agent parent can dispatch Claude Code children in [ad hoc orchestration](/platform/orchestration/). A factory foreman using Claude Code can dispatch named factory agents; those agents keep their configured harnesses and resources.

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/factories/harnesses/codex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Codex also runs as a standalone cloud agent without a factory. To run the CLI lo

## Key features

* **Cloud orchestration** - Launch Codex from any {VARS.WARP_AUTOMATION_PLATFORM} trigger: the Warp app, the {VARS.WEB_APP}, the {VARS.WARP_AGENT_CLI}, the REST API, [schedules](/platform/triggers/scheduled-agents/), [Slack](/platform/integrations/slack/) mentions, [Linear](/platform/integrations/linear/) issues, or [GitHub Actions](/platform/integrations/github-actions/).
* **Cloud orchestration** - Launch Codex from [factory automations](/factories/automations/) or standalone workflows: the Warp app, the {VARS.WEB_APP}, the {VARS.WARP_AGENT_CLI}, the REST API, [schedules](https://docs.warp.dev/platform/triggers/scheduled-agents/), [Slack](https://docs.warp.dev/platform/integrations/slack/) mentions, [Linear](https://docs.warp.dev/platform/integrations/linear/) issues, or [GitHub Actions](https://docs.warp.dev/platform/integrations/github-actions/).
* **Codex model picker** - Choose an available model and reasoning level for the task.
* **Parent and child roles** - A Warp Agent parent can dispatch Codex children in [ad hoc orchestration](/platform/orchestration/). A factory foreman using Codex can dispatch named factory agents; those agents keep their configured harnesses and resources.

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/factories/harnesses/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You can also select a harness for a standalone cloud run without creating a fact

## Shared cloud-run capabilities

* **Triggers** - Select a harness for agents launched by [factory automations](/factories/automations/) or standalone [triggers](/platform/triggers/).
* **Triggers** - Select a harness for agents launched by [factory automations](/factories/automations/) or [standalone triggers](https://docs.warp.dev/platform/triggers/).
* **Environments and secrets** - Configure the run's [environment](/factories/environments/) and credentials. Factory agents use [factory secrets](/factories/secrets/); standalone runs have their own [secret configuration](/platform/secrets/).
* **Instructions** - Use [skills](/agents/capabilities/skills/) for reusable work and [Rules](/agents/capabilities/rules/) for project guidance. Harnesses have their own tool and context behavior; selecting a harness does not make every local feature available in a cloud run.
* **Observability** - Inspect factory runs in the factory dashboard, or standalone runs in the [{VARS.DASHBOARD}](/platform/managing-cloud-agents/).
Expand Down
Loading
Loading