# Base token estimates per task type
# These are starting points — calibration replaces them with team-specific data

profiles:
  scaffold:
    input: 2000
    output: 8000
    total: 10000
    notes: Project setup, config, boilerplate

  api-endpoint:
    input: 3000
    output: 12000
    total: 15000
    notes: Route + controller + validation + types

  react-component:
    input: 2500
    output: 10000
    total: 12500
    notes: Component + styles + basic props

  complex-ui:
    input: 4000
    output: 18000
    total: 22000
    notes: State management, animations, a11y

  database-schema:
    input: 2000
    output: 6000
    total: 8000
    notes: Schema + migrations + seed

  integration:
    input: 5000
    output: 15000
    total: 20000
    notes: 3rd-party API client + errors + types

  test-unit:
    input: 2000
    output: 8000
    total: 10000
    notes: Per module

  test-e2e:
    input: 3000
    output: 12000
    total: 15000
    notes: Per user flow

  devops:
    input: 3000
    output: 8000
    total: 11000
    notes: CI/CD + deployment config

  documentation:
    input: 1500
    output: 5000
    total: 6500
    notes: Per section

  refactoring:
    input: 8000
    output: 15000
    total: 23000
    notes: Needs full context read

  architecture:
    input: 5000
    output: 10000
    total: 15000
    notes: System design, decisions

  debugging:
    input: 10000
    output: 8000
    total: 18000
    notes: High input (code reading)

complexity_multipliers:
  S: 0.3
  M: 1.0
  L: 2.5
  XL: 5.0

overhead_multipliers:
  multi_turn_context_resend: 0.70
  tool_call_overhead_input: 500
  tool_call_overhead_output: 1500
  extended_thinking_opus: 3.0
  extended_thinking_sonnet: 1.5
  multi_agent: 1.8
  error_recovery_chance: 0.15
  error_recovery_multiplier: 1.5
  planning_pass: 0.20
  review_pass: 0.10
  context_rot_above_50k: 0.25
  claude_md_context_load_min: 2000
  claude_md_context_load_max: 5000
  cache_discount: 0.90
