How did you manage to make Claude listen to what you actually wanted? I tried too, but it was driving me crazy and kept producing weird results.
Thanks BTW.
I built a RAG project that instructs the AI to consult Construct's interface type documentation, the Construct Manual, and similar patterns from example projects before writing event sheets.
You can start by cloning these repositories:
github.com/XHXIAIEIN/Construct3-RAG
github.com/XHXIAIEIN/Construct3-Manual
github.com/Scirra/Construct-Example-Projects
-----------
My workflow is roughly like this:
I create a new project in Construct and save it as a folder project, then open that project folder in VS Code.
The first thing I do is initialize a Git repository. Very important.
Then I manually create AGENTS.md and CLAUDE.md in the project root. These files contain instructions that guide the agent to follow the workflow and proactively consult the reference material. I also use symbolic links to point the project to the local copies of those repositories.
You can see my example here: AGENTS.md
After that, you can start Claude Code or Codex with the session opened inside the project folder.
The agent modifies the Event Sheet JSON directly in the project's source files, without going through the Construct editor. Once the changes are complete, just reopen or reload the project in Construct and test it normally.
-----------
Based on my experience so far, using this RAG setup to guide the agent has been extremely reliable.
I don't use any elaborate prompts. I usually just describe what I want to build. Even with that, the generated event sheets have been close to 100% correct in my tests.
Claude can now generate complete Construct event sheets while making proper use of Construct's native features, including hierarchies, families, containers, arrays, dictionaries, JSON, custom actions, and functions.
It also handles more subtle patterns correctly. For example, it knows when to add For Each inside On Timer events, and it can correctly use AJAX to load files data.
-----------
One interesting thing I noticed is that a big reason for the high reliability is that the agent created its own build-project.py tool.
Instead of directly improvising Construct JSON every time, it generates the project through Python and converts that structure into Construct event sheets and project data, including sprites, animations, and other resources.
That seems to make the whole process much more deterministic.
-----------
One small tip when working with coding agents:
Whenever you finish a specific task, have the agent commit the changes to Git. Then start a fresh session for the next task. Try not to mix several unrelated tasks into one long session.
In my experience, keeping each session focused on a single task helps reduce hallucinations and makes the output much more consistent.