<!-- Canonical page: https://reversedwithai.com/p/age-of-empires-ii-genie-engine -->
Canonical page: https://reversedwithai.com/p/age-of-empires-ii-genie-engine

# Genie: Reimplementing the Age of Empires II DE Engine

> Claude-assisted reconstruction of game simulation behavior and file formats.

A work-in-progress deterministic Rust reimplementation of the Age of Empires II: Definitive Edition engine, with readers and writers for the game’s formats.

## Key facts

- Target: Age of Empires II: Definitive Edition engine and formats
- Category: Games and mods
- Platform: Rust library
- Models: Claude Opus 5.5
- Tools: Rust, Engine reimplementation, File-format readers and writers
- Outcome: Partial
- Human effort: Mostly AI
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: [librematch](https://github.com/librematch)
- Added: 2026-10-21
- Updated: 2026-10-21
- Sources reviewed: 2026-10-21 (editor)

## What was done

Genie is a work-in-progress Rust reimplementation of the Age of Empires II: Definitive Edition simulation engine. It also provides readers and writers for game file formats. The project aims to give replay viewers, analysis tools and modding software a shared implementation of the game’s rules, so each tool no longer needs its own partial copy.

### What the project is building

The repository separates a deterministic simulation core from presentation and platform adapters. Its intended uses include replaying recorded games, inspecting game state, analyzing matches and running headless simulations. The README describes the engine as work in progress and says its behavior is checked against recorded games as implementation continues.

### AI contribution

Claude Opus 5.5 co-authored commits implementing game behaviors such as unit movement, gathering, construction completion, attacks and state transitions. These changes implement the engine’s rules directly. The project’s engine crates are licensed under AGPL-3.0; the repository’s NOTICE describes crate origins and licenses.

## What the commit history shows

1,650 of 1,865 commits in the public repository credit an AI, over 30 days between 2026-10-15 and 2026-11-15. Credited: Claude Opus 5.5 (1,551), Claude Sonnet 5.5 (54), Claude Sonnet 5 (44), Claude Opus 4.8 (1).

Measured by this site from public git history.

## Questions about Age of Empires II: Definitive Edition engine and formats

### What is the Age of Empires II: Definitive Edition engine and formats project?

A work-in-progress deterministic Rust reimplementation of the Age of Empires II: Definitive Edition engine, with readers and writers for the game’s formats. It is listed under Games and mods for Rust library.

### Which AI model was used on Age of Empires II: Definitive Edition engine and formats?

The entry names Claude Opus 5.5. The tools named alongside are Rust, Engine reimplementation and File-format readers and writers.

### Did the AI reverse engineering of Age of Empires II: Definitive Edition engine and formats work?

Its author reports that it partly works. Human effort: mostly ai. Checks recorded: source available yes, repro steps yes.

### Is the source code for Age of Empires II: Definitive Edition engine and formats available?

Yes. The code, patches or tooling are public: https://github.com/librematch/genie. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/librematch/genie)
- [Write-up](https://github.com/librematch/genie)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: librematch (2026). Genie: Reimplementing the Age of Empires II DE Engine. Reversed with AI. https://reversedwithai.com/p/age-of-empires-ii-genie-engine
