If you spend any time on tech social media, the discourse around “agentic AI coding” is dominated by enterprise-scale teams boasting about autonomous sweeps over million-token codebases.
For commercial startups with investor runway, a £400 monthly API bill for continuous Claude 3.5 Sonnet or OpenAI reasoning tokens is just a rounding error on engineering payroll.
For me, this is not my job. It is not even a part-time job. It is a hobby.
I build games in the evenings and on weekends. It is a creative haven after a long workday. And nothing kills the joy of a hobby faster than two insidious realities of commercial cloud APIs:
- Surprise Token Bills: A single automated agent getting stuck in a tool-calling retry loop can burn through £25 of frontier reasoning tokens in forty-five minutes.
- Quota Wall Lockouts: Hitting an arbitrary “Rate Limit Exceeded” or “Weekly Token Quota Depleted” right when you finally sit down on a Saturday morning with a hot cup of coffee to work on your game.
To make agentic game development sustainable for solo creators, we need a disciplined economic strategy: the Hybrid Local/Cloud Architecture.
Here is how I use an existing desktop gaming GPU, Ollama, and the Model Context Protocol (MCP) to offload the vast majority of coding workloads, keeping cloud token usage minimal, response times instantaneous, and costs firmly at zero.
The Trap: Feeding the Whole World to Frontier Cloud Models#
The intuitive way people start with AI coding agents is simple: plug your editor into a top-tier frontier model, point it at your repository root, and let it rip.
This works reasonably well for small scripts, but as your Godot project grows, you run into what I call Context Inflation Syndrome:
The Cloud-Only Token Spiral
- The Request: You ask the cloud agent to implement orbital mechanics and build a comprehensive test suite.
- Context Accumulation: Across multiple turns of reading calling scripts, generating implementations, drafting test fixtures, and fixing edge cases, conversation history quickly balloons to 12,000 to 20,000 tokens per turn.
- The Metered Re-send: Because every subsequent turn re-sends the entire accumulated conversation history, even minor tweaks to a formula burn through metered cloud tokens rapidly.
Over an afternoon of iterative prototyping, repeating this multi-turn cycle across several subsystems can easily consume millions of tokens.
Beyond the financial cost, dumping whole-codebase context into an LLM often produces worse code. Models get distracted by unrelated classes, hallucinate deprecated Godot 3 syntax found in older helper files, or over-complicate simple maths problems to match global architecture they did not need to see.
The Gamer Advantage: Put Your Idle GPU to Work#
If you play modern PC games, you almost certainly already own the single most valuable asset in modern AI: a dedicated GPU with modern VRAM.
My primary development machine is a laptop running Godot 4 and the Antigravity CLI. Rather than running hot, battery-draining local inference directly on the laptop while simultaneously running Godot playtests, both of my Ollama servers are remote, living on dedicated hardware across my home network:
- Remote Primary Engine (Gaming PC): A desktop PC with a dedicated GPU delivering blistering generation speeds (80-110 tokens per second). Well as blistering as I can get.
- Remote Medium-Context Engine (Mac mini): A headless mac mini providing double the context capacity for larger multi-function classes and longer test suites.
This arrangement keeps my development laptop completely cool, quiet, and responsive, with zero CPU or GPU contention while Godot compiles and runs, while heavy matrix multiplication runs over low-latency Gigabit LAN.

Here is the hardware division across my local network:
| Endpoint / MCP Server | Active Model | Context Window | Relative Speed | Host & Hardware |
|---|---|---|---|---|
ollama-pc | qwen3.5-32k:latest (9B) | 32,768 tokens (32k) | Fastest (80–110 t/s) | Remote PC Nvidia RTX 4070 Ti (12GB) |
ollama-mac | gemma4:12b-it-qat (12B) | 65,536 tokens (64k) | Medium | Remote Mac mini M6 24GB Unified RAM |
Running remotely over the LAN, qwen3.5:9b on the RTX 4070 Ti responds with near-zero latency, zero API metering, and zero internet dependency.
Connecting the Pieces: The Model Context Protocol (MCP)#
To let a frontier cloud agent (the orchestrator) communicate seamlessly with local Ollama instances from my laptop, we use the Model Context Protocol (MCP).
MCP provides a standardized JSON-RPC interface that exposes remote local models as callable tools to the agent. Because both Ollama nodes live on my home LAN, the MCP configuration on my laptop simply routes tool calls to their respective local IP addresses:
{
"mcpServers": {
"ollama-pc": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-ollama"],
"env": {
"OLLAMA_HOST": "http://<PC LOCAL IP>:11434",
"DEFAULT_MODEL": "qwen3.5:9b",
"CONTEXT_WINDOW": "32768"
}
},
"ollama-mac": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-ollama"],
"env": {
"OLLAMA_HOST": "http://<MAC LOCAL IP>:11434",
"DEFAULT_MODEL": "gemma4:12b-it-qat",
"CONTEXT_WINDOW": "65536"
}
}
}
}With this configured, the frontier model does not need to execute every code draft itself. Instead, it acts as a tech lead, dispatching self-contained programming tickets to local workers based on required context and speed.
The Division of Responsibilities#
The secret to making this hybrid setup reliable is establishing strict rules of engagement. You must know exactly what belongs on the cloud and what should be delegated locally:
| Task Category | Assigned Tier | Why Delegate Here? |
|---|---|---|
| Multi-file Architecture & Refactoring | Cloud Frontier | Requires deep holistic reasoning across multiple interconnected nodes, scenes, and global game state. |
| Cross-file Seam Decisions & Tool Calling | Cloud Frontier | Orchestrating workspace tools, editing files on disk, validation, and managing git commits. |
| Pure Maths Recipes & Orbit Calculations | Local PC (ollama-pc) | Self-contained, deterministic, zero repo context required. Instant response with RTX GPU speed. |
| GUT / Unit Test Generation | Local PC (ollama-pc) | Drafting repetitive test fixture permutations, edge cases, and assert statements. |
| Large Classes & Multi-function Scripts | Local Mac (ollama-mac) | Prompts requiring >32k tokens that benefit from the Mac mini’s 64k context capacity. |
| Log & Crash Dump Summarization | Local Mac (ollama-mac) | Ingesting massive 40k–50k token engine debug dumps without blowing cloud context quotas. |
| Custom Shaders (Visual/Text) | Local PC (ollama-pc) | Isolated mathematical algorithms and GLSL/Godot shader code with zero scene dependencies. |
Endpoint Selection Strategy: Speed-First with Context Gating#
To prevent bottlenecks, the orchestrator selects local endpoints strictly in speed order (ollama-pc > ollama-mac), provided the required context size fits within the endpoint’s active context window:
- 1
Tier 1: ollama-pc (Primary / Default)
Criteria: Context required is ≤ 32k tokens.
- Hardware: Dedicated Nvidia RTX 4070 Ti (12GB VRAM) running
qwen3.5:9b. - Use Cases: Rapid function generation, unit tests, shader recipes, maths helpers, boilerplate classes.
- Advantage: Fastest response time (80-110 tokens/sec) on dedicated GPU compute with zero API cost.
- Hardware: Dedicated Nvidia RTX 4070 Ti (12GB VRAM) running
- 2
Tier 2: ollama-mac (Medium-Context Fallback)
Criteria: Context required is > 32k tokens and ≤ 64k tokens.
- Hardware: Mac mini M6 (24GB Unified RAM) running
gemma4:12b-it-qat. - Use Cases: Larger classes, moderately long logs, multi-function scripts, larger test suites.
- Advantage: Double the context window of
ollama-pcwith consistent Apple Silicon throughput.
- Hardware: Mac mini M6 (24GB Unified RAM) running
- 3
Tier 3: Cloud Agent (Frontier Orchestrator)
Criteria: Context exceeds 64k tokens, or tasks requiring multi-file workspace tools and cross-cutting architectural reasoning.
- Role: Tech lead, tool coordinator, whole-project refactoring, and code validation.
- Advantage: Maximum reasoning capacity, reserved exclusively for tasks that justify metered cloud tokens.
A Concrete Example: Delegating Keplerian Orbit Maths#
Let us look at how this plays out during a real development session in Godot 4.
Suppose we need to calculate the vis-viva equation to determine orbital velocity and transfer burn requirements between two celestial bodies.
Of course, the cloud model still needs to inspect the calling architecture (for example, reading celestial_body.gd or orbit_controller.gd) to understand existing coordinate frames and method signatures. That initial file read might take 2,000 to 3,000 tokens of cloud context.
The divergence is what happens next:
- Without delegation: The cloud model generates the class, drafts 10 unit test cases, fixes edge cases, and re-reads the growing conversation thread across multiple turns, consuming 10,000 to 15,000 metered cloud tokens for the full lifecycle.
- With delegation: The cloud model acts as a tech lead. It extracts the isolated mathematical requirement, writes a concise 200-token specification, and delegates the raw code generation and unit test authoring to
ollama-pc.
1. The Cloud Orchestrator’s Delegated Request#
Tool Call: ollama-pc.generate_code
Model: qwen3.5:9b
Prompt:
"Write a pure static GDScript 4.3 helper class named `OrbitalMechanics`.
Requirements:
1. Static function `calculate_orbital_speed(mu: float, r: float, a: float) -> float`
implementing the Vis-Viva equation: v = sqrt(mu * (2/r - 1/a)).
2. Static function `calculate_synodic_period(p1: float, p2: float) -> float`
implementing: 1 / abs(1/p1 - 1/p2). Handle edge case where p1 == p2 (return INF).
3. Include strict static typing and brief Godot docstrings.
4. No external dependencies, no node references."2. The Local GPU Output (~0.8 seconds on RTX 4070 Ti)#
class_name OrbitalMechanics
extends RefCounted
## Calculates the orbital speed of a body using the Vis-Viva equation.
## [param mu]: Standard gravitational parameter (G * M) in m^3/s^2.
## [param r]: Current distance from central body center in meters.
## [param a]: Semi-major axis of the orbit in meters (a > 0 for ellipse).
static func calculate_orbital_speed(mu: float, r: float, a: float) -> float:
assert(r > 0.0, "Orbital radius must be positive.")
assert(a > 0.0, "Semi-major axis must be positive.")
var specific_energy: float = (2.0 / r) - (1.0 / a)
return sqrt(maxf(0.0, mu * specific_energy))
## Calculates the synodic period between two co-planar orbiting bodies.
## [param p1]: Orbital period of body 1 in seconds.
## [param p2]: Orbital period of body 2 in seconds.
static func calculate_synodic_period(p1: float, p2: float) -> float:
if is_equal_approx(p1, p2):
return INF
var freq_diff: float = absf((1.0 / p1) - (1.0 / p2))
if is_zero_approx(freq_diff):
return INF
return 1.0 / freq_diff3. The Integration Step#
The cloud orchestrator receives this clean snippet, reviews the mathematical assertions, and writes it directly to scripts/orbital_mechanics.gd using its local workspace file tool. In a follow-up local prompt, ollama-pc generates 10 exhaustive GUT unit tests in under two seconds.
- Cloud tokens spent: ~2,500 tokens (reading the calling interface once, dispatching the spec, and integrating the final file).
- Local tokens spent: ~2,500 tokens (generating the class, handling edge cases, and drafting unit test fixtures locally for £0.00).
- Net result: Over 70% of metered cloud output generation and conversational retry tokens are offloaded to your local GPU, preserving cloud quotas for high-level systems design.
Why “Context Isolation” Actually Improves Quality#
One of the biggest surprises of this workflow is that local sub-agents often write cleaner code than frontier models when stripped of repo noise.
When you pass an LLM a 40-file context dump, its attention mechanism is diluted across hundreds of irrelevant functions, old architectural remnants, and styling quirks.
By strictly enforcing Context Isolation:
- Zero Hallucination Cross-Talk: The local model cannot pull in obsolete node paths or outdated signal names from other scenes because it never saw them.
- Deterministic Inputs and Outputs: The prompt defines explicit types, inputs, and edge cases, forcing the model to produce mathematically rigorous, decoupled code.
- Instant Automated Unit Tests: Because the generated module is a pure
RefCountedor static class with no engine tree dependencies, a second local prompt can instantly spit out 10 exhaustive GUT unit tests in under two seconds.
Conclusion: Sustainable AI for the Solo Creator#
Agentic AI tools are transforming software engineering, but commercial toolmakers design their pricing models for enterprise software budgets, not weekend game designers.
If you are a solo developer building games for the sheer love of the craft:
- Do not treat frontier cloud models as your only hammer.
- Put your remote home hardware to work. An RTX GPU or headless Mac mini running Ollama over your local network handles 70% of your daily programming needs while keeping your development laptop cool and fast.
- Use MCP to build a hybrid team. Let the expensive frontier model act as the architect who designs the seams, while your local GPU acts as the tireless intern writing pure maths, unit tests, and boilerplate.
You get all the speed and leverage of an agentic workflow, while keeping your monthly API bill as low as possible and your weekend momentum uninterrupted.
What does your local dev setup look like? Have you experimented with Ollama or local LLMs in Godot? Drop a comment below!
