Max file length for AI edits -> refactor to multiple files?

My script got to 269 lines and the AI got significantly less helpful. I’ve found a couple of passing references to a 250 line limit here in the forum.

How do you suggest I move forward with my project?
Should I move as many functions as possible into secondary files like file_utils.py?

I’ve been mostly using the highlight & prompt (ctrl+k) for changes feature which won’t work the same way if code is in another file. I’m using my own openai api key so I can’t use the apply changes feature in the chat.

If you split your code into multiple files, you can reference other files in your Ctrl+K prompt with the @ symbol.