Commit Graph
3 Commits
Author SHA1 Message Date
faabandClaude Opus 5.5 ac35e3ff2c Add CLAUDE.md
Commands, the isolated headless-server test setup, and the architecture
that spans the mod, MCP server and /ask helper: UDP request flow and
chunking, deferred replies, multiplayer determinism, the read-only
contract, Lua-to-JSON quirks and the token-budget conventions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:44:52 +01:00
faabandClaude Opus 5.5 c5b2f6d603 Harden /ask helper, UDP replies and run_lua in multiplayer
- Pass the /ask question to claude on stdin so it can't be parsed as a CLI option.
- Block run_lua in multiplayer unless an admin enables the new
  "Allow Lua queries in multiplayer" map setting.
- Ignore UDP packets that don't come from the game's port, in both the
  MCP server and the ask helper.
- Build the screenshot path from our own name instead of the game's reply,
  and restrict screenshot names in the mod.
- Validate ask packets, cap question length and limit concurrent claude runs.
- Replace hard-coded home paths in the README and systemd unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:40:39 +01:00
faabandClaude Opus 5.5 1a5cc7426e Initial commit: Claude Co-Engineer
A Factorio 2.x mod plus MCP server that lets Claude answer questions about
a running game over Lua UDP, without RCON, so it works in singleplayer.

- Read-only tools: overview, problems, entities, production, power, trends,
  research, recipes, ratio calculator, belt tracer, screenshots, Lua queries
- In-game highlights with clickable [gps] links
- /ask chat command answered by a local helper running claude -p, with a
  per-player model setting and a systemd user service

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:28:44 +01:00