Model Eval Results

Model Eval Results

SideCar ships a deterministic LLM evaluation harness (npm run eval:llm) that measures how well each model follows the system prompt and completes real agentic tasks. Results below are produced by running the harness against each backend and model.

What the eval measures

The suite has two layers:

Agent cases (70 total) — the model runs inside the full agent loop with real tools against a sandboxed workspace. Cases test tool selection, file editing, code quality, error recovery, multi-turn sessions, and operating rules (e.g. run tests after a fix, use search_files not list_directory + filter). Both the eval suite and the baseline recorder import the single ALL_AGENT_CASES source, so the denominators cannot drift.

Prompt cases — the model is tested against the base system prompt without tool calls: identity, honesty, conciseness, language mirroring, injection resistance, retrieval citation, and tool preference rules.

Cases are scored deterministically (string matching, regex, trajectory inspection — no LLM-as-judge). A case passes only when every expectation holds. Some expectations use softExpect (reported but not counted toward pass/fail) for answer-quality checks where the core behavioral signal is in the trajectory.

SWE-bench Lite (2026-11)

The agent suite above uses small synthetic tasks. SWE-bench Lite measures real work: 300 GitHub issues from 12 Python projects (django, sympy, matplotlib, scikit-learn, pytest, sphinx and others). The agent gets the issue text and the repository at the commit before the fix. It must produce a patch, and a task counts as resolved only when the official SWE-bench harness’s tests pass in Docker.

Setup. Each model ran once on all 300 tasks (seed 11). Settings: SideCar’s default scaffolding with cycle detection off, up to 150 agent turns per task, a 40-minute wall-clock limit, and Ollama on one RTX 5090 (32 GB). Bundles were f40406dd, or 9b3be807 for nemotron-3.5-lightning:30b, both scaffold 7.0.x. The agent is not shown the tests that grade it, and the web_search and run_tests tools are removed.

Scored tasks. 290 tasks are scored for every model. The other 10 are excluded for all of them: 5 where the reference fix itself fails the harness, 3 Flask tasks whose environment cannot import, and 2 that pass before any fix.

Model Download Resolved (of 290) No patch Resolved / patches submitted Leaked runs Leaked counted as failures Median time per task
gemma4:31b 20.4 GB 147 (50.7%) 7 52% 0 50.7% 6.2 min
qwen3.8:27b 17.7 GB 137 (47.2%) 71 63% 6 45.2% 2.9 min
qwen3-coder:30b 18.6 GB 97 (33.4%) 18 36% 4 32.4% 2.0 min
nemotron-3.5-lightning:30b 25.4 GB 97 (33.4%) 16 35% 6 32.4% 3.5 min
qwen3.5:9b 6.6 GB 96 (33.1%) 30 37% 1 32.8% 3.8 min
gemma4:26b-a4b 18.7 GB 92 (31.7%) 35 36% 0 31.7% 3.1 min
ministral-3:latest 6.0 GB 54 (18.6%) 14 20% 0 18.6% 1.7 min
nemotron-3.5-bolt:e4b 7.9 GB 46 (15.9%) 36 18% 0 15.9% 1.7 min
gemma4:e4b (default) 9.6 GB 41 (14.1%) 22 15% 0 14.1% 1.5 min
bonsai-2:4b 1.6 GB 25 (8.6%) 133 16% 0 8.6% 4.0 min

Reading it.

  • One run per model. The four models between 31.7% and 33.4% are a tie; don’t rank within that group.
  • No patch vs. wrong patch. qwen3.8:27b and bonsai-2:4b end many tasks without a patch. Most of qwen3.8’s no-patch runs that were examined end on turns that think and never act (#506). When qwen3.8 does submit a patch, it is right more often than any other model’s.
  • Times include running tests and depend on the GPU. Some models ran two tasks at a time on two Ollama servers and others one at a time, so compare times loosely.

The leak. The harness reset a full clone of the upstream repository to the task’s base commit. That left later commits reachable through git log --all, tags and remote branches. In 17 runs a git command printed the reference fix’s added lines before the agent wrote them; one of those (qwen3-coder on pytest-7490) is a false positive. Counting all 17 as failures changes no ranking. The harness fix, which hides every ref past the base commit, merged in #513 (#507); runs from here on are made with it.

Not a leaderboard run. A ranked submission would also need a Linux environment, no network for the agent, and one frozen release. That run is planned separately.

Current local baselines (2026-08-05/06)

Recorded on the repaired harness (v0.122.3 extension, scaffold 4.0.0, thinking on, 70 agent cases, provenance-guarded — see tests/llm-eval/baselines/). One trial per case, so treat these as a floor, not a measurement: the seed-sensitivity analysis showed marginal cases flip on seed alone. The run history lives in baselines/history.jsonl.

Model Size Agent baseline Notes
gemma4:e4b 9.6 GB 67/70 (96%) Default local model; highest local score; fails: fix-two-independent-bugs, fix-wrong-comparison-operator, thinking-missing-await-in-loop
ministral-3:latest 6 GB 62/70 (89%) Lighter pick; 8 fails incl. rename-function-across-callers and the gate/stub/critic system cases
granite4.1:3b 2 GB 51/70 (73%) Low-RAM pick
qwen2.5-coder:7b 4.5 GB 49/70 (70%) Eval baseline model; code-as-text recovery (default-on since v0.120) is what lifted its multi-turn cases
llama3.2:latest 2 GB 27/70 (39%) Known limitation: edit-anchor grounding (guesses search text instead of copying) — the one model with no working lift path yet

Historical results (pre-harness-repair — NOT comparable)

These numbers predate the v0.122.4–v0.123.0 measurement-layer repair (invalid run_tests glob, tsc returning help text instead of diagnostics, a baseline that compared only 61 of 70 cases, cases that failed a model for choosing an equally valid write tool). Per the comparability rule in scaffold-versions, results on either side of that boundary are not directly comparable — the table below is kept as a historical record of cloud-model runs and suite evolution, not as current rankings. The local-model rows here are superseded by the baselines above.

Last updated: 2026-05-14 (historical). Run with SIDECAR_EVAL_CASE_TIMEOUT=300000 for local models, 120000 for cloud. Suite v0.87d (57 agent + 35 prompt = 92 cases) — current; adds 5 system-infrastructure cases (gate-run-tests-after-fix, stub-validator-forces-real-impl, critic-security-path-traversal, sidecar-md-enforces-convention, cycle-detection-edit-pivot) that measure how SideCar’s built-in mechanisms compensate for known model failure modes. Last updated: 2026-05-14. Suite v0.87c (51 agent + 34 prompt = 85 cases) — adds 4 reasoning cases (thinking-cross-file-causality, thinking-semantic-version-compare, thinking-missing-await-in-loop, thinking-aliased-mutation) with softExpect.trajectoryHasThinking assertions. Suite v0.87b (47 agent + 34 prompt = 81 cases) — adds rule5-no-alternatives-menu and rule9-ambiguous-target + rule9-meta-knowledge prompt cases; includes prompt fixes for Rule 3/5/9. Suite v0.87a (47 agent + 32 prompt = 79 cases) — pre-Rule5/9-fix run; rows marked with ‡. Scores reflect the test suite at time of run; re-run models after any structural fix to get current numbers. Rows marked ‡ are from the v0.87a suite (79 cases) and need re-running on v0.87b. Prompt denominator may vary by model (some cases are skipped when a model lacks extended-thinking support or times out).

Two of the columns measure system-level behavior (the model inside SideCar’s full agent loop / against the base prompt). BFCL is a separate model-level signal — the model’s raw function-calling on the Berkeley Function Calling Leaderboard’s AST subset, with no SideCar scaffolding (see bench/bfcl/ and ADR-006). It’s the comparable, field-anchored number for local-model selection; it gives the harness no credit, by design. Cells are — until a run is recorded — populate with npm run bench:bfcl. Each recorded number carries its reproducibility envelope (model + quantization + context cap). § = macro accuracy on a 100-case sample (20/category) of the real BFCL_v4 AST set, Q4_K_M / 32K — directional, not a leaderboard-official figure (our checker is intentionally stricter on strings; see the per-category results below). Relative ranking across local models is the usable signal.

Model Backend Size Agent Prompt Total BFCL (AST) Notes
claude-haiku-4-5-20251001 Anthropic — 55/57 (96%) 33/35 (94%) 88/92 (96%) — Suite v0.87d. Agent fails: error-recovery (persistent), stub-validator (cycle detection fires first); infrastructure: gate ✓ critic ✓ cycle-detection ✓ sidecar-md ✓; thinking 4/4; prompt fails: rule3 (persistent) + v082-compression-tool-recall (stochastic)
deepseek-v4-pro Fireworks — 45/47 (96%) 30/34 (88%) 75/81 (93%) — Suite v0.87b. Agent score confirmed (same as v0.87a); plan-mode-no-tools + error-recovery are agent fails; plan-mode-behavior now passes; prompt fails: rule3/rule13-url/package-version/rule10; 1M token context
x-ai/grok-3-mini OpenRouter — 41/47 (87%) 30/34 (88%) 71/81 (88%) — Suite v0.87b. Agent fails: grep-regex, injection-resistance, rename-across-callers, run-tests-iterate, no-stub-implement-interface, replace-todo-body; prompt fails: rule3/rule8/plan-mode/rule9-meta-knowledge
gemini-2.5-flash Gemini — 44/47 (94%) 27/34 (79%) 71/81 (88%) — Suite v0.87b. Agent fails: error-recovery, sidecar-md-jsdoc, no-stub-add-function; prompt fails: identity/rule3/rule10/rule13-url/rule13-lineno/retrieval-provenance/package-version
qwen/qwen3-235b-a22b OpenRouter — 44/47 (94%) 27/34 (79%) 71/81 (88%) — Suite v0.87b. Agent improved (rule 5/9 fixes): fails ask-user-ambiguous-rename, write-tests-for-function, rename-across-callers; prompt fails: rule3/rule13-url/rule13-lineno/plan-mode/rule10/retrieval-provenance/package-version
ministral-3:latest Ollama 6 GB 46/47 (98%) 20/32 (62%) 66/79 (84%) ‡ 83%§ Suite v0.87a. Highest agent score of all models tested; sole agent fail is multi-tool-iteration; prompt weaker on rule3/rule7/rule13/rule2/rule4/plan-mode — typical small-model instruction-following gap; requires 600 s case timeout (model is slow)
gemma4:e4b Ollama 9 GB 41/57 (72%) 33/35 (94%) 74/92 (80%) 86%§ Suite v0.87d. Default local model. Strong prompt score; infrastructure: 3/5 system cases pass (gate ✓, critic ✓, cycle-detection ✓; stub-validator ✗, sidecar-md-convention ✗); thinking 3/4 (cross-file-causality ✗); agent fails: error-recovery, grep-regex, ask-user-ambiguous-rename, rename-across-callers, sidecar-md-jsdoc, no-op-recognition, no-stub-error-handling, fix-wrong-type-annotation, fix-wrong-comparison-operator, edit-preserves-surrounding-code, search-then-edit-multi-file, version-from-package-json, run-tests-fail-fix-iterate; prompt fails: rule3/rule9-meta-knowledge
granite4.1:3b Ollama 2 GB 34/51 (67%) 22/34 (65%) 56/85 (66%) 84%§ Suite v0.87c (85 total). Agent fails: rename-function (writes without reading first), error-recovery, grep-regex, search-then-edit, ask-user-ambiguous-rename, shell-error-recovery, run-fix-iteration-cycle (fixes wrong bug), no-op-recognition (edits already-correct file), write-tests-for-function, rename-across-callers, export-from-barrel, run-tests-iterate, no-stub-multi-function, no-stub-add-function, fix-wrong-type-annotation, thinking-cross-file-causality, thinking-aliased-mutation; thinking 2/4; prompt fails: tool-output-as-data/honesty/retrieval-provenance/spend-tracker/package-version/rule3/rule13-url/prior-context/rule2/rule13-lineno/rule10/rule9-meta-knowledge
qwen3.5:latest Ollama 6 GB 39/57 (68%) 28/34 (82%) 67/91 (74%) — Suite v0.87d. Agent fails: git_diff/git_status/git_log preference (uses run_command instead), read-single-file, multi-tool-iteration, list-directory-exploration, error-recovery, grep-regex, version-from-package-json, no-op-recognition, explain-function-from-source, fix-missing-await, rename-across-callers (300s timeout), run-tests-fail-fix-iterate, thinking-aliased-mutation, gate-run-tests-after-fix, stub-validator; 2 skipped; prompt fails: rule3/rule13-url/retrieval-provenance/spend-tracker/rule10/rule9-meta-knowledge
mistral-large-2411 OpenRouter — partial partial ~63/78 ‡‡ — Suite v0.87. Result unreliable — ~4+ agent cases hit upstream 429 rate limits; real behavioral failures: multi-tool-iteration, error-recovery, ask-user-ambiguous-rename + 5 prompt cases
gpt-4o OpenAI — ❌ rate limited — — — Free tier 30K TPM; prompt+tools was then estimated at ~23K tokens (measured at ~11.5K in 2026-10), exhausted after 1 case
meta-llama/llama-4-maverick OpenRouter — ❌ no tool use — — — OpenRouter routing for this model has no tool-use endpoint; 404 on all agent cases
llama-4-scout-17b-16e-instruct Groq — ❌ rate limited — — — Free tier 30K TPM; same constraint as gpt-4o above
llama-3.3-70b-versatile Groq — ❌ rate limited 17/22 (77%) — — Free tier 12K TPM; too small even for a single request. Groq shut this model down on 2026-08-16
openai/gpt-oss-120b Groq — ❌ rate limited — — — Free tier 8K TPM < one request (~11.5K); smoke 1/8 (only plan-mode fits), Oct 2026
openai/gpt-oss-20b Groq — ❌ rate limited — — — Free tier 8K TPM < one request (~11.5K); smoke 1/8 (only plan-mode fits), Oct 2026
llama-v3p3-70b-instruct Fireworks — ❌ context exceeded 15/22 (68%) — — Prompt is 131,473 tokens; model limit is 131,072 — 401 tokens over
glm-4.7-flash Ollama 19 GB ❌ too slow — — — Prefill >300s on 36 GB hardware; parser bug fixed (message.thinking field)
laguna-xs.2 Ollama 23 GB ❌ incompatible — — — Freezes when tool schemas are included in the request

Models confirmed not working

Each row records the result of the run that excluded the model. The OpenAI and older Groq rows date from 2026-05 and reflect those providers’ limits at the time; they have not been re-run.

Model Backend Reason
meta-llama/llama-4-maverick OpenRouter No tool-use endpoint available via OpenRouter routing (404 on every agent case)
laguna-xs.2 Ollama Freezes completely when tool schemas are present in the request
glm-4.7-flash Ollama Prefill >300s on 36 GB hardware; too slow to be usable
llama-v3p3-70b-instruct Fireworks 401 tokens over the 131,072-token context limit when tool schemas are included
gpt-4o OpenAI Free tier (30K TPM) exhausted after 1 case; requires paid tier
gpt-4o-mini OpenAI 2026-05: the org’s 200K TPM limit at the time was exhausted after ~8 requests; 340+ rate-limit errors in a full suite run made scores meaningless
gpt-4.1-mini OpenAI 2026-05: same rate-limit constraint as gpt-4o-mini; results unreliable
llama-4-scout-17b-16e-instruct Groq Free tier (30K TPM) exhausted after 1 case; requires paid tier
llama-3.3-70b-versatile Groq Free tier (12K TPM) too small for even a single request; Groq shut the model down on 2026-08-16
openai/gpt-oss-120b Groq Free tier (8K TPM) smaller than one request (~11.5K tokens) — 413 on every tool-using case
openai/gpt-oss-20b Groq Free tier (8K TPM) smaller than one request (~11.5K tokens) — 413 on every tool-using case
qwen3.6 Ollama Causes kernel panic (OOM) on 36 GB hardware when loaded alongside other models

Known model constraints

Local model RAM limits: On a 36 GB unified-memory machine, models larger than ~12 GB risk OOM. Always unload the previous model before loading a large one. qwen3.6 (23 GB) caused a kernel panic when loaded alongside another model.

Cloud API rate limits: every agent request carries SideCar’s system prompt and tool definitions — about 11.5K tokens before any conversation (measured 2026-10; the base system prompt alone is about 26,000 characters, before SIDECAR.md and workspace context are added). A tokens-per-minute limit near that size fails outright: Groq’s free tier (8K TPM) rejects every agent request with 413. Small limits exhaust after a few cases and trip the circuit breaker for the rest of the run. Use a paid tier for cloud evals.

OpenAI rate limits (2026-05 runs): at the time, gpt-4o-mini and gpt-4.1-mini shared a 200K TPM org-level limit, and a full 85-case eval hit 300–400 rate-limit failures per run, so these models are excluded from the results table. OpenAI now sets limits per model, in the millions of tokens per minute on the lowest paid tier (rate-limit guide); they have not been re-run.

Fireworks context limit: llama-v3p3-70b-instruct has a 131,072 token context window. Our prompt + tool schemas lands at 131,473 tokens on the llama tokenizer — 401 tokens over. Prompt-only cases work fine. Use a Fireworks model with a larger context window, or wait for tool-catalog trimming in a future release.

GLM-style models (message.thinking): Models like GLM-4 emit chain-of-thought in message.thinking rather than <think> tags inside message.content. SideCar v0.87+ handles this correctly. Older versions would silently drop every event, producing empty trajectories.

Common failure patterns

These failures appear across multiple models and indicate areas for prompt improvement:

Pattern Affected models Description
rule3-concise-prose all tested Model writes an essay for a simple factual question
error-recovery-to-correct-file all tested Model finds the candidate file via list_directory but asks “would you like me to read it?” instead of reading immediately — Rule 5 strengthened in v0.87 to close this gap
ask-user-ambiguous-rename all tested Model guesses which of two candidate functions the user meant and edits it, then hedges “let me know if you meant the other one” — Rule 9 updated in v0.87 to explicitly cover the singular-target / multiple-candidates case
grep-regex-pattern all tested Model reads every file individually instead of using grep with a regex to search across files
rule7-no-tool-narration haiku, gemma4, gpt-4o-mini, qwen3.5 Model emits filler text between consecutive tool calls
plan-mode-no-tools deepseek, qwen3-235b Model says “let me explore first” and calls tools instead of producing the plan directly
plan-mode-behavior (prompt) deepseek, qwen3-235b, gemma4 Model does not describe ExitPlanMode or plan-then-present behavior when explaining plan mode
rule13-no-invented-url / package-version-not-invented deepseek, qwen3-235b Model fabricates a URL or package version it has not seen in context
edit_file search-string mismatch gpt-4.1-mini Model reports success after edit_file returns a search-not-found error instead of retrying
edit_file no-op (search == replace) gemma4 (pre-v0.89.1) Model populated replace with the same text as search — silent success, file unchanged. Fixed by adding a guard that returns an error when search === replace, which lets models that understand error recovery (like gemma4) retry correctly
edit_file partial replace (replace ⊂ search) gemma4 Model puts a substring of the search string as the replacement (e.g. search = full function signature, replace = "string"), silently truncating the file. A warning is now appended to the success response when replace is < 50% of search length and appears verbatim inside it — prompts the model to re-read and self-correct
rule2/rule4 (new) qwen3-235b Rule 2 (name the tool, don’t guess inline) and Rule 4 (relative paths) — qwen3-235b fails both on the new prompt cases
run-tests-fail-fix-iterate (multi-bug) qwen3-235b Multi-iteration fix loop (fix bug 1 → re-run → fix bug 2) times out at 120 s for large cloud models

Running the eval yourself

# Local Ollama (default — free, no API key needed)
SIDECAR_EVAL_MODEL=ministral-3:latest SIDECAR_EVAL_CASE_TIMEOUT=300000 npm run eval:llm

# Anthropic
SIDECAR_EVAL_BACKEND=anthropic ANTHROPIC_API_KEY=<key> npm run eval:llm

# OpenAI
SIDECAR_EVAL_BACKEND=openai OPENAI_API_KEY=<key> SIDECAR_EVAL_MODEL=gpt-4o npm run eval:llm

# Groq (requires dev tier for agent cases)
SIDECAR_EVAL_BACKEND=groq GROQ_API_KEY=<key> SIDECAR_EVAL_MODEL=openai/gpt-oss-120b npm run eval:llm

# Fireworks (use deepseek-v4-pro — default llama model exceeds context limit)
SIDECAR_EVAL_BACKEND=fireworks FIREWORKS_API_KEY=<key> SIDECAR_EVAL_MODEL=accounts/fireworks/models/deepseek-v4-pro npm run eval:llm

# Multi-model comparison table
SIDECAR_EVAL_COMPARE_MODELS="anthropic:claude-haiku-4-5-20251001,ollama:qwen3.5:latest" npm run eval:compare

BFCL (function-calling, model-level)

The BFCL (AST) column above is produced by a separate harness — the Berkeley Function Calling Leaderboard’s AST subset — which scores the model’s raw function-calling with no SideCar scaffolding. Use it for local-model selection: it’s the field-comparable answer to “is this model’s tool-use good for its weight class?”.

# Local Ollama (default model)
npm run bench:bfcl

# A specific candidate
SIDECAR_BFCL_MODEL=ministral-3:latest npm run bench:bfcl
SIDECAR_BFCL_MODEL=qwen2.5-coder:7b npm run bench:bfcl

# Full upstream dataset (the bundled fixtures are only a pipeline smoke test)
SIDECAR_BFCL_DATA=/path/to/bfcl SIDECAR_BFCL_MODEL=gemma4:e4b npm run bench:bfcl

When recording a number in the table, paste the macro accuracy and keep the reproducibility envelope the report prints (model + quantization + context cap) in the row’s Notes — a BFCL score without its quantization is not comparable. See bench/bfcl/README.md for categories and the documented simplifications vs. upstream.

BFCL AST-subset results (local candidates, first pass)

Envelope: real BFCL_v4 AST set, 100-case sample (20/category), Q4_K_M, 32K context, temp 0, local Ollama. Run 2026-06-30. Directional, not leaderboard-official.

Model Size simple multiple parallel parallel_multiple irrelevance macro
gemma4:e4b (default) 9 GB 80% 80% 95% 75% 100% 86%
granite4.1:3b 2 GB 85% 80% 75% 100% 80% 84%
ministral-3:latest 6 GB 80% 75% 80% 80% 100% 83%

What this says:

  • All three small local models cluster at 83–86% raw function-calling — direct evidence for the “small models are capable with the right scaffolding” thesis, and the basis for treating them as viable defaults.
  • gemma4:e4b leads (86%), so the v0.115 default choice holds up on a field-anchored model-level signal, not just the internal agent harness. granite4.1:3b (84%) at 2 GB / 3B punches well above its weight (it tops parallel_multiple outright); its weak spot is irrelevance (over-eager to call). ministral’s marginally lower raw tool-use (83%) despite its 98% system-level agent score is the model-level-vs-system-level gap in miniature — it’s strong inside the loop.
  • The absolute numbers understate true tool-use. A failure audit showed most misses are checker strictness, not missed calls: math-expression serialization (x^2 vs 2*x**2 vs 2x^2) and dict-value matching (gradeDict, budget) that BFCL’s official checker normalizes and ours does not (the documented “stricter on strings” simplification). Genuine capability misses are fewer (e.g. granite emitting one call where two were expected). Because the same checker applies to all three, the relative ranking is reliable even though the absolute level is conservative. Hardening the checker’s numeric/expression normalization toward parity is the natural next bench increment.