{
 "name": "Claude Code on our self-hosted open models: the same 30 SWE-rebench tasks, 3 models, 1 run each (with the 4 models of 2026-11-12 alongside)",
 "measured_by": "CodeRouter and TokenWatt (we build both, and we host these three models)",
 "date": "2026-11-23 (the four comparison models: 2026-11-12)",
 "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": "Qwen3.8 27B, Qwen3.8 27B with harness-hub's pi adapter (a LoRA trained for the pi coding agent, not for Claude Code) and Qwen3.6 35B A3B, all FP8 on TokenWatt's one H200 (api.tokenwatt.io), reached through CodeRouter production with the model named (tokenwatt-qwen3.8-27b, tokenwatt-qwen3.8-27b-pi, tokenwatt-qwen3.6-35b-a3b): CodeRouter translates Anthropic Messages to OpenAI chat and sends thinking off (reasoning_effort none), which is CodeRouter's default for these models; Claude Code's adaptive thinking counts as that default. No sampling parameters were set by us. Every model variable (main, Opus, Sonnet, Haiku, subagent) set to the model under test. The four 2026-11-12 models: as published (open models through CodeRouter, Sonnet 5.5 through the Anthropic API).",
 "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, cache reads included. Our three models: TokenWatt's list prices (Qwen3.8 27B and the pi adapter $0.06 input / $0.03 cached / $2.00 output per million tokens; Qwen3.6 35B A3B $0.10 / $0.08 / $0.90; no cache-write charge). These requests were charged $0 (free promotion until 2026-12-07; our internal eval key). The 2026-11-12 models: as published.",
 "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.",
  "Thinking was off for our three models (CodeRouter's default for them); with thinking on the results and costs would differ.",
  "The pi adapter was trained for the pi coding agent's prompts and tools, not Claude Code's.",
  "The four comparison models ran on 2026-11-12 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
   }
  },
  "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
   }
  }
 },
 "requests_refused_by_cost_limit": 1
}