Describe a game in a sentence: Muse-powered AI agents build a playable pixel-art browser game, and you approve every step.
pip install spriteforge==0.1.1 Copy PIP instructions
Describe a game in a sentence. A team of AI agents builds a playable 2D pixel-art browser game, and you approve every step.
SpriteForge runs on your own machine. Muse Spark plans, designs, writes and repairs the game; Muse Image draws and revises its art. Eleven role-based agents carry the game from brief to finished build and pause at five human gates. Each finished game teaches the harness: its lessons go to a local, auditable knowledge base that later builds read once you promote them.
Built for the Meta Global AI Developer Hackathon (Oct 26 - Nov 4, 2026).
Each started as one sentence, went through all five gates, and was played and approved by a human. Every sprite, tile and title picture is Muse Image art or CC0/free-to-use library art.
Gameplay clips: Stormlight Keeper · Pale Shores · Tiny Kingdom Defense
The builds count feedback rounds: Pale Shores took ten because a human playtest found the squads too weak to win, twice, and each round went back through the Director's plan. Two harness checks came out of these games: a HUD check (texts drawn over each other or off the screen fail the playtest) and a tile check (a ground tile drawn as an object on a background is redrawn).
flowchart LR idea(["Your idea"]) --> G1["G1 Brief"] --> G2["G2 Design"] --> G3["G3 Menus"] --> G4["G4 Playtest"] G4 -->|feedback| plan["The Director's plan"] plan -->|you approve it| redo["Only the affected agents redo their part"] redo --> G4 G4 -->|approve| G5["G5 Final"] --> kb[("Knowledge base")] Gate You see What happens before it G1 Brief A short questionnaire for your genre The Director picks one of 11 genre kits and the questions that matter for it G2 Design Research, the game plan, the design (and a story, if you asked), every agent's task list The Game Designer studies similar games with Muse Spark web search, writes a numbered plan that code checks, then the design G3 Menus Every screen of the game and its title art The Menu Designer writes the menus as data; Muse Image draws the title art G4 Playtest A play link, the art sheet, animations, the build report, each agent's report Art comes from the local library or Muse Image; for a side-view game the Level/Tile Designer writes levels that code proves clearable; the Programmer writes Phaser code against a small SDK; a bot plays every level; the QA Playtester's tests run with real key presses; failures go back for repairs; the Art Reviewer (Spark vision) checks the art in the running game G5 Final The whole game, its cost, and the Librarian's lessons Approval exports the game and its full record At any gate, write feedback in plain words ("the slime should jump higher", "the splash is too loud"). The Director splits it into design, art, code, level, menu, sound, story and QA changes and routes each to its agent; only that part is redone. At G4 and G5 its reading is shown first, as a plan: submit it empty to approve, or type what the Director got wrong and it plans again. Nothing is built until you approve.
The Muse features the harness relies on, each verified with live calls (the notes are in src/spriteforge/config.yaml):
Requires Python 3.11+. Node.js is optional (used to syntax-check generated code).
pip install spriteforge python -m playwright install chromium To work on SpriteForge itself, install from a clone instead (this also gets you the tests and the CC0 art packs in assets/library/):
git clone https://github.com/reviver134/spriteforge.git && cd spriteforge python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate pip install -e ".[dev]" python -m playwright install chromium Installed with pip, the art library lives in ~/spriteforge-workspace/library (or the folder SPRITEFORGE_LIBRARY names) and starts empty: add packs with spriteforge library add, or let Muse Image draw everything.
python -m spriteforge start --agents --mock --workspace workspace Live with Muse: put your key in the environment or in a .env file in the folder you start from (in a clone, .env is gitignored), then start without --mock:
echo META_API_KEY=your-key > .env python -m spriteforge start --agents --workspace workspace --goal "a slime that squishes through a cave" The studio opens at http://127.0.0.1:8765 (the previous UI stays at /classic), and python -m spriteforge on its own opens it for every project in the workspace: describe a new game there (without a key it offers the offline mock), and several projects can run at once. It serves localhost only and refuses cross-site requests. Stop the process at any gate and pick up later:
python -m spriteforge runs --workspace workspace python -m spriteforge resume RUN_ID --workspace workspace Without the UI: design, art, code, playtest and repair in one command:
python -m spriteforge game make "a 10 minute top-down survival game" --out out/survival python -m spriteforge game make "a slime arena" --out out/slime --mock What you get Each run lives in workspace/runs/RUN_ID/. A finished game (game/vN/) is a static Phaser 3 site with no build step: open index.html over any static server, or host it anywhere.
In the game: arrows/WASD and Enter, Escape pauses, M toggles sound. ?play=1 skips the title, ?reset=1 clears saved progress.
python -m spriteforge memory --help # search, validate, promote lessons python -m spriteforge memory promote lessons/ --by you # let later games use a lesson python -m spriteforge skills --help # add SKILL.md folders, grant per agent python -m spriteforge mcp --help # add MCP servers, grant per agent python -m spriteforge library --help # local art packs with license tracking Agent roles are Markdown files in src/spriteforge/agents/roles/; built-in skills are in src/spriteforge/skills/builtin/, including seven open-source game-development skills (level design, platformer, puzzle, game feel, physics tuning, audio design, game UI/UX; Apache-2.0) granted to the agents they suit.
In a live build each agent may look things up before it answers (up to game.tool_rounds rounds): the built-in MCP tools its role grants (library.* for the art library, game_db.* for the game's record), its skills (load_skill), and your MCP tools granted to it that you set to run without confirmation. Each lookup shows in the agent's chat. game.agent_tools: false turns this off (one call per answer).
MCP server templates are in src/spriteforge/mcp/templates/. The official fetch server lets agents read public web pages (needs uv; it refuses private and local addresses):
python -m spriteforge mcp add fetch src/spriteforge/mcp/templates/fetch.json python -m spriteforge mcp inspect fetch python -m spriteforge mcp enable fetch --role "Level/Tile Designer" python -m spriteforge mcp policy fetch fetch --no-confirm # builds use only tools that do not ask The Context7 server gives the Programmer the Phaser 3.90 documentation (needs Node.js; the questions go to context7.com; an optional free CONTEXT7_API_KEY raises its limits):
python -m spriteforge mcp add context7 src/spriteforge/mcp/templates/context7.json python -m spriteforge mcp inspect context7 python -m spriteforge mcp enable context7 --role Programmer python -m spriteforge mcp policy context7 resolve-library-id --no-confirm python -m spriteforge mcp policy context7 query-docs --no-confirm python -m spriteforge mcp disable NAME takes a server away again.
src/spriteforge/config.yaml (or your own file with --config) holds the endpoints, the model ids (muse-spark-1.3, muse-image-1.0), the reasoning effort per task and these switches:
src/spriteforge/ agents/ role prompts (Markdown), router, agent runtime app/ FastAPI server, the built studio (static/) and the classic page core/ state (SQLite), gates, cost ledger, secret scrubbing providers/ Muse Spark, Muse Image, web search, and mock providers stages/ the gated workflow: brief, design, menus, playtest, final, rewind game/ design, levels, art, code generation, the game SDK, menus, sounds, QA, export pixel/ deterministic pixel tools: grid detection, palettes, seams, atlases memory/ OKF knowledge base library/ local art packs with license tracking skills/ SKILL.md folders granted per agent mcp/ MCP servers and templates granted per agent ui/ the React studio (Vite, TypeScript); its build is committed to app/static/ tests/ pytest + Playwright, offline docs/ engineering notes: levels, QA code checks, the Sound Director, the studio tools/ live-run, font and art-library helpers Tests python -m pytest -q The tests use mock providers and make no network calls; the browser tests need the Chromium installed above.
The React studio lives in ui/ (Vite, React 18, TypeScript). Its build is committed to src/spriteforge/app/static/, so running SpriteForge never needs Node.
cd ui && npm ci npm run dev # http://localhost:5173, proxies /api to a running `python -m spriteforge` npm run build # type-checks, then rewrites src/spriteforge/app/static/ License SpriteForge is released under the MIT License. Bundled third-party parts keep their own licenses:
game-development pixel-art phaser ai-agents multi-agent llm mcp procedural-generation
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




