{
  "schema_version": "1.0",
  "surface_type": "tool_answer",
  "tool_id": "coding-agent-cost-per-task",
  "citation_question": "What does a coding agent cost per accepted task?",
  "question": "How do I calculate coding agent cost per accepted task with subscription, API, local fallback, and rework assumptions?",
  "canonical_url": "https://www.unitcostai.com/tools/coding-agent-cost-per-task",
  "formula": "accepted_tasks_monthly = active_workers * accepted_tasks_per_worker_month; task_attempts_monthly = accepted_tasks_monthly / acceptance_rate; cost_per_accepted_task = (subscription + api_model + local_fallback + infra) / accepted_tasks_monthly",
  "assumptions": [
    "Accepted tasks are user-defined useful coding outputs after retries and review",
    "Subscription spend is an explicit worker-month budget",
    "API spend uses model requests, input tokens, and output tokens from a dated pricing snapshot",
    "Local fallback spend uses runtime minutes and local worker cost per hour"
  ],
  "example": "If subscription, API, local fallback, and infra sum to $827 for 140 accepted coding tasks, cost_per_accepted_task is about $5.91.",
  "units": "USD per accepted task and USD per month",
  "pricing_context": {
    "context_type": "pricing_snapshot",
    "snapshot_id": "2026-06-21",
    "snapshot_date": "2026-06-21",
    "reference_url": "https://www.unitcostai.com/pricing"
  },
  "pricing_snapshot": {
    "snapshot_id": "2026-06-21",
    "snapshot_date": "2026-06-21",
    "pricing_reference_url": "https://www.unitcostai.com/pricing"
  }
}
