Skip to main content

Cortex

Cortex is coming soon! Join the waitlist to get early access.
Cortex is a feature flag service that lets you control feature rollouts, run A/B tests, and manage configuration without deploys.

Features

Feature Flags

Enable/disable features instantly

Gradual Rollouts

Roll out features to a percentage of users

User Targeting

Target specific users, groups, or segments

A/B Testing

Run experiments and measure impact

Preview

# Simple boolean flag
if BrainzLab::Cortex.enabled?(:new_checkout)
  render_new_checkout
else
  render_old_checkout
end

# With user targeting
if BrainzLab::Cortex.enabled?(:beta_feature, user: current_user)
  show_beta_feature
end

# Multivariate flags
variant = BrainzLab::Cortex.variant(:pricing_experiment, user: current_user)
case variant
when "control"
  show_original_pricing
when "variant_a"
  show_new_pricing
when "variant_b"
  show_premium_pricing
end

What You’ll Get

Instant Changes

Update flags without deploys:
  1. Change flag in dashboard
  2. Changes propagate in seconds
  3. No restart required

Safe Rollouts

Roll out features gradually:
  • Start with 1% of users
  • Monitor error rates in Reflex
  • Check performance in Pulse
  • Increase to 100% when confident

Targeting Rules

Target features to specific users:
flag: beta_feature
rules:
  - if user.plan == "enterprise"
    then: enabled
  - if user.email ends_with "@brainzlab.ai"
    then: enabled
  - default: disabled

Join the Waitlist

Get Early Access

Sign up to be notified when Cortex launches