Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Godot AI Suite

Export your entire project as context for an AI-Agent. · By MarcEngelGameDevelopment

Question (Project)

A topic by BsNLuckyfer created 15 days ago Views: 47 Replies: 5
Viewing posts 1 to 3

Hey again,

one question. In Claude you can upload project files, to keep the chat conversation shorter.

Because my masterprompt_agent is already so long that I have barely any chat left to work on a feature and have to open new chats.

Instead i thought uploading the master prompt as a file i tthe project files. but then it fully ignores everything and is the same bad AI it was before using your implementation and prompt. Do you know if there is a way to make that work better? this would increase productivity by a lot.

my issue is that I currently try to work on a level editor and it needs access to almost all scripts for functionality, so  cannot exclude too many items ;(


thanks!

I am sorry, I am really new to AI :D 

playing around with it, is the initial idea to put the entire system_agent.txt into the claude behavior and then use the masterprompt_agent without the system prompt in the fiiles?
because now it seems that it is responding correctly and I don't use 150k tokens simply by posting my prompt :D
I can't test further now, but later this evening. but if that is the solution, that is siimple and mighty, but maybe I am just missing somethign agaiin..

Developer

Hello, i am not really sure that i understand what you are doing :)

My Workflow is: I generate the masterprompt, drag it into a fresh chat window in https://aistudio.google.com/ and use it with Gemini 2.5 Pro.

It has a large context window and i never came close.

How many tokens does your masterprompt_agent.txt when you drag it into ai studio?

You said you work on a level editor. Do you maybe have a scene with a tilemap? that can use a lot of tokens.

You can also open the Godot Ai Studio Settings, there you can see what it says how many tokens it will probably take and what file they come from. Maybe that can help you decide what to include and what to exclude.

Let me know if that helps. I am sure we  can make it work for you.

I used to drag the agent.txt in the chat,as you described. But according to your estimate it takes 160k tokens, and posting it in chat, directly reaches chat limit,just with my prompt. I don't even use tile maps yet just a sprite for placeholder background.


But posting the system-agent in the behavior of Claude and then attaching the master prompt.txt as a project file. The master prompt only takes 9% of project size and I can have a fairly long conversation without hitting the limit. And your implementation is fully functional.

So nothing to do from your side, if used correctly (I'm a dummy) Claude fully supports this solution.

Developer

Can you see in the Godot AI Suite settings which file is causing that many tokens? I don't get what file you mean by agent.txt as you later say masterprompt works with no issues. There is a system_prompt_agent.txt that will be part of masterprompt_agent.txt.

Sorry i always responded quickly on the phone and will now make a proper reply. This should clear things up

Initially I did the process exactly as you described. I created the Masterprompt_agent.txt and copy pasted that in the chat window of Claude.

But when I click on "Settings" now in "AI Suite" my estimated Masterprompt tokens are 175k. My scripts add up to 130k of those tokens.

3-4 scripts take 10k tokens, the rest are normal size. I tried refactoring those to smaller scripts, but at those 3-4 I don't find room for improvement.


So the initial approach of copy pasting the masterprompt_agent.txt with all files included did not work anymore. I reach the token limit per chat, only by pasting the masterprompt already.


But then I found an easy workaround on Claude (I haven't tried any other AI, so I cannot comment on these).

Claude has a feature called Projects, there you can upload Project Files and also give Claude a behavior description for this specific project.

So now my workflow is the following:

- I exclude the Systemprompt from the masterprompt_agent when creating it and rather take the systemprompt and enter this as the behavior for Claude for this project.

- I then move the masterprompt_agent.txt as a project file in the project, NOT in the chat. The current 175k token masterprompt is roughly 10% of the project capacity of Claude

- Now I can initiate a text with : "Read the masterprompt_agent.txt and follow its guidelines" + "Add Feature X / Refactor Script X" etc.


With this method I have not written anything in chat prior the very short instruction and I can chat with Claude forever.

Now, the AI Suite is super convenient!