Skip to Content
loop.fun
Software factories

What starts a factory

Factories run on events, not prompts. The triggers in use today, and the intake filter that decides which events deserve an agent run.

A coding agent waits for a person to type. A factory waits for something to happen. That shift is most of what makes it a factory: the person who would have noticed the bug, opened the editor and prompted the agent has been replaced by a webhook.

The triggers in use

TriggerExampleWho uses it
New issue or webhookGitHub webhooks feed an issue queue; workers pick items up and start agent runs in sandboxesVercel's AI SDK factory (Vercel)
A label on an issueA triage needed label starts reproduction; later labels move the issue through the pipelineCloudflare's Astro triage (InfoQ)
An issue tracker stateEvery open Linear issue gets its own agent workspace; the orchestrator watches the boardOpenAI Symphony (InfoWorld)
A chat messageAn engineer tags the bot in a Slack thread, and the thread becomes the taskStripe Minions (ByteByteGo), Ramp Inspect
A production alertA Sentry webhook starts a worker that checks out the repo and runs an agent grounded in the stack traceSentry, Warp demo
A CI failureA failing workflow on the main branch starts a diagnosis runGitHub Agentic Workflows
A pull requestOpening a PR starts automated review or CVE remediationOna automations, Cloudflare's AI code reviewer (Port)
A scheduleNightly dependency bumps, weekly docs sync, fleet-wide migrationsSpotify's Fleet Management and Honk (InfoQ)
A spec or PRDA requirements document is distilled into plans, then tasks for agents8090's Software Factory (Ry Walker)

Platforms now sell the trigger layer itself. Warp's Automation Platform lists schedules, CLI, API and SDK calls, Slack, Linear and Jira integrations, GitHub mentions, GitHub Actions and custom webhooks as trigger types, and can launch either its own agent or Claude Code from any of them (Warp docs). primary source

Three families

The triggers fall into three groups, and each needs a different kind of goal:

  1. Work requests (issues, labels, Slack mentions, specs). A person asked for something. Each one is a bounded goal with a clear "done".
  2. Signals (alerts, CI failures, PRs). Nobody asked; the world changed. These are a standing goal firing: "keep main green", "keep error rates down".
  3. Schedules (nightly, weekly, fleet-wide). Maintenance that nobody would ever file a ticket for: migrations, dependency upgrades, docs drift.

The third family is where factories quietly do the most volume. Spotify's Fleet Management system has been opening automated PRs since 2022 (reportedly 652,000 of them in 2024), well before agents arrived; the agent made the changes smarter, not the fleet possible (Tech Trenches). secondary reporting

The intake filter matters more than the trigger

Wiring a webhook to an agent is easy. Deciding which events deserve a run is not, and it's where several teams put their first effort:

  • Classify first. Vercel's first step was issue classification, before any agent tried to write code. A separate analysis step writes a probe to confirm a requested feature really is missing (Vercel). primary source
  • Filter noisy signals. One public factory spec only acts on Sentry alerts for server errors and unhandled exceptions with at least 3 events or 2 affected users within an hour, and only on CI failures on the main branch (MYOS spec). anecdotal
  • Don't double-fire. Webhook providers retry. Sentry gives a webhook about one second to respond, so handlers acknowledge immediately and schedule the work in the background; one open-source stack found its assumptions about retries were wrong (background-agents PR). Queue events and deduplicate them, or one alert starts two agents. anecdotal
  • Route judgment calls away. OpenAI says ambiguous problems and work that needs strong judgment still belong in interactive sessions, not on the Symphony board (InfoWorld).

Every trigger is an input from the outside world

An issue body, a PR comment and a Slack thread are all text someone else wrote, and the factory feeds them to an agent with repository access. Vercel's rule is blunt: "every issue, pull request, comment, and the links inside them are untrusted" (Vercel). See Pitfalls.

loop.fun

Patterns, hints and tools for designing the loops that keep agents working, and for widening the set of loops you can think of.

© 2026 loop.fun · CC BY 4.0

On this page