Skip to main content
The harness tracks energy consumption using deterministic compute-intensity coefficients. This provides a proxy for carbon impact without requiring real-time power measurement.

Energy Formula

Output tokens are weighted 1.5x because generation is more compute-intensive than prompt processing.

Python Energy Coefficients

TypeScript Energy Coefficients

Unknown TypeScript models use a coefficient of 0.9.

Energy Caps

Set a maximum energy budget for a run:
When energy exceeds the cap:
  • In observe mode: logged but not enforced
  • In enforce mode: execution stops with action: "stop"

Energy-Aware KPI Weights

Include energy in KPI weights for carbon-aware routing:

Python Pricing Table

Full pricing for all 18 supported models (USD per 1M tokens): The TypeScript harness uses its own versioned pricing table for OpenAI and Anthropic models. See the package source when an exact coefficient is required for an audit.