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 5 days ago Views: 28 Replies: 4
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.