English | 简体中文
Specialist AI agents for sustained empire governance in Stellaris.
OGAS connects game-state observation, domain-specific agents, persistent plans, and guarded execution. The aim is an AI partner that can keep governing an empire over a campaign, explain its decisions, and demonstrate what actually happened, rather than merely suggest actions in a chat window.
Current version: v0.6.0-alpha.1 (0.6.0a1 in Python). This is a source
alpha and research checkpoint, not a turnkey release for the latest game.
There are no new installers or GitHub Release assets for this tag.
| Area | Implemented capabilities | Important boundary |
|---|---|---|
| Economy and construction | Read colonies, generate legal construction candidates, plan buildings/districts/zones and reserve spending | Execution is limited to reviewed actions and supported game builds |
| Research | Separate research agent, current tasks and alternatives, prepare/execute workflow and evidence tracking | Native legality tests do not prove actual technology selection |
| Fleets and expansion | Fleet permissions, movement/combat planning, repair/upgrade, civilian automation, colonization, starbases, ship designs and reinforcement workflows | Coverage varies by backend and exact build; captured commands are not automatically enabled tools |
| Long-term coordination | Private application histories, persistent plan books, local fact checks, bounded replanning and deterministic save continuations | Side effects are serialized; ordered sequences do not promise rollback |
| Player interaction | Web console and optional Qt overlay with application-specific conversations | Native in-game chat is a separate, build-specific research prototype |
| Native execution research | Typed action modules, game-thread command construction, native IsValid, session submission and postcondition interfaces |
Current 4.5.2 native actions remain gated pending execution evidence |
| SDK and performance research | Linux symbol/serializer recovery, Windows matching, candidate planning, batch legality probes, long-running Observe capture and CPU flame graphs | Discovery, offline construction, legality and execution are separate evidence levels |
Economy, research and fleet agents have separate tools, histories and model
bindings. They share observations and execution safeguards, not unrestricted
authority over one another. etc stages unclassified capabilities; it is not
an autonomous catch-all agent.
Autonomous governance of multiple AI empires, including games alongside human players, is a development direction. Observer-country experiments establish parts of that route, not a finished multi-empire product.
flowchart LR
S[Save / reviewed runtime queries] --> O[World snapshot and domain candidates]
O --> A[Specialist agents and persistent plans]
A --> B[Execution Broker / semantic actions]
B --> P[Session Proxy / Carrier Click]
B --> N[Native Runtime]
D[Version-bound SDK recovery] --> N
N --> C[CGameIdler: construct / IsValid / PostCommandToSession]
P --> G[Stellaris authoritative processing]
C --> G
G --> V[Action-specific evidence / later save]
V --> A
Applications express intent, not opcodes, packet framing or hook addresses. The Broker checks contracts, capabilities, authority, candidates and snapshot freshness. Native backends reuse the game's command/session pipeline; Session Proxy and Carrier Click retain their separate verified transport logic. Some economy/fleet callers still have explicitly allowlisted legacy dependencies during the Broker migration.
The engineering choices are concrete: strict targets and bounded candidates;
exact binary fingerprints and SDK metadata; execution on the game thread;
resource reservations; correlated request identities; persistent plans; and
confirmation from backend evidence or a subsequent save. IsValid=true alone
never means an action executed successfully.
- Historical execution evidence: Stellaris 4.4.6 has recorded Session Proxy, Carrier Click and selected Linux/Windows native execution trials. Results do not automatically transfer to 4.5.2 or every mod.
- 4.5.2 native legality research: documented cumulative Linux trials
constructed 310 distinct Command classes, populated and called
IsValidfor 174, and found a true candidate for 105. These were non-submitting probes, not 105 production actions. - Offline recovery: the catalog contains 351 Linux Commands. The latest coordinate/constraint codec preflight accepts 166 types / 2,548 candidate plans. Neither number describes live execution coverage.
- Still experimental: current-build native execution admission, complete Broker migration, broader legal-parameter generation, mod rule interpretation and general multi-empire governance.
Read the alpha notes, 4.5.2 acceptance record and research evidence access guide. The archive distinguishes public originals, redacted derivatives and withheld originals. Missing provenance is marked unknown, not reconstructed as fact. The independent evidence repository provides signed indexes, original hashes and 13,584 downloadable research paths; restricted game/private inputs are explicitly identified, not redistributed.
Use Python 3.11+ and your own legal Stellaris installation. Game binaries, saves, private configuration and credentials are not included.
git clone https://github.com/V2t-Nostalgia/OGAS.git
cd OGAS
python -m venv .venv
# Activate .venv for your shell, then:
python -m pip install -e .
python -m apps.control_center.web_console --help
python scripts/validation/run_tests.py --quietStart with Development, then the
control console and
host bridge. Linux packet support requires system
dependencies; read the deployment notes before installation. The optional
overlay uses python -m pip install -e ".[overlay]" and
python -m apps.game_overlay.main --preview.
Do not load a native probe just to explore the source. Exact game version, platform, verification level and a separately authorized disposable session are prerequisites for live research. Never replay a historical capture into another session.
- Architecture and Execution Broker
- Native Runtime and action contributions
- SDK recovery and candidate research
- Observe and profiling
- File index, contribution guide, security policy
Independent audits, reproducible bug reports and better automated recovery methods are welcome, including findings that contradict existing conclusions.
Code is GPL-3.0-only; original documentation is CC-BY-SA-4.0. Third-party MIT components retain their notices. See NOTICE, LICENSES, DCO and origin. OGAS is unofficial and is not endorsed by Paradox Interactive or other named vendors.
The project was previously named Imperial Auto Governor. Stable iag
imports, protocol identifiers and configuration locations are intentionally
retained. The detailed
v0.5.10 overview
and version notes remain historical references.