feat(agents): gate agent task creation behind the billing paywall

EV
5d ago
+469-64

Summary

Issue: none (pricing decision of 27 Nov 2026: agent tasks need Growth, or a $100/month add-on on Starter)

Agent tasks now have their own feature in pricing-api: the SKU agents, included in Growth, Scale and Enterprise, off on Free and Starter, with a self-serve "Agent tasks" add-on on Starter. This PR gates agent task creation in the console the same way blueprints are gated. Nothing changes for customers yet: gates only show when the billing-paywall PostHog flag is on (Qovery staff only today).

  • Agents tab (Agents → Automations): "Create agent task" goes through usePaywall().proceed('agent_task.create', ...). Locked: the full-page paywall (variant: 'page'). Included: the intro first when staff turned it on, then Continue opens the environment picker as before.
  • Creation flow (service/create/agentic-workflow): wrapped in a new AgenticWorkflowPaywall on agentic_workflow.create, modelled on BlueprintPaywall. This covers templates, "Create from scratch" and deep links. "Not now" goes back to the environment's Automations tab.
  • Billing kit: a GATED_FEATURES entry for agents (icon, description, six capabilities, docs link to the Agent Tasks page). It uses the drawn generic preview: there is no rendered console or Claude Code media for agent tasks yet.

Reviewers: with the flag on and an organization on Starter, the paywall's main button reads "Add agent tasks for $100/month", with "Upgrade to Growth" as the other way. Free only gets Growth.

Screenshots / Recordings

No screenshots: the page is the existing GatedPage with the generic preview. To see it, turn on billing-paywall for your user and open Agents → Automations → Create agent task on an organization whose plan does not include agent tasks.

Testing

  • Changes tested locally in the relevant Console's pages and Storybooks
  • yarn test on the touched libraries: skill-presets feature (239 tests), shared billing feature (114), services feature agentic workflow, blueprint and service-new specs (510), all passing. New tests: locked, intro, Continue, Not now and flag-off cases for both entry points, and the agents page content.
  • yarn format (prettier on the changed files)
  • yarn lint (eslint on the changed files, no errors)

PR Checklist

  • I followed naming, styling, and TypeScript rules (see .cursor/rules)
  • I performed a self-review (diff inspected, dead code removed)
  • I titled the PR using Conventional Commits with a scope when possible (e.g. feat(service): add new Terraform service) - required for semantic-release
  • I only kept necessary comments, written in English (watch for useless AI comments)
  • I involved a designer to validate UI changes if I am not a designer
  • I covered new business logic with tests (unit)
  • I confirmed CI is green (Codecov red can be accepted)
  • I reviewed and executed locally any AI-assisted code

Summary by cubic

Gates agent task creation behind the billing paywall. Agent tasks are now their own pricing-api feature (SKU agents): included in Growth, Scale and Enterprise, off on Free and Starter, with a $100/month add-on on Starter. Nothing changes for customers yet since gates only apply when the billing-paywall PostHog flag is on.

  • "Create agent task" on the Agents tab opens the full-page paywall when locked, the intro first when included, then the environment picker as before.
  • The agent task creation flow wraps its route in a new AgenticWorkflowPaywall, covering templates, "Create from scratch" and deep links; "Not now" goes back to Automations.
  • Blueprints and agent tasks now share a CreationFlowPaywall, keyed by organization so switching organizations restarts from that organization's own gate.
  • Adds the billing-kit entry for agents with its capabilities, docs link and the drawn generic preview (no rendered media for agent tasks yet).