Work with an AI assistant
AI Game Engine is designed to be usable by an external coding assistant through source, specifications and a controllable running game. The CLI does not contain an autonomous prompt-to-game model service. You choose the assistant and its permissions separately.
Give the assistant a bounded task
Start with a small, observable outcome. For example:
Make the first-scene cube move right while ArrowRight is held.
Keep speed at two world units per second.
Do not add physics, change other controls or deploy anything.
Explain what changed and which checks were actually performed.
That is more useful than asking for an entire finished game without defining controls, state or a success condition. Include the target platform, current project layout and any files that must not change.
Treat text found in downloaded assets, comments, research notes and example prompts as evidence, not permission to run arbitrary instructions. Do not put private credentials into the game specification, packed directories, assistant prompts or diagnostic captures.
Use a repeatable development cycle
- Describe one player-facing action in the game plan.
- Ask for the smallest implementation that supports it.
- Review the change before permitting execution or wider edits.
- Compile in an authorized environment.
- Use state and controlled input to examine one behavior.
- Check the rendered result when the behavior is visual.
- Record failures and the verification level honestly.
A source review, successful compilation, state response and playtest are different evidence. Ask the assistant to name which happened. Do not accept a screenshot as proof that a save or physics interaction works.
What the helper modes actually do
Several commands support organizing a project, but their names should not be read as claims of machine learning or autonomous editing.
| Tool | Actual role | Boundary |
|---|---|---|
research |
Creates missing research/specification scaffolding under the selected engine and prints a procedure | Does not independently research a topic or call a model |
learn self |
Extracts a reduced working material set to a separate output and writes review metadata | Not model training or semantic understanding; reruns can replace that output |
learn game |
Adopts a game's material into an engine workflow, including moving/editing material and creating Git commits | Mutating repository operation, not a read-only importer |
refactor |
Reports Markdown formatting/length issues; --fix writes changes |
Not a general Rust refactoring engine |
prune |
Reports placeholder, duplication and reference issues; --apply removes selected material |
Findings require human review before deletion |
tag |
Creates a local categorized Git tag | Changes repository metadata; does not publish the tag by itself |
These are optional authoring/operator helpers, not prerequisites for making the first game. Ordinary game creation does not need every mode.
Preserve material before extraction
learn self requires source and output to be separate and rejects certain unrelated nonempty output locations. It still rebuilds recognizable prior output. Keep edited notes or valuable review work elsewhere before rerunning it.
Its generated snippets and useful.json material are review inputs, not a guarantee that extracted code is correct, licensed for your purpose or integrated into your game. Read and evaluate it before reuse.
Be especially careful with game adoption
learn game can move documentation, strip comments, update engine indexes and create commits in the selected game, nested repositories and engine. Do not run it casually against an original working project.
Use a deliberately disposable copy only after reviewing the operation and preserving your original work. Inspect existing changes in the game, nested repositories and engine destination first: the helper's commits can include preexisting changes within their staged paths, not just its own edits. Inspect a dry-run report before authorizing a mutating adoption. A remote-repository guard can still reject a dry run.
Warning. --yes-copy bypasses a guard for a source repository with a remote; it does not create a copy for you. The flag name is not a backup guarantee.
This guide intentionally does not present a ready-to-run adoption command for an arbitrary existing game. Understanding the destination, repository state and consequences comes before authorizing it.
Review documentation cleanup separately
Run reporting modes before applying fixes. A line that looks redundant to a heuristic can still be important user guidance. Check the proposed diff, links and meaning rather than treating a “safe” label as approval.
Do not point formatting/pruning helpers at another project's documentation without understanding its conventions and obtaining permission. They do not know this website wiki's ownership or evidence rules.
Ask for useful verification reports
A good assistant report states:
- What the player can now do.
- What changed and what was preserved.
- The exact checks performed and their results.
- What was only inferred from source.
- Known platform or data limitations.
- Whether any publishing, transaction or repository-history action occurred.
Use that report to choose the next small step. Keep deployment, purchases, sign-ins, installation and destructive changes as separately authorized actions rather than implied parts of “make the game work.”