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!