{
 "name": "Amazon Ergo in Claude Code: the same 30 SWE-rebench repository tasks, 1 run (with the 5 models of 2026-11-12 and 2026-11-23 alongside)",
 "measured_by": "CodeRouter and TokenWatt (we build both; TokenWatt ran the harness)",
 "date": "2026-12-02 (comparison models: 2026-11-12; Qwen3.8 27B: 2026-11-23)",
 "agent": "Claude Code 2.1.282, headless (claude -p), run as shipped: default system prompt and tools, thinking at its default; WebSearch and WebFetch disabled; --max-turns 150; 60-minute limit per task; $3 limit per task",
 "models": "Amazon Ergo (amazon.ergo-1.0, released 2026-12-01) on Amazon Bedrock through the global cross-region inference profile, called with our own AWS account. Claude Code speaks Anthropic Messages, so a LiteLLM proxy on our machine translated it to Bedrock's Converse API. Ergo ran at Bedrock's default reasoning effort: Claude Code's thinking and effort fields were removed, and so were sampling parameters, which Bedrock rejects for Ergo. Ergo's reasoning, which Bedrock returns encrypted, was handed back each turn. Token-count requests were answered with an estimate on our side. Every model variable (main, Opus, Sonnet, Haiku, subagent) was set to Ergo. The five comparison models: as published (open models through CodeRouter, Sonnet 5.5 through the Anthropic API, Qwen3.8 27B through CodeRouter on TokenWatt's H200).",
 "tasks": "30 tasks drawn at random (seed 20261110) from the 99 SWE-rebench tasks of our coding-agent benchmark: Python pull requests created 2026-03-01..05-12 (nebius/SWE-rebench-leaderboard, CC BY 4.0). Gold patches 30/30 and empty patches 0/30 on the grading machine.",
 "isolation": "Every container had no network except a relay to the model proxy; blocked attempts were logged (DNS lookups only, none reached the internet).",
 "grading": "Official swebench 5.0.2 harness; resolved = the task's failing tests pass and passing tests still pass.",
 "cost": "List price x the tokens each request reported. Ergo: Bedrock's list price for the global profile, $1.00 input, $3.00 output, $0.03 cache read and $1.25 cache write per million tokens (AWS price list, 2026-12-01). Bedrock bills Ergo's uncached input as cache write, and this run is priced that way. The comparison models: as published.",
 "rerun_note": "Six Ergo sessions first stopped after 5-7 turns on an error in our translation layer: Claude Code's token-count request was forwarded to an endpoint our AWS user may not call. After the fix those six tasks were rerun from scratch, and only the reruns are counted. Bedrock returned 23 rate-limit responses during the run, and Claude Code retried them.",
 "limitations": [
  "One run per model; 30 tasks, so intervals are wide.",
  "Claude Code's defaults favour Claude models: its prompts and tools are tuned for them.",
  "Ergo was reached through our own translation layer at Bedrock's default effort, not through Amazon's own Claude Code setup (Bedrock's Responses API with effort 'medium'); results there may differ.",
  "The comparison models ran in November on another rented node; same tasks, images, limits and grading.",
  "Python repositories only: bug fixes and small features from real pull requests."
 ],
 "summary": {
  "Claude Sonnet 5.5": {
   "model_id": "claude-sonnet-5-5",
   "tasks": 30,
   "resolved": 16,
   "resolved_pct": 53.3,
   "resolved_ci95": [
    36.1,
    69.8
   ],
   "cost_usd_list": 4.36,
   "cost_per_task_usd": 0.145,
   "cost_per_resolved_usd": 0.272,
   "median_model_requests": 8.0,
   "median_turns_finished_sessions": 8.5,
   "median_wall_min": 1.0,
   "output_tokens_per_task_median": 3579,
   "cache_read_share_of_input_pct": 93.3,
   "ended": {
    "finished": 30,
    "turn_limit": 0,
    "time_limit": 0,
    "error": 0
   },
   "empty_patches": 0
  },
  "DeepSeek V4.1 Flash": {
   "model_id": "deepseek-chat",
   "tasks": 30,
   "resolved": 9,
   "resolved_pct": 30.0,
   "resolved_ci95": [
    16.7,
    47.9
   ],
   "cost_usd_list": 0.98,
   "cost_per_task_usd": 0.033,
   "cost_per_resolved_usd": 0.109,
   "median_model_requests": 25.0,
   "median_turns_finished_sessions": 26.0,
   "median_wall_min": 4.0,
   "output_tokens_per_task_median": 4993,
   "cache_read_share_of_input_pct": 98.4,
   "ended": {
    "finished": 27,
    "turn_limit": 3,
    "time_limit": 0,
    "error": 0
   },
   "empty_patches": 0,
   "vs_sonnet": {
    "only_this_solved": 1,
    "only_sonnet_solved": 8,
    "mcnemar_exact_p": 0.0391
   }
  },
  "Kimi K2.6": {
   "model_id": "kimi-k2.6",
   "tasks": 30,
   "resolved": 9,
   "resolved_pct": 30.0,
   "resolved_ci95": [
    16.7,
    47.9
   ],
   "cost_usd_list": 21.09,
   "cost_per_task_usd": 0.703,
   "cost_per_resolved_usd": 2.343,
   "median_model_requests": 51.5,
   "median_turns_finished_sessions": 22,
   "median_wall_min": 54.4,
   "output_tokens_per_task_median": 59847,
   "cache_read_share_of_input_pct": 94.6,
   "ended": {
    "finished": 15,
    "turn_limit": 0,
    "time_limit": 15,
    "error": 0
   },
   "empty_patches": 7,
   "vs_sonnet": {
    "only_this_solved": 2,
    "only_sonnet_solved": 9,
    "mcnemar_exact_p": 0.0654
   }
  },
  "GLM-5.3": {
   "model_id": "glm-5.3",
   "tasks": 30,
   "resolved": 14,
   "resolved_pct": 46.7,
   "resolved_ci95": [
    30.2,
    63.9
   ],
   "cost_usd_list": 17.5,
   "cost_per_task_usd": 0.583,
   "cost_per_resolved_usd": 1.25,
   "median_model_requests": 31.5,
   "median_turns_finished_sessions": 32.5,
   "median_wall_min": 4.5,
   "output_tokens_per_task_median": 8368,
   "cache_read_share_of_input_pct": 97.1,
   "ended": {
    "finished": 29,
    "turn_limit": 1,
    "time_limit": 0,
    "error": 0
   },
   "empty_patches": 0,
   "vs_sonnet": {
    "only_this_solved": 1,
    "only_sonnet_solved": 3,
    "mcnemar_exact_p": 0.625
   }
  },
  "Qwen3.8 27B (TokenWatt)": {
   "model_id": "tokenwatt-qwen3.8-27b",
   "tasks": 30,
   "resolved": 10,
   "resolved_pct": 33.3,
   "resolved_ci95": [
    19.2,
    51.2
   ],
   "cost_usd_list": 6.34,
   "cost_per_task_usd": 0.211,
   "cost_per_resolved_usd": 0.634,
   "median_model_requests": 92.5,
   "median_turns_finished_sessions": 86.5,
   "median_wall_min": 12.5,
   "output_tokens_per_task_median": 21447,
   "cache_read_share_of_input_pct": 97.6,
   "ended": {
    "finished": 27,
    "turn_limit": 3,
    "time_limit": 0,
    "error": 0
   },
   "empty_patches": 0,
   "vs_sonnet": {
    "only_this_solved": 1,
    "only_sonnet_solved": 7,
    "mcnemar_exact_p": 0.0703
   }
  },
  "Amazon Ergo": {
   "model_id": "amazon/ergo-1.0",
   "tasks": 30,
   "resolved": 21,
   "resolved_pct": 70.0,
   "resolved_ci95": [
    52.1,
    83.3
   ],
   "cost_usd_list": 13.44,
   "cost_per_task_usd": 0.448,
   "cost_per_resolved_usd": 0.64,
   "median_model_requests": 53.0,
   "median_turns_finished_sessions": 70.0,
   "median_wall_min": 6.8,
   "output_tokens_per_task_median": 43020,
   "cache_read_share_of_input_pct": 97.2,
   "ended": {
    "finished": 30,
    "turn_limit": 0,
    "time_limit": 0,
    "error": 0
   },
   "empty_patches": 0,
   "vs_sonnet": {
    "only_this_solved": 6,
    "only_sonnet_solved": 1,
    "mcnemar_exact_p": 0.125
   }
  }
 },
 "requests_refused_by_cost_limit": 1
}