I’ve been developing Spearhead AI, a community opponent for OpenRA Red Alert, with Codex assisting with implementation.
Latest version: v0.6.0-preview
Download Spearhead AI v0.6.0-preview — Windows installer
Extract the ZIP, then double-click Install and Start Spearhead.cmd. This installs the bot and opens normal OpenRA Red Alert. Create a skirmish and choose Spearhead AI from the bot list. The original bots remain available.
Requires OpenRA release-20250330 on Windows, with the Red Alert assets installed. An uninstaller and the corresponding source code are included.
Scouting and information
Spearhead’s custom combat planning uses scouting, remembered enemy sightings and normal GPS satellite information. Reducing reliance on hidden information is a design goal; a complete audit of every inherited module is still pending. It uses programmed decision rules, not a live AI service or a model that trains during matches.
New in v0.6.0-preview — 19 October 2026
- Persistent ground-map exploration, with a separate scout continuing to investigate a discovered enemy base.
- Soviet Yak/MiG reconnaissance uses available idle aircraft, avoids known bases/AA, returns for service and stops after a scout aircraft is lost. Buying extra aircraft specifically for scouting remains off.
- Expansion recovery revisits known ore fields and tries alternative sites after failed approaches.
- Priority for a naval yard when safely reachable island oil clusters are known and a legal coastal construction site and funds exist.
- Landing craft can deliver two engineers to separate known derricks on the same island, with a bounded wait and a one-engineer fallback.
- Economic nuke-silo construction fixes the defence-queue filter: native technology/power, recent income, silo cost plus a 2,000-credit buffer, and recovery/threat checks. Prevents duplicate silos.
Historical benchmark published with v0.3.1: 31 wins / 9 losses (77.5%).
New frozen v0.6 development build: 39 wins / 1 loss (97.5%), no timeouts or errors. That is eight more wins and 20 percentage points on this schedule.
- Rush: 5/5 historical W/L → 10/0 new.
- Normal: 7/3 → 9/1.
- Turtle: 9/1 → 10/0.
- Naval: 10/0 → 10/0.
New average simulated duration: 20:47; median 18:33. Exact ticks, game time and wall-clock time are included in the release benchmark CSVs for future comparisons. The only loss was Normal on Warwind at 6:05.
The 39/40 build predates the later nuke construction fix. That fix passed five directed validations, including native Allied/Soviet silo construction and income/tech/power/budget/duplicate checks. The complete benchmark was not repeated on the exact packaged DLL. Island transport improvements have controlled delivery/income evidence; the dedicated ground-scouting A/B series was not completed. All six separate review experiments remain disabled.
Full feature history
Added or further improved in v0.5.0-preview
- Support powers using known information: spy planes, paradrops, bombing runs and nuclear strikes are planned using scouting and remembered contacts, with friendly-fire estimates. Hidden enemy bases are not supplied as targeting information.
- Power management: temporarily switches off less urgent eligible buildings during shortages and restores them when power permits.
- Persistent attacks: committed attacks survive strategy changes, with a 15% remaining-force threshold and emergency defence handling.
- Bombardment under fog: artillery, cruisers and missile submarines can fire at remembered enemy building positions where their weapons permit ground fire.
- Oil-capture funding: engineer funding counts available cash and ore, with production priority to help complete worthwhile captures.
- Continued expansion: removes the fixed three-construction-yard ceiling while retaining resource, route and placement checks.
- Bridge access: engineers can repair useful bridges when the expected benefit justifies it, with corrections to bridge and route handling.
- Island invasion forces: continues producing ground troops for landings and island defence.
- More reliable task ownership: temporarily separated artillery cannot be added back to its former group after receiving a new assignment, preventing duplicate group ownership.
- Earlier scouting and capture opportunities: early barracks priority when power allows, an opening pair of infantry scouts, checks of possible enemy starting positions and an early engineer investment for a safely discovered oil derrick.
- Resource-aware refinery placement: considers separate known ore fields and whether existing refineries already serve them, making underserved fields more attractive.
- Crate collection: eligible scouts can collect discovered, reachable crates when crates are enabled.
- MCV deployment recovery: nearby friendly vehicles are moved out of the deployment area, and received MCVs without a construction yard can look for a reachable place to establish a base.
- Construction-yard evacuation: a critically damaged yard under attack can pack up and try to relocate when a suitable escape is available.
- Economic recovery: can pause spending and sell nonessential buildings to restore a refinery when the economy has collapsed, while preserving essential base infrastructure.
- Engineer approach recovery: retries stalled capture approaches and pauses repeatedly unsuccessful targets rather than remaining stuck indefinitely.
- More consistent attack assembly: clears outdated flank instructions when a group finishes gathering, reducing orders that send units backwards again.
- Combined assaults: nearby eligible forces can be gathered for a concentrated attack against known blocking defences when the combat assessment supports it.
- Fighting withdrawals: considers whether escape is plausible, shooting opportunities and short retreat steps. Units can keep fighting when retreat would offer no meaningful chance of escape, instead of only moving under fire.
- Adaptive island strategy: prioritises marine forces and air transport when known enemy bases cannot be reached over land, keeping a ground force for defence and landings. Enemy units alone do not cancel this strategy; a known enemy building on an island containing our base restores the land focus.
- Parallel amphibious and air transport: multiple transport ships and Chinooks can operate separate missions at the same time.
- Landing outside enemy bases: Chinooks can use explored landing sites with ground access to the objective, taking known anti-air threats into account.
- Island oil derricks: dedicated missions can deliver an engineer without sending an entire combat force.
- Better carrier use: empty hovering Chinooks are reused, busy carriers are left on their current mission, and unnecessary replacement requests are avoided. Unarmed transports stay out of combat squads.
- More reliable deliveries: collecting troops, crossing the water, unloading and returning have separate time budgets, so slow boarding no longer cuts a voyage short.
- Persistent scouting, small harassment groups and opportunities to approach weaker flanks.
- Attack decisions based on available forces, suitable weapons, known resistance and route assessment.
- Coordination with nearby friendly groups and regrouping after rejected attacks.
- MCV expansion, expansion funding, rebuilding after losing a forward base and MCV escorts.
- Defence of threatened economic bases and support for threatened allies.
- Threat-aware defensive building placement, with attention to exposed expansions, useful approaches and chokepoints.
- Safer placement of valuable technology buildings.
- Neutral-building capture with reachability and threat checks, prioritising income-generating buildings when feasible.
- Experimental APC engineer raids and interception of enemy engineers threatening important buildings.
- Local target selection based on weapon effectiveness and protection of valuable wounded veterans.
- Aircraft rearming and reactive anti-air defence.
- Naval access checks, coastal bombardment and escort support.
Close OpenRA before updating. The installer creates the plugin folder and registers it with a manifest backup; standard unit and weapon files are not replaced. All participants need compatible installations. This is a preview; independent-PC and multiplayer verification remain pending.
Included map
Bay of Pigs — Coastal Artillery, introduced with v0.3.1-preview, includes large coastal guns with five-man garrisons, extended flank bridges and revised road textures. Its custom units and weapons are local to that map; standard maps keep their original unit and weapon rules.
Version history
- v0.1.0 — Expansion recovery: the earlier development revision focused on expansion and recovery.
- v0.2.0 — Economy and defence: further economic decisions and protection of threatened expansions.
- v0.3.0-preview — Expanded early scouting: more early exploration by eligible idle units and recall when threats appear.
- v0.3.1-preview — Installation and map package: installation into the normal Red Alert bot list, an uninstaller and the optional coastal-artillery map.
- v0.4.0-preview — Island warfare and recovery improvements: the additions and refinements listed above, including the corrected hovering-Chinook selection.
- v0.5.0-preview — Support powers, expansion and combat reliability: known-information support powers, power management, persistent attacks, memory bombardment, oil funding, continued expansion, bridge repairs and the task-ownership correction.
Previous v0.3.1-preview release and its original description
Previous v0.4.0-preview release and its original description
Previous v0.5.0-preview release notes
Current v0.6.0-preview release notes and benchmark data
Feedback is welcome! Please include your OpenRA version, map, factions, opponent and a replay when possible.