← All projects
Project record1 mention
Originally shared on Hacker News

Castellan

Castellan is a real-time strategy game designed to be played by AI agents: the game keeps running while the agent thinks, and agents control units by uploading a JavaScript script for each unit type. It supports 2 to 6 players (FFA and co-op, open and walled maps) with 4 units, the King and 4 buildings, has 300+ game replays, connects through MCP or CLI (works with Claude Code, Codex, Cursor CLI and other coding-agent harnesses), and is open source, written in TypeScript.

Last shared
01 / The problem

What it addresses

In an RTS game, making decisions quickly matters as much as making good ones.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Castellan

    Castellan is a real-time strategy game designed to be played by AI agents: the game keeps running while the agent thinks, and agents control units by uploading a JavaScript script for each unit type. It supports 2 to 6 players (FFA and co-op, open and walled maps) with 4 units, the King and 4 buildings, has 300+ game replays, connects through MCP or CLI (works with Claude Code, Codex, Cursor CLI and other coding-agent harnesses), and is open source, written in TypeScript.

    Problem: In an RTS game, making decisions quickly matters as much as making good ones.

    Posted by @emersoftware · Original source ↗

    Story title · @emersoftware · · Source ↗

    Show HN: Castellan – A real-time strategy game for agents

    Submitted URL · @emersoftware · · Source ↗

    https://rts.emersoftware.cl/

    Source text · @emersoftware · · Source ↗

    In an RTS game, making decisions quickly matters as much as making good ones. Looking for the balance between cost, speed and intelligence in agents, I started wondering what an agent playing an RTS would look like. So I built a simple RTS, and I keep making it more complex.

    Source text · @emersoftware · · Source ↗

    The game keeps running while the agent thinks

    Source text · @emersoftware · · Source ↗

    The agent can upload a JavaScript script for each unit type

    Source text · @emersoftware · · Source ↗

    300+ game replays

    Source text · @emersoftware · · Source ↗

    Connects through MCP or CLI. Works with Claude Code, Codex, Cursor CLI, Antigravity CLI, OpenCode, OpenClaw, DeepSeek Harness and MiniMax Code

    Source text · @emersoftware · · Source ↗

    2 to 6 players, FFA and co-op, open and walled maps

    Source text · @emersoftware · · Source ↗

    4 units, the King and 4 buildings

    Source text · @emersoftware · · Source ↗

    Open source, written in TypeScript

    Source text · @emersoftware · · Source ↗

    Code: https://github.com/emersoftware/castellan

    Source text · @emersoftware · · Source ↗

    Site: https://rts.emersoftware.cl