Skip to content

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

Open
evoxmusic wants to merge 2 commits into
stagingfrom
feat/agents-paywall
Open

evoxmusic wants to merge 2 commits into
stagingfrom
feat/agents-paywall

Conversation

@evoxmusic

@evoxmusic evoxmusic commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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).

Written for commit 3f9a792. Summary will update on new commits.

View guided diff Turn on auto-fix

Agent tasks need the Growth plan, or the Agent tasks add-on on Starter
(pricing-api SKU `agents`). Behind the `billing-paywall` flag:

- Agents tab: "Create agent task" goes through usePaywall().proceed on
  `agent_task.create`: the full-page paywall when locked, the intro first when
  staff turned it on, then the environment picker.
- The creation flow route is wrapped in AgenticWorkflowPaywall on
  `agentic_workflow.create`, so templates, "Create from scratch" and deep links
  are gated too. "Not now" goes back to Automations.
- Billing kit: a gated feature entry for `agents` with capabilities and the
  drawn generic preview (no rendered media yet).
@RemiBonnet

Copy link
Copy Markdown
Member

Qovery Preview

Qovery can create a Preview Environment for this PR.
To trigger its creation, please post a comment with one of the following command.

Command Blueprint environment
/qovery preview cc1de7de-94e5-40f8-8e45-bc8986d9dfec storybook
/qovery preview 28c47145-c8e7-4b9d-8d9e-c65c95b48425 staging
/qovery preview 964984c5-fba6-4371-88d3-a5daf99642ab test-prod
/qovery preview {all|UUID1,UUID2,...} To preview multiple environments

This comment has been generated from Qovery AI 🤖.
Below, a word from its wisdom :

Programs must be written for people to read, and only incidentally for machines to execute

@nx-cloud

nx-cloud Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 34b72fc

Command Status Duration Result
nx run console:build --parallel=3 --configurati... ✅ Succeeded 1m 31s View ↗
nx run-many --target=test --parallel=3 --config... ✅ Succeeded 5m 42s View ↗
nx affected --target=lint --parallel=3 ✅ Succeeded 2m 33s View ↗
nx-cloud record -- yarn nx format:check ✅ Succeeded 2s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-27 22:25:55 UTC

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 55.65%. Comparing base (4088410) to head (34b72fc).

Files with missing lines Patch % Lines
...ntic-workflow-paywall/agentic-workflow-paywall.tsx 93.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #3282      +/-   ##
===========================================
+ Coverage    54.85%   55.65%   +0.80%     
===========================================
  Files         1583     1578       -5     
  Lines        38881    38664     -217     
  Branches     12257    12188      -69     
===========================================
+ Hits         21328    21520     +192     
+ Misses       14264    13822     -442     
- Partials      3289     3322      +33     
Flag Coverage Δ
unittests 55.65% <95.65%> (+0.80%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…ation

Blueprints and agent tasks now use the same CreationFlowPaywall, keyed by
organization so a switch starts from that organization's own gate. The
agent tasks Learn more link points at the canonical docs page, and the
preview test checks the label inside the drawn preview.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants