Recommended Free Tools
For most autonomous coding agents, start with gemini-3.8-flash at MEDIUM thinking effort. Try LOW for routine, latency-sensitive work and reserve HIGH for difficult, multi-step tasks where more planning may help. Build retries, alternate-tool routing, and provider fallback into your agent’s orchestration layer: Google’s documentation describes tool calling, but does not establish a universal model-native tool-fallback switch.
Which thinking level should a coding agent use?
Thinking level controls the model’s reasoning effort; it is not a guarantee of task completion or a substitute for checking the result. Google documents three supported levels for Gemini 3.8 Flash: LOW, MEDIUM, and HIGH. MEDIUM is the default, and Google recommends it for complex code and agentic use cases. MINIMAL is unsupported and returns an error.
As an Amazon Associate I earn from qualifying purchases.
| Level | Documented role | When to consider it in a coding agent |
|---|---|---|
LOW |
Faster responses with lower thinking-token use; intended for latency-sensitive or high-throughput work. | Narrow edits, routine metadata extraction, quick code navigation, or high-volume tasks. Confirm quality on representative work before using it broadly. |
MEDIUM |
Default balance of reasoning and latency; Google recommends it for complex code and agentic use cases. | A sensible starting point for repository tasks involving planning and several tool calls. |
HIGH |
Maximum thinking capacity, aimed at complex prompts, multi-step problem solving, code verification, and multi-turn tool execution. | Difficult debugging, broad refactors, or other work where additional planning may justify added time and token use. |
These are qualitative starting points, not measured guarantees. Google says long, complex work may use more tokens and take smaller reasoning steps, call tools iteratively, and verify work. Lower effort can reduce token consumption for everyday tasks, but the right setting depends on the job and your agent’s success criteria.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Choose by task, then validate by outcome
For a new agent, use MEDIUM as the baseline rather than attempting to infer a universal best setting from the level names. Test LOW on bounded tasks where speed and consumption matter, and test HIGH on tasks whose complexity makes additional reasoning worthwhile. Compare results on the same representative repository tasks, tracking:
#1 Best Overall
- Completion quality after human review, including correctness and regressions.
- Latency and token consumption.
- Tool-call count and whether calls were useful.
- How often the agent recovers from tool errors or returns incomplete work.
Keep the repository, task, tools, and evaluation criteria consistent between runs. Google’s qualitative guidance can help frame the experiment, but it does not establish how any level will perform in your codebase.
How do you configure Gemini 3.8 Flash without breaking the API call?
Use the stable model ID gemini-3.8-flash. Google lists a maximum input of 1,048,576 tokens and a maximum output of 65,536 tokens for the model. Those limits do not mean every platform, request, or agent workflow can use the full context in practice; check the constraints of the API or managed platform you deploy through.
Set thinking_level to one of the supported values in the thinking configuration for the API surface you use. The exact request shape can differ by surface, so follow that surface’s current reference rather than copying a parameter layout from another product.
Remove obsolete or unsupported parameters
For the Google Cloud API, the guide says deprecated temperature, top_k, and top_p are ignored. Passing unsupported frequency_penalty, presence_penalty, or candidate_count causes an API error. Migration guidance says to replace thinking_budget with thinking_level and remove unsupported parameters. This behavior is documented for that Cloud guide; verify the current requirements of your chosen API surface.
Rank #3
Keep the tool-call and response pair intact
Google Cloud requires a FunctionResponse to match the preceding FunctionCall’s id, name, and execution count. Preserve those fields when retrying or routing execution elsewhere. If a function did not run, do not send a fabricated response implying that it did. Distinguish a tool execution error from a valid result, and make the agent’s next action explicit.
Where should tool fallback logic live?
Separate three concerns that are easy to conflate:
- Reasoning effort: The
thinking_levelsetting controls model reasoning effort. It does not define what to do when a tool fails. - Tool protocol: The agent must pair function calls and responses correctly, including the call ID, function name, and execution count required by the Cloud guide.
- Recovery policy: The host agent decides whether an error merits a retry, an alternate tool, a secondary provider, partial output, or a stop.
Google’s official materials cited here describe iterative tool use and response matching, not a universal automatic fallback mode for a failing tool. Treat fallback as an orchestration responsibility unless the particular product surface or framework you use documents and tests a specific behavior.
Rank #4
Make recovery deliberate and observable
Define failure handling for each tool before deployment. A useful policy specifies which failures are retryable, how many attempts are allowed, when an alternate tool is appropriate, and when the agent must stop or return partial work. Record the failure, retry or routing decision, tool outcome, and whether the final answer depends on incomplete evidence. This makes it easier to distinguish model reasoning problems from tool execution or integration failures.
Do not let a silent substitution make the agent claim success on evidence it did not obtain. If a fallback changes the source or scope of information, carry that distinction into the agent’s result. If no permitted route can complete the action safely, return the failure rather than inventing a successful tool response.
Best Value
What do published evaluations tell you—and what do they not?
Google’s September 2026 model card reports the following vendor evaluation results for Gemini 3.8 Flash alongside Gemini 3.7 Flash. They are Google-published benchmark figures, not independent measurements or a forecast for a particular repository.
| Evaluation (published context) | Gemini 3.8 Flash | Gemini 3.7 Flash |
|---|---|---|
| Terminal-bench 2.1, agentic terminal coding (Google DeepMind, 2026) | 89.4% | 85.8% |
| DeepSWE v1.1, long-horizon software engineering (Google DeepMind, 2026) | 73.7% | 65.3% |
| SWE-Bench Pro (Google Cloud, 2026) | 61.6% | 60.4% |
| SWE-Atlas (Google Cloud, 2026) | 51.9% | 48.0% |
| Terminal-bench 4.0, general agent capabilities (Google DeepMind, 2026) | 19.1% | 11.2% |
| OSWorld-2.0 partial score, batch tool enabled (Google DeepMind, 2026) | 59.0% | 50.6% |
Terminal-bench 2.1 figures differ across Google materials: the Cloud guide separately presents 90.8% for Gemini 3.8 Flash and 81.6% for Gemini 3.7 Flash. Those are a separate comparison and should not be combined with the model card’s 89.4% and 85.8% as if they were the same run. Benchmark versions, setups, and methodologies matter. Google’s published results do not establish success on your languages, tools, repository, or acceptance criteria; use your own evaluation and human review.
What operational limits should you plan for?
- Incorrect output: Google DeepMind says the model may hallucinate. Review code changes and validate them with the checks appropriate to your project instead of treating autonomous completion as proof of correctness.
- Latency and timeouts: Google notes the model may occasionally be slow or time out. Make timeout handling and recovery part of the host agent’s policy.
- Knowledge freshness: The model card reports a March 2026 knowledge cutoff and says information in some domains may be limited to January 2025. For current repository state or external facts, use tools that retrieve the needed evidence.
- Computer use: The model page lists computer use as Preview. Do not assume that preview capability is equivalent to a fully stable production tool surface.
- Deployment surface: Google materials list channels including Gemini API, Gemini Enterprise Agent Platform, Google AI Studio, the Gemini app, and Google Antigravity. The right surface depends on the integration and its available tools, authentication, monitoring, region, and current constraints; verify those particulars in the product documentation.
How should you account for token cost?
Google’s Gemini API documentation lists introductory pricing through December 31, 2026, and standard rates beginning January 1, 2027. These rates are time-sensitive and apply to the Gemini API pricing information described here; check the current pricing page and your billing surface before estimating deployment costs.
| Gemini API rate period | Input tokens | Output tokens |
|---|---|---|
| Introductory pricing through December 31, 2026 | $0.75 per 1 million tokens | $3.75 per 1 million tokens |
| Standard rates beginning January 1, 2027 | $1.50 per 1 million tokens | $7.50 per 1 million tokens |
Reasoning effort is only one part of an agent’s token use: long prompts, tool results, and repeated turns also contribute to the workload. Compare cost alongside quality and latency on representative tasks rather than selecting a level from token price alone.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




