Can you still compare 3.8 and 3.7 directly?
Submitting both model names to the current Gemini API will not give you a clean test of two model versions. A successful response from the old name shows that the request worked; Google may have served it through 3.8. The deprecation table says this old endpoint remains available with automatic routing, so an HTTP success is not evidence that you reached the original 3.7 model.
| Your situation | Useful comparison | What to record |
|---|---|---|
| You use the current Gemini API | Explicit 3.8 settings versus saved results from your previous workflow | Endpoint, request date, requested model, returned model information if exposed, agent version and settings |
| You saved genuine 3.7 runs before the routing change | Historical 3.7 outcomes versus new 3.8 acceptance results | Old repository commit, original trace and patch, tests, spend and environment differences |
| A different provider advertises both names | A model A/B only after checking that the provider actually runs two different model versions | Provider documentation, exact version identifiers and any automatic fallback policy |
| You have no saved 3.7 results or access to the original model | Check whether 3.8 meets your requirements, including medium versus high effort | Tasks passing every required check, total cost, elapsed time, reasons for failure and review time |
This routing change is documented for the Gemini API and AI Studio. Another provider may have a different policy. If you cannot establish which model it ran, describe your result as a comparison of that provider's two configurations and record the model version as unknown.
What the published coding-agent results show
The September Gemini 3.8 Flash model card reports the following results. These are historical evaluation scores, including results compiled from public leaderboards, rather than new measurements made for this article.
| Evaluation | 3.8 Flash | 3.7 Flash | Difference |
|---|---|---|---|
| DeepSWE v1.1: long-horizon software engineering | 73.7% | 65.3% | +8.4 percentage points |
| Terminal-Bench 2.1: terminal coding | 89.4% | 85.8% | +3.6 percentage points |
| Terminal-Bench 4.0: general agent capabilities | 19.1% | 11.2% | +7.9 percentage points |
DeepSWE is closest to the repository maintenance decision: its publisher describes 113 original tasks spanning 91 repositories and five languages. Terminal-Bench adds evidence from terminal environments. The three score gaps should stay separate because the tasks and execution setups differ. In particular, a 19.1% completion score leaves most tasks unsolved in that evaluation.
Here, a coding agent is the model plus the software that lets it inspect files, edit code and run commands. That surrounding software is often called the harness. A pass-at-one score counts success from the initial agent attempt, which can contain many tool calls. It does not mean the model solved each task in one response.
Google's 3.8 evaluation methodology describes pass-at-one reporting and a self-computed DeepSWE result using mini-SWE-agent with high thinking. The 3.7 methodology names high thinking and LiteLLM 1.96 for that release's DeepSWE run. These releases were evaluated in different windows. The public leaderboard's best visible configurations also use different effort labels.
Those details support testing 3.8 for difficult repository work. They do not isolate how much improvement came from the checkpoint, effort setting, harness or serving conditions. They also provide no task-level evidence that a particular extra tool call caused a successful repair.
More completed tasks came with more work per run
On the DeepSWE v1.1 leaderboard checked October 17, the page displayed an update date of September 22, 2026. Its visible best Gemini rows were:
| Displayed measure | 3.8 Flash | 3.7 Flash | Calculated change |
|---|---|---|---|
| Effort | High | Medium | Different settings |
| Solve rate | 74% ± 1% | 65% ± 3% | +9 percentage points |
| Average task cost | $2.36 | $2.03 | About +16% |
| Average output tokens | 143K | 94K | About +52% |
| Average agent steps | 166 | 117 | About +42% |
These averages describe whole agent runs. They cannot tell you how many steps your lint repair will need. Output tokens accumulate across multiple responses; the total can exceed a single response's output limit.
Dividing average task cost by solve rate gives a rough benchmark cost per solved task: 2.36 / 0.74 = $3.19 for 3.8 and 2.03 / 0.65 = $3.12 for 3.7. The rounded figures support a close point estimate, with no demonstrated economic winner after uncertainty, review and repair costs.
The displayed ± values describe the reported solve-rate uncertainty, not uncertainty in the bill or review time. The benchmark aggregate also cannot predict latency in your queue. The publisher's v1.1 report explains that it stopped reporting wall-clock time because host performance and provider load make it inconsistent.
What should you change in your coding workflow?
| Your workload | First check with 3.8 | Evidence needed before expanding use |
|---|---|---|
| Small repairs that your old workflow usually completed | Run the same tasks at explicit medium effort. Try low on a separate run if medium exceeds your cost or time budget. | The required behavior still passes, with no unwanted file changes and acceptable review time. |
| A bug or refactor spread across several files | Test callers and related behavior as well as the reported defect. If medium fails, record a separate high-effort attempt. | Additional completed patches justify the total retry cost and any extra review. The public benchmark is a reason to try this, not a promise that it will work. |
| A queue with a strict response-time or spending limit | Measure full task duration and charges, including failures, under the traffic pattern you expect. | Your limits hold for difficult and failed runs as well as the average. The leaderboard supplies no matched latency result for your service. |
There is also little reason to expect more capacity from this particular upgrade. The historical 3.7 model card lists a 1M input context and 64K text output, matching the headline limits of 3.8. The coding results concern how the agent performs within its run, rather than a larger advertised context window.
Which comparison questions are still unanswered?
| Question | What the reviewed evidence can establish | What you would need to measure |
|---|---|---|
| Is 3.8 faster? | The visible configuration used more steps. That does not establish elapsed time. | Time from task submission to a verified patch, with the same environment and limits. |
| Is it cheaper on my work? | The rounded benchmark costs per solved task are close. Different effort settings limit the comparison. | All attempt charges and review time for your own accepted patches. |
| Does it improve my language, framework or frontend? | An aggregate repository score does not answer that specific question. | Representative tasks from that stack, including its build and browser checks where relevant. |
| Can I trust its permission fixes or let it run without review? | A higher completion score does not verify your access rules or deployment requirements. | Allowed and denied cases, checks outside the agent's writable files, and review appropriate to the change. |
Which tasks need which acceptance checks?
Choose tasks from the work you expect the agent to handle. The cases below are proposed test designs, not observed Gemini outcomes. They cover different ways a patch can appear successful while failing the actual request.
A small fix with a precise boundary
Use a defect such as a timeout setting that treats explicit 0 as missing. Write cases for zero, an ordinary positive value, an absent key and the documented fallback. The practice kit includes this defect. Keep the function signature and unrelated settings fixed so a broad rewrite cannot receive credit for changing the requirement.
For repeated maintenance jobs, record how much model work a correct patch consumes. Start the 3.8 evaluation at medium effort, then try a lower setting on the same tasks if cost or latency misses your target. A historical DeepSWE average cannot establish that these small jobs need high effort.
A permission bug that crosses files
An authorization test should include an allowed owner, an allowed administrator and denied users from another tenant. Also test inactive accounts. Exercise the policy helper and the API entry point: fixing the helper alone can leave a controller bypass intact.
The supplied authorization fixture deliberately has defects in both files. Acceptance requires the full access matrix to pass. Reject a repair that grants every administrator access across tenant boundaries, even if the original owner's request now succeeds. This is a useful check of whether the agent follows a rule across callers.
A local example shows why both files matter. We repaired policy.py while deliberately leaving this shortcut in api.py:
if actor["role"] == "admin":
return 200
The reviewer ran seven tests and rejected two cases: an administrator from another tenant and an inactive administrator could still read the document. After repairing both files, the same seven tests passed. These are constructed editorial patches, not Gemini outputs. The example demonstrates what a useful verifier catches; it does not show which model would produce the repair.
A configuration change with precedence rules
Give the agent defaults, a file configuration and command-line overrides. State the order explicitly: command line overrides file, and file overrides defaults. If nested settings must survive, include an override that changes one nested field while preserving its sibling. Check that the merge leaves the input dictionaries unchanged.
A shallow merge can pass an example that contains only flat settings. The kit's merge fixture adds nested values and mutation checks. In a real application, add the loader and startup path so the test covers how configuration reaches the running service.
A retry fix with side effects
Use a fake transport with a counted sequence of responses. Define which operations may be retried and which exception is transient. A timeout on an idempotent read can allow another attempt under the task's policy; a permission error should stop. A write without retry permission must not be repeated automatically.
Check both the returned value and the operation count. A result that eventually succeeds after duplicating a write fails the requirement. The kit uses local fake calls and no network, billing system or real customer data.
A dependency or framework migration
Include the dependency lockfile, one removed API, and a build or type-check command that exposes the incompatibility. Define whether dependency changes are allowed. After the patch, reinstall in a clean environment and run the supported command again. Record any network requirement before execution so a package download failure has a clear category.
Separate an unavailable package service from code that calls the wrong API. Both can block delivery, but only the latter directly demonstrates an implementation error. A migration that compiles while silently changing a public return type also needs a contract test.
A frontend repair
Use a small browser task with visible acceptance conditions: keyboard access, a working submit path, error text that appears beside the correct field, and a layout that fits the delivery viewport. Retain screenshots and interaction results. Repository and terminal scores provide no direct answer about the visual quality of a particular page.
Check behavior after a failed submission as well as the initial screen. A screenshot can show an attractive form while missing the failure state that motivated the ticket. Keep asset and copy changes within the allowed scope.
A repository with flaky tests or missing tools
Run the verifier on the untouched baseline first. Save its known failures, executable paths and installed versions. If the test sometimes fails before any patch, decide whether to repair or exclude that task before comparing configurations. A retry that turns a flaky suite green should not become an extra accepted patch.
For a missing command, state whether an alternative runner is allowed. The agent should report the blocked check and preserve its work when no permitted runner exists. Count that as incomplete delivery under an operational score, and separately record the environment cause.
A long task with a timeout or exhausted budget
Define a wall-clock limit and a total run budget in addition to a per-response output limit. Save intermediate diffs and test outputs. When a run stops, classify whether the patch was rejected, unfinished or unverified. A timeout with useful partial work still needs a separate follow-up attempt.
Review repeated tool actions. One rerun after a file change can be useful; repeated identical commands with the same failure and no new inspection consume budget without resolving it. Pick a stopping rule before the run. For example, stop after three identical failed actions without a relevant state change. That is a proposed operating limit to tune, not a Gemini product limit.
Run the local practice kit before testing a private repository
The Gemini Flash coding-agent review kit contains four deliberately broken Python exercises, separate reviewer verifiers, task briefs and a blank JSON run record. It uses the Python standard library. The exercises check acceptance logic and trace collection; their size does not reproduce DeepSWE's long-horizon difficulty.
Extract it and run this from the kit directory:
python3 reviewer/verify.py zero cases/zero
python3 reviewer/verify.py authorization cases/authorization
python3 reviewer/verify.py merge cases/merge
python3 reviewer/verify.py retry cases/retry
Each untouched exercise should exit with status 1 and at least one assertion failure. The test names show which behaviors were inspected. An import error or missing interpreter is a setup failure, not the intended baseline defect. The retained self-check record distinguishes the broken baseline from a separately repaired editorial control. Neither is a Gemini result.
- Copy one
cases/<task>directory into a fresh agent workspace. Give the agent that directory and its matching brief frombriefs/. Keepreviewer/outside the writable workspace. - Save the workspace's starting hash or commit. Run the agent with a fixed model route, effort, timeout and tool policy. Retain its raw trace and proposed patch.
- After it stops, run the corresponding verifier against the resulting workspace. For example:
python3 reviewer/verify.py authorization /path/to/agent-workspace. The path must point to the directory containingpolicy.pyandapi.py. - Inspect the diff for scope and maintainability, then complete
run-record.template.json. Leave unavailable model or billing metadata asnull. A missing measurement is not zero.
Keep the reviewer files outside the agent's writable workspace. The verifier executes candidate Python code, so run untrusted patches in a disposable environment without credentials. Separate folders alone do not provide isolation. For a real repository test, apply the patch to a clean verifier environment and check that every expected test ran. DeepSWE v1.1 likewise grades committed code in a separate environment.
Prepare a repeatable test on your own repository
After the practice checks, choose a pilot of actual maintenance tasks. Include short fixes, changes spread across files and failures your previous agent could not recover from. Cover the work you intend to assign, rather than choosing only easy examples. A small pilot helps locate regressions and estimate operating cost; it provides limited evidence about performance on other tasks.
For each task, save the base commit, dependency image or lockfiles, original instructions, allowed edit paths and expected behavior. Write the acceptance checks before seeing the candidate output. If human readability matters, specify what reviewers reject, such as unnecessary public API changes or unrelated rewrites.
Task: <one observable repository behavior>
Base commit: <exact commit>
Allowed edits: <paths>
Protected files: <paths, including reviewer tests>
Required behavior: <allowed and denied cases>
Public smoke command: <exact command and working directory>
Reviewer checks: <test inventory held outside the workspace>
Budget: <seconds, steps, dollars or recorded token cap>
Stop behavior: preserve diff and report unverified checks
Final report: changed paths, commands, exit codes, unresolved failures
Match the repository commit, harness revision, instructions, tools, network access and limits when comparing available configurations. Use fresh workspaces and interleave run order so a temporary service slowdown does not affect only one group. Record any human hint during the run as intervention; it changes the attempt you are measuring.
For a historical 3.7 baseline, disclose the date gap and environment changes beside the result. Re-running an old 3.7 patch in today's verifier can check that patch's behavior. It cannot recreate how the old model would act today. A rollback to the old request string also cannot recover a checkpoint that the service now redirects.
Choose thinking effort and preserve the tool loop
The current 3.8 model specification lists a 1,048,576-token input limit, a 65,536-token output limit, and low, medium and high thinking. minimal is unsupported. Google's 3.8 migration guide names medium as the default.
Effort is the model's thinking setting, not the number of tool calls it is allowed to make. Set it explicitly in your agent software. Start at medium and decide before testing when a failure may receive a second attempt at high. Report initial success separately from success after that retry. If you change both the settings and time budget, describe the result as a comparison of complete workflows.
When a multi-turn tool integration fails, inspect the adapter before drawing a model-quality conclusion. The migration guide calls for preserving thought signatures across tool interactions. Use the supported SDK or your adapter's documented preservation mechanism; reconstructing messages from only visible text can discard required state. A first-turn response followed by a tool-continuation failure is a different problem from a valid loop that produces a wrong patch.
A larger context window also does not ensure that the agent found the right files. Record what it read, any truncation or compaction, and which tests it ran. If it missed a sibling caller in the authorization task, add a case that exposes that omission; increasing the context allowance alone does not verify the fix.
Calculate the cost of accepted work
The Gemini API pricing table checked October 17 lists 3.8 Flash Standard paid rates of $0.75 per million input tokens and $3.75 per million output tokens through December 31, 2026. The scheduled January 1, 2027 rates are $1.50 and $7.50. Output pricing includes thinking tokens. These are Standard rates; cache, tools and other consumption options need their own billing treatment.
Prefer measured request charges when available. If you estimate from usage, separate uncached input, cached input, billable output and any additional charges. Check whether your output counter already includes thinking before adding another thinking counter. Do not price the leaderboard's output-token total as if it were the entire bill.
Model cost per accepted patch =
total model charges for all attempts / accepted patches
Operating cost per accepted patch =
(model charges + execution costs + review and repair labor)
/ accepted patches
Include failed attempts and escalation in the numerator, and count each accepted delivery once. A timed-out run still needs a completed accounting record with accepted: false. If no patch is accepted, the ratio is undefined. The kit's summarize_runs.py also leaves cost ratios undefined when any supplied record is incomplete, and rejects mixed evaluation groups or duplicate accepted deliveries. Include every scheduled attempt; the helper cannot detect an omitted run.
For an illustrative budget calculation, suppose 20 tasks cost $40 and yield 12 accepted patches. Model cost per accepted patch is $3.33. Another configuration costing $46 with 15 accepted patches comes to $3.07. These invented accounting inputs explain the formula and are not Gemini measurements.
The second configuration saves about $0.27 per accepted patch on those assumptions. At a chosen labor rate of $60 per hour, one extra minute of required review costs $1. That small difference in review effort would reverse the model-only saving. Measure review time and report the labor-rate assumption, especially when a longer trace produces a larger diff.
Record failures precisely enough to decide what to change
| Observed result | Evidence to retain | Next action |
|---|---|---|
| A symptom is fixed but another access path breaks | Allowed/denied matrix, patch and failing caller | Reject the patch; add the missed behavior to the task's checks |
| The agent's command is green but reviewer checks fail | Both commands, exit codes and complete test inventories | Check skipped tests, changed fixtures or altered test configuration |
| A loop times out or reaches its budget | Last diff, last useful observation, elapsed time and spend | Keep it incomplete; run any escalation as a separately recorded attempt |
| The test cannot start | Interpreter, dependency and permission errors before and after the patch | Resolve or classify the environment block before attributing model failure |
| Requests use the old name but serving identity is unclear | Endpoint, date, model metadata and routing policy | Remove the checkpoint A/B claim; retain the route compatibility result |
| The patch passes once and fails on a clean rerun | Fresh-run output and state differences | Investigate shared state, ordering or nondeterminism before accepting it |
Report how many scheduled tasks produced an accepted patch. Separately show code correctness on tasks whose tests could actually run. For example, a missing dependency may explain an incomplete task, but the user still did not receive a verified fix. Keep the blocked task visible in the overall delivery count.
Set the release decision before running the pilot
Use the repository's existing requirements to set maximum cost, maximum elapsed time, allowed scope and minimum accepted behavior. Treat a permission bypass or verifier change as a rejection even if the aggregate score rises. If results differ by workload, apply separate budgets to short fixes and difficult repository changes.
For current Gemini API users, evaluate 3.8 explicitly and keep the working configuration versioned. Route short jobs with the least effort that passes your checks; allow a recorded escalation for harder work. If a candidate misses the acceptance budget, fall back to a known working configuration, another verified available model or human handling. The old 3.7 string is not a checkpoint rollback.
Before increasing traffic, save the exact configuration, accepted and rejected patches, reviewer outputs, total spend and rollback destination. Repeat the checks after changing the harness or provider route, because those changes can alter the workflow even when the requested model name stays the same.
