{
 "id": "claude-code-tokenwatt-models-30-swe-tasks",
 "kind": "measurement",
 "status": "published",
 "title": "Claude Code on our three served open models, 30 real repository tasks (vs Sonnet 5.5, GLM, DeepSeek, Kimi)",
 "published": "2026-11-24",
 "summary": "Run on 2026-11-23: Claude Code 2.1.282, headless and as shipped, on the same 30 SWE-rebench tasks we ran on four other models on 2026-11-12, with every model variable set to the model under test. Our three models (Qwen3.8-27B, harness-hub's pi adapter for it, Qwen3.6-35B-A3B; FP8 on one H200 behind api.tokenwatt.io) were reached through CodeRouter's production API with the model named, thinking off (their default). Graded with the official swebench harness. Cost = reported tokens × list price (ours: TokenWatt's list prices at the time of the run; these requests were charged $0, free promotion). One run per model. We serve these three models; the write-up is on coderouter.io.",
 "conclusion": "The pi adapter solved 11 of 30 at $0.27 per solved task, the same as Sonnet 5.5 ($0.27), which solved 16. Base Qwen3.8-27B solved 10 but took 86.5 turns per task at the median against the adapter's 33, so it cost $0.63 per solved task. Qwen3.6-35B-A3B solved 6. In Claude Code 95–98% of our models' input was cache reads, so turns, not the price per token, set the bill.",
 "headline": {
  "value": "11/30",
  "label": "pi adapter at $0.27 per solved task, like Sonnet 5.5"
 },
 "hardware": {
  "vendor": "NVIDIA",
  "accelerator": "NVIDIA H200",
  "count": 1,
  "rated_bw_tbs_per_gpu": 4.8,
  "driver": "",
  "host": "RunPod Secure Cloud 1x H200 SXM 141 GB (our API's server); the comparison models ran at their providers"
 },
 "software": {
  "engine": "vLLM",
  "engine_version": "0.33.0",
  "kernels": "vllm/vllm-openai:v0.33.0, two engines under CUDA MPS; pi adapter as a LoRA on the Qwen3.8 engine"
 },
 "model": {
  "name": "Qwen3.8-27B-FP8 (+ pi LoRA) + Qwen3.6-35B-A3B-FP8",
  "shape": "",
  "quantization": "FP8 weights",
  "parallelism": "1 replica each × TP1, one shared GPU"
 },
 "pills": [
  "Coding agent · 30 SWE tasks",
  "Claude Code",
  "Our own API"
 ],
 "variables_measured": [
  "tasks solved (official tests)",
  "cost per task and per solved task at list price",
  "turns and time per task",
  "how sessions ended",
  "cache-read share of input"
 ],
 "charts_sub": "Highlighted = the three models we serve. Same 30 tasks, one run per model; the other four ran on 2026-11-12.",
 "charts": [
  {
   "title": "Tasks solved",
   "unit": "of 30",
   "digits": 0,
   "max": 30,
   "better": "higher is better",
   "bars": [
    {
     "label": "Sonnet 5.5",
     "key": "base",
     "value": 16
    },
    {
     "label": "GLM-5.3",
     "key": "base",
     "value": 14
    },
    {
     "label": "Qwen3.8 + pi adapter",
     "key": "tuned",
     "value": 11
    },
    {
     "label": "Qwen3.8-27B",
     "key": "tuned",
     "value": 10
    },
    {
     "label": "DeepSeek V4.1 Flash",
     "key": "base",
     "value": 9
    },
    {
     "label": "Kimi K2.6",
     "key": "base",
     "value": 9
    },
    {
     "label": "Qwen3.6-35B-A3B",
     "key": "tuned",
     "value": 6
    }
   ]
  },
  {
   "title": "Cost per solved task",
   "unit": "US$ at list price",
   "digits": 2,
   "better": "lower is better",
   "bars": [
    {
     "label": "Sonnet 5.5",
     "key": "base",
     "value": 0.272
    },
    {
     "label": "GLM-5.3",
     "key": "base",
     "value": 1.25
    },
    {
     "label": "Qwen3.8 + pi adapter",
     "key": "tuned",
     "value": 0.266
    },
    {
     "label": "Qwen3.8-27B",
     "key": "tuned",
     "value": 0.634
    },
    {
     "label": "DeepSeek V4.1 Flash",
     "key": "base",
     "value": 0.109
    },
    {
     "label": "Kimi K2.6",
     "key": "base",
     "value": 2.343
    },
    {
     "label": "Qwen3.6-35B-A3B",
     "key": "tuned",
     "value": 1.362
    }
   ]
  },
  {
   "title": "Median turns per task",
   "unit": "turns (finished sessions)",
   "digits": 1,
   "better": "fewer is cheaper in Claude Code",
   "bars": [
    {
     "label": "Sonnet 5.5",
     "key": "base",
     "value": 8.5
    },
    {
     "label": "GLM-5.3",
     "key": "base",
     "value": 32.5
    },
    {
     "label": "Qwen3.8 + pi adapter",
     "key": "tuned",
     "value": 33.0
    },
    {
     "label": "Qwen3.8-27B",
     "key": "tuned",
     "value": 86.5
    },
    {
     "label": "DeepSeek V4.1 Flash",
     "key": "base",
     "value": 26.0
    },
    {
     "label": "Kimi K2.6",
     "key": "base",
     "value": 22
    },
    {
     "label": "Qwen3.6-35B-A3B",
     "key": "tuned",
     "value": 43.0
    }
   ]
  }
 ],
 "tables": [
  {
   "title": "All seven models",
   "sub": "Per task / per solved: cost at list price. Turns and time: medians per task. Last column: exact McNemar test against Sonnet 5.5 on the same tasks.",
   "columns": [
    "Model",
    "Solved",
    "95% CI",
    "Per task",
    "Per solved",
    "Turns",
    "Time",
    "vs Sonnet"
   ],
   "highlight_rows": [
    2
   ],
   "rows": [
    [
     "Sonnet 5.5",
     "16/30",
     "36–70%",
     "$0.145",
     "$0.27",
     "8.5",
     "1.0 min",
     "—"
    ],
    [
     "GLM-5.3",
     "14/30",
     "30–64%",
     "$0.583",
     "$1.25",
     "32.5",
     "4.5 min",
     "p = 0.625"
    ],
    [
     "Qwen3.8 + pi adapter (ours)",
     "11/30",
     "22–54%",
     "$0.098",
     "$0.27",
     "33",
     "7.8 min",
     "p = 0.125"
    ],
    [
     "Qwen3.8-27B (ours)",
     "10/30",
     "19–51%",
     "$0.211",
     "$0.63",
     "86.5",
     "12.5 min",
     "p = 0.070"
    ],
    [
     "DeepSeek V4.1 Flash",
     "9/30",
     "17–48%",
     "$0.033",
     "$0.11",
     "26",
     "4.0 min",
     "p = 0.039"
    ],
    [
     "Kimi K2.6",
     "9/30",
     "17–48%",
     "$0.703",
     "$2.34",
     "22",
     "54.4 min",
     "p = 0.065"
    ],
    [
     "Qwen3.6-35B-A3B (ours)",
     "6/30",
     "10–37%",
     "$0.272",
     "$1.36",
     "43",
     "4.2 min",
     "p = 0.006"
    ]
   ]
  },
  {
   "title": "How the sessions ended",
   "sub": "Limits: 150 turns, 60 minutes, $3 per task. Empty = the session ended with no code change.",
   "columns": [
    "Model",
    "Finished",
    "Turn limit",
    "Time limit",
    "Error",
    "Empty",
    "Cache-read share",
    "Output tokens / task"
   ],
   "rows": [
    [
     "Sonnet 5.5",
     30,
     0,
     0,
     0,
     0,
     "93.3%",
     "3,579"
    ],
    [
     "GLM-5.3",
     29,
     1,
     0,
     0,
     0,
     "97.1%",
     "8,368"
    ],
    [
     "Qwen3.8 + pi adapter",
     30,
     0,
     0,
     0,
     1,
     "95.4%",
     "15,058"
    ],
    [
     "Qwen3.8-27B",
     27,
     3,
     0,
     0,
     0,
     "97.6%",
     "21,447"
    ],
    [
     "DeepSeek V4.1 Flash",
     27,
     3,
     0,
     0,
     0,
     "98.4%",
     "4,993"
    ],
    [
     "Kimi K2.6",
     15,
     0,
     15,
     0,
     7,
     "94.6%",
     "59,847"
    ],
    [
     "Qwen3.6-35B-A3B",
     29,
     1,
     0,
     0,
     0,
     "95.3%",
     "16,429"
    ]
   ]
  }
 ],
 "setup": [
  [
   "Agent",
   "Claude Code 2.1.282, headless (claude -p), default system prompt, tools and thinking; WebSearch/WebFetch off"
  ],
  [
   "Tasks",
   "30 tasks drawn at random (seed 20261110) from the 99 SWE-rebench tasks of CodeRouter's coding-agent benchmark: Python pull requests from 2026-03-01 to 05-12 (nebius/SWE-rebench-leaderboard, CC BY 4.0)"
  ],
  [
   "Limits",
   "150 turns, 60 minutes and $3 per task"
  ],
  [
   "Isolation",
   "one container per task, network only to the metering proxy"
  ],
  [
   "Grading",
   "official swebench harness 5.0.2: failing tests now pass and passing tests still pass"
  ],
  [
   "Our models",
   "tokenwatt-qwen3.8-27b, tokenwatt-qwen3.8-27b-pi, tokenwatt-qwen3.6-35b-a3b via CodeRouter production → api.tokenwatt.io; thinking off (reasoning_effort none)"
  ],
  [
   "Prices used",
   "Qwen3.8 and the pi adapter $0.06 input / $0.03 cached / $2.00 output per M tokens; Qwen3.6 $0.10 / $0.08 / $0.90 (cached input lowered to $0.03 on 2026-11-24, after the run)"
  ],
  [
   "Comparison",
   "Sonnet 5.5 via Anthropic's API; GLM-5.3, DeepSeek V4.1 Flash, Kimi K2.6 via CodeRouter to their providers; run 2026-11-12"
  ]
 ],
 "not_covered": [
  "Repeat runs: one run per model and 30 tasks, so intervals are wide",
  "Thinking on for our three models",
  "Other agents: Claude Code is tuned for Claude models, and the pi adapter was trained for the pi agent",
  "Languages other than Python",
  "Our GPU cost: costs are list prices, what a user would pay"
 ],
 "reproduce_title": "Reproduce",
 "reproduce_sub": "Harness, per-session records and grading: bench/coderouter-agentic/ in the TokenWatt repository (cc_open.py, results/cc-open-2026-11/run1/).",
 "reproduce": "# one arm, all 30 tasks, on a rented GPU node (tasks run in Docker containers)\npython3 bench/coderouter-agentic/cc_open.py agent --arm cc_cr_qwen38 --set all --workers 6\npython3 bench/coderouter-agentic/cc_open.py eval --arm cc_cr_qwen38 --set all\npython3 bench/coderouter-agentic/cc_open.py report --set all --arms cc_sonnet,cc_cr_qwen38\n\n# public data files and this report\npython3 bench/coderouter-agentic/cc_open_public.py --tokenwatt-cr <out_dir>\npython3 bench/coderouter-agentic/make_site_report_cr_tw.py",
 "post": "https://www.coderouter.io/blog/claude-code-free-open-models-30-tasks",
 "data": {
  "aggregate": "/data/coding-agent/coderouter-claude-code-tokenwatt-models-2026-11-23.json",
  "sessions_csv": "/data/coding-agent/coderouter-claude-code-tokenwatt-models-2026-11-23-sessions.csv",
  "same_files_on": "https://www.coderouter.io/benchmarks/",
  "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
    }
   },
   "Qwen3.8 27B pi-adapted (TokenWatt)": {
    "model_id": "tokenwatt-qwen3.8-27b-pi",
    "tasks": 30,
    "resolved": 11,
    "resolved_pct": 36.7,
    "resolved_ci95": [
     21.9,
     54.5
    ],
    "cost_usd_list": 2.93,
    "cost_per_task_usd": 0.098,
    "cost_per_resolved_usd": 0.266,
    "median_model_requests": 35.5,
    "median_turns_finished_sessions": 33.0,
    "median_wall_min": 7.8,
    "output_tokens_per_task_median": 15058,
    "cache_read_share_of_input_pct": 95.4,
    "ended": {
     "finished": 30,
     "turn_limit": 0,
     "time_limit": 0,
     "error": 0
    },
    "empty_patches": 1,
    "vs_sonnet": {
     "only_this_solved": 1,
     "only_sonnet_solved": 6,
     "mcnemar_exact_p": 0.125
    }
   },
   "Qwen3.6 35B A3B (TokenWatt)": {
    "model_id": "tokenwatt-qwen3.6-35b-a3b",
    "tasks": 30,
    "resolved": 6,
    "resolved_pct": 20.0,
    "resolved_ci95": [
     9.5,
     37.3
    ],
    "cost_usd_list": 8.17,
    "cost_per_task_usd": 0.272,
    "cost_per_resolved_usd": 1.362,
    "median_model_requests": 57.5,
    "median_turns_finished_sessions": 43.0,
    "median_wall_min": 4.2,
    "output_tokens_per_task_median": 16429,
    "cache_read_share_of_input_pct": 95.3,
    "ended": {
     "finished": 29,
     "turn_limit": 1,
     "time_limit": 0,
     "error": 0
    },
    "empty_patches": 0,
    "vs_sonnet": {
     "only_this_solved": 1,
     "only_sonnet_solved": 11,
     "mcnemar_exact_p": 0.0063
    }
   }
  }
 }
}
