Factorio as an idle game: an agent plays it on its own, everyone else watches
- Go 81.6%
- Lua 11.5%
- Nix 6.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The binary trusts the gateway's JWT validation and only asks Pocket ID userinfo for the groups claim, since access tokens carry none. Game tool calls and agent turns go to a harness_log table so the log survives restarts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
| .beads | ||
| cmd/factorioidle | ||
| docs | ||
| internal | ||
| mods | ||
| nix | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
factorioidle
Factorio as an idle game: an agent plays it on its own, everyone else watches.
nixosModules.server is the server it plays on. Every player who joins is a
spectator; the game runs with nobody joined; RCON listens on loopback.
{
inputs.factorioidle.url = "git+https://sarak.sh/mikluko/factorioidle";
# in a NixOS configuration
imports = [ inputs.factorioidle.nixosModules.server ];
services.factorioidle.server = {
enable = true;
rcon.environmentFile = "/run/secrets/factorio/rcon.env"; # RCON_PASSWORD=...
};
}
The host must allow the unfree factorio-headless. Factorio takes the RCON
password only on its command line, so any local user can read it.
nix flake check boots the server in a VM and checks it over RCON.