跳到正文
CuteGuy☣️· 来源· @cutetoxicguy · X·· 1 小时前AI 评分75
正文 · 原文

Ask for 30 red science packs a minute in Factorio chat and an AI teammate can build the line. 🏭

Factorio AI Commander: Space Age is saudademjj's Rust rewrite of an assistant for Factorio 2.1.

You can send goals from in-game chat or connect an MCP client such as Claude Code or Cursor.

The Lua bridge connects the game to the native Rust tools.

🧮 There's a factory planner underneath the chat.

A linear program solves the recipe ratios.

A* routes belts around the machines and other obstacles already on the map.

The planner can work on power, pipes, rails, and defenses as well as production lines.

An engineer can walk over and place machines using inventory items, or the tool can leave construction ghosts.

Space Age support includes multiple planets, space platforms, orbital schedules, and quality loops.

🏷️ You can mark where the assistant is allowed to build.

There are map tags for build zones, prohibited areas, and places to tap existing supplies.

A configurable margin leaves space around player-built structures.

The MCP server exposes 15 tools for reading the base, calculating ratios, planning layouts, and executing builds.

⏱️ On the developer's benchmark, five belt routes through the same obstacle course took 34 ms in Rust versus 982 ms in Python.

The developer reports equivalent layouts for those runs.

The README also puts MCP startup at 157 ms for Rust versus 854 ms for Python.

Peak memory in the reported comparison was 20 MB for the Rust edition and 144 MB for Python.

There's a Windows release bundle with a launcher. Linux users can build it from source.

Both entry points still need the Factorio bridge mod and a configured game connection.

GitHub
https://github.com/saudademjj/factorio-ai-commander-space-age
#Factorio #GameAI #MCP

来源:CuteGuy☣️ · x.com