Screeps AI ArchitectProject breakdown

For Screeps players and bot developers. Choose a controller level, lay out structures and check that paths to resources stay clear in the browser planner.

How it was checked Public version dc21aa2 Discuss a similar project Back to the project
Concept illustration: Screeps AI Architect
An example from the source
Economy, role spawning, construction and defense
Browser check
Plan a room at RCL 4

How we checked Screeps AI Architect

Plan a room at RCL 4

Checked in Chrome dc21aa2

What to do
With RCL 4 selected, run “ПРОКЛАДКА ПЛАНИРОВЩИКА” and download Layout JSON.
What to look for
The JSON lists structures and their coordinates within the 50 × 50 grid.

Scope of this check This check covers the sandbox planner. Bot behaviour requires the Screeps environment.

Checks from the source

  • The bot runs on the official MMO, not a private server

    The telemetry record carries the host screeps.com, shard3, a CPU limit of 20 and an owned room; delivery targets branch 1st of the same host.

    Source docs/merged-from-optimizer/long-horizon-telemetry/screeps.com-shard3.latest.json

  • The colony runs at RCL3 and holds remote corridors

    The pulse at tick 83803479: E26N52 at RCL3, 22 creeps, 333 of 800 energy, and the strategic rooms E26N51, E27N52 and E25N52; the health model grades the harvest cycle, not the instantaneous pool.

    Source Memory.architect.pulse (tick 83803479)

  • The tests exercise the loop outside the game

    test_real_loop.ts drives 3,000 ticks of the real module.exports.loop against the E26N52 fixture and asserts ticksToDowngrade never reaches zero; test_modules_syntax.ts evaluates 88 modules in a vm with mocked globals. No test talks to the game server.

    Source test_real_loop.ts

  • Stall thresholds are pinned in config, not prose

    scripts/invariants.json sets controllerTicksToDowngradeMin to 10000, constructionStallTicks to 300, energyFullnessMin to 0.9 and cpuBucketForGrowth to 5000.

    Source scripts/invariants.json

Implementation progress

Project purposeScreeps AI Architect manages colony workers, resources, construction and defence in the game. Developers can trace an action to its priority in the decision log.

  1. implemented

    Economy, role spawning, construction and defense

    Real spawnCreep and createConstructionSite calls, tower fire and activateSafeMode, and a base planner that picks a centre and places source containers, roads and extensions.

    Source screeps_runtime/modules/dt_planner.js

  2. implemented

    The priority kernel, CPU governor and segment memory

    kernel.js sorts processes with bypass headroom, bucket_governor.js computes an adaptive bucket target and per-category shares, and packer.js works on RawMemory within a 95,000-byte segment limit.

    Source screeps_runtime/modules/kernel.js

  3. implemented

    Remote operations: two corridors in service

    Two of the three corridors are mined live (E26N51 and E27N52); the third (E25N52) awaits scouting: one miner per source, reservers hold the claim, carriers follow the lagging buffer, and the body scales to the actual energy pool. The health check grades the cycle: energy / (2 × WORK) ≤ ticksToRegeneration − 50.

    Source screeps_runtime/modules/remote_logistics.js

  4. partial

    Labs: reactions exist, production does not

    runReaction and processPower are genuine, but chooseFactoryProduct and runFactory return null, refill requests are empty, and no boostCreep call exists in any of the 88 modules.

    Source screeps_runtime/modules/lab_reactor.js

  5. partial

    The portal dashboard

    Eleven screens work, but each calls the bundled Express server and needs a token; it cannot ship as a static site, and the architecture doc is generated from a registry of module names.

    Source src/App.tsx

  6. illustrative

    The min-cut wall planner and Gantt reservations

    generateMinCutBorders builds a rectangular shell with a radius from 3 to 9: no flow graph, no Ford-Fulkerson and no Dinic; GanttEngine caps tasks at 24 and wipes them, with no actual resource locking.

    Source screeps_runtime/modules/min_cut.js

  7. not implemented

    The market, the inter-shard bus and CI/CD

    findHighlyProfitableDeals always returns null and no market API is called; the bus process runs only under a flag that is never set anywhere; no workflow files were found.

    Source screeps_runtime/modules/market_arbitrage.js

Capabilities & limits

  • The portal requires server routes and a user token. A static deployment cannot provide that workflow.
  • The interface stores the account token in localStorage. Publishing it would expose the token to XSS theft.
  • min_cut builds a rectangular perimeter. market_arbitrage and shard_bus have no market or cross-shard operations. GanttEngine does not lock resources.
  • The escort role is recognised. The spawn target table omits it, so normal spawning cannot create it.
  • v3 is the canonical Git repository. The folder root and base and archive snapshots have no Git history or diffs.
  • The documentation describes a local survival simulator. Reproducing a run requires a configuration and run artifact missing from the repository.

Public version

Public versionOpen the planning sandbox screeps-architect.moonsugar.space

Public build
dc21aa2
Build directory
.

A planner sandbox on a 50×50 room grid: structure limits per controller level, the distance-transform map and source-corridor protection run in the browser, and the log mirrors the real ledger event format with a depth of 18. This is not the game bot: its 88 runtime modules operate inside the Screeps environment and do not run here.

Demo availability is checked at publication. This page does not provide continuous monitoring.

Discuss a similar project

Describe which structures the planner should place and which route must stay clear.

What is in the source

View files and components
  • CANON.md declares screeps-ai-architect v3 canonical; archive, rar and base folders are marked as older snapshots

    Source CANON.md

  • Bot code: 88 modules under screeps_runtime/modules totalling 22,393 lines; the largest is static_creeps.js at 1,773 lines

    Source screeps_runtime/modules

  • There is one tick entry, module.exports.loop in main_entry.js; 22 modules are listed in ORCHESTRA_MODULES as an ownership registry, and 21 kernel.registerProcess call sites create processes with priorities (spawn 98, defense 100, wipe 105, labs 40, trade 30, visuals 20)

    Source screeps_runtime/modules/main_entry.js

  • CPU constants: a default limit of 20, a bucket clamp of 500 to 9500, a target bucket of 9000 on shard3, and cpuMode thresholds at 700, 3500 and 9000

    Source screeps_runtime/modules/bucket_governor.js

  • Code delivery is a POST to /api/user/code on branch 1st with screeps.com as the default host; the latest deploy manifest records 88 files with a sha256 each and version 0.113.149

    Source server.ts

  • The live colony state per the published pulse: one owned room E26N52 at RCL3, 22 creeps, 333 of 800 energy, 14.49 of 20 CPU, bucket 10000, and three strategic corridors E26N51, E27N52 and E25N52

    Source Memory.architect.pulse (tick 83803479)

  • The spawn manages 13 roles with targets and weights: staticHarvester, puller, hauler, upgrader, builder, defender, scout, looter, guard, remoteHarvester, remoteHauler, reserver and claimer

    Source screeps_runtime/modules/spawn_manager.js

  • Checks consist of six tsx scripts (bootstrap, colony simulation, real loop, module syntax, export formats and invariants), one Playwright suite and a single gate (tests + lint + drift + module graph + architecture docs + size ratchet); the repository still holds no CI configuration

    Source test_modules_syntax.ts

MOONSUGAR / AI

AI consultant

Services, budgets and the next step

MOONSUGAR / AI / UAE · English · USD

Ask about services and budgets

The AI assistant can explain services and starting budgets, and help you prepare questions for the founder.

This is AI, not the founder. Answers use the website and may contain mistakes. A person confirms scope, price and timing.

Talk to the founder

The model is DeepSeek V4.1 Flash. OpenRouter and DeepInfra process the text for replies. Questions and replies are stored on the Moonsugar server for up to 30 days and may be read by the site owner. We do not sell conversations. Do not send passwords, credentials, documents, personal data or NDA material. Clear conversation deletes your history on this site. No enquiry is sent automatically.