🧠 HeyCMO
Workflows

Self-Optimization

Analyze telemetry data, detect patterns, and adjust agent behavior for continuous improvement.

Self-Optimization Workflow

The Self-Optimization workflow is HeyCMO's procedural memory loop — it analyzes telemetry data from all workflows, detects performance patterns, and proposes weight adjustments to scoring criteria for continuous improvement.

How It Works

  1. Gather Telemetry — Collects execution data: eval scores, user decisions (approved/rejected/revised), engagement metrics, execution durations, error rates
  2. Detect Patterns — Identifies trends across the data (declining quality, improving engagement, recurring errors)
  3. Propose Changes — Generates weighted adjustment proposals with rationale and confidence scores
  4. Apply & Record — Applies approved changes and records lessons learned with rollback data

Pattern Detection

Patterns are classified by severity and trend:

SeverityTrendExample
CriticalDecliningBrand voice scores dropping below 0.6
HighDecliningContent rejection rate increasing
MediumStableEngagement plateauing for 3+ weeks
LowImprovingEmail open rates trending up

Proposal Categories

CategoryWhat It Adjusts
format_weightsPrioritization of content formats (blog vs. social vs. email)
posting_timesOptimal posting schedule per channel
topic_focusContent pillar weighting based on performance
voice_refinementBrand voice parameter adjustments
channel_strategyChannel allocation and resource distribution

Each proposal includes:

  • Current value and proposed value
  • Rationale backed by data points
  • Expected impact estimate
  • Confidence score (0–1)

Lessons Learned

The workflow maintains a lesson log with types:

  • Observation — Neutral pattern detected
  • Correction — Agent behavior adjusted
  • Success — Proven tactic documented
  • Failure — Failed approach with root cause

Safety

  • All changes include rollback data (previous weights + timestamp)
  • A trigger threshold defines when rollback should activate
  • Changes are proposed, not forced — human review is supported

MCP Tool

Invoke via run_optimization in your MCP client.

Scheduling

Runs automatically via Inngest cron job for periodic optimization cycles.

On this page